Using SQL DataSources in Production

I actually a multi-part (no pun intended) question:

  1. If I am creating an application, is it realistic to use SQL DataSources in Production environment. The document suggests using it for a prototype, but it would seems so easy, we are thinking of using in Production.
  2. Can I use a textarea and let the datasource save that data in a CLOB in Oracle? Would RichTextEditor be better and serve the same purpose?
  3. How about a file upload? Besides using multi-part, is there a way to upload files via SmartClient?

thanks.

  1. you get a similar level of ease of use with Hibernate, that’s what we would recommend using.

  2. that depends on whether you want the user to be able to input styled text.

  3. use an UploadItem

Thank you for the response. Just to clarify:

  1. Great. So, I can use Hibernate with serverType:Hibernate option? Also, is this only for 6.0?

  2. Yes, we do intend to allow users to input styled text (something like webeditpro)

  3. So it seems like I will need to handle the multi-part form submit outside (maybe a jsp page/servlet?) and pass that URL into the UploadItem? Is it asynchronous operation?

Again, thanks for the input.

  1. Hibernate support has existed since 5.7

  2. So you want to use RichTextItem then

  3. Yes, post the form to a normal servlet. All server contact is asynchronous.

RichTextEditor produces javascript error

Thanks for the answers. Seems like SmartClient does all the plumbing work for me, if I use serverType:“hibernate”.

So, for RichTextItem, do I do isc.RichTextItem.create or would it part of a DynamicForm editorType? thanks

“RichTextItem” is an editorType for use in a DynamicForm, and there is also a standalone RichTextEditor.