Search code examples
javascriptoracle-databasecollectionsapexoracle-apex-5

Populating a CLOB Collection Using JavaScript


Kindly, How I can Populating a CLOB value greater than 32K into a Collection Using JavaScript dynamic action.

Note: I am using Apex version: 20.2

Thanks ...


Solution

  • https://www.stinolez.com/2020/07/03/clob-in-apex-rich-text-editor/

      // Run the Ajax Callback process
      var p = apex.server.process('GET_CLOB', {
        pageItems:['P1_ID_COLUMN']
      }, {
        dataType: 'html'
      });
      // When the process is done, set the value to the page item
      p.done(function(data) {
        apex.item('P1_CLOB_COLUMN').setValue(data);
      });