Search This Blog

Monday, February 5, 2018

Pass value from Apex from item to Tabular form column. Oracle Apex 5.1


1. wright this JavaScript Function on the page HTML Header.

<script>
function setNextSortOrder() {
  var highest=document.getElementById('P151_SERVICE_ID').value;
  $(".sortorder").each(function(){
    if (this.value != "") {
      highest=highest;
    }
  });
  $(".sortorder").last().val(highest);
}
</script>

2. Tabular column -> Column Attributes  -> Element CSS Classes -> sortorder

3.Go to Add button and call the funciton.
javascript:{apex.widget.tabular.addRow();setNextSortOrder();}

No comments:

Post a Comment

Restrict File Upload by File Type in Oracle Apex

If you want to restrict file upload by file type/extension/format you can follow the below steps.  Goto File Browser Item --> Advanced --...