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

Check Difference Between Two Database Objects

Step-1. Create Two DBLINK to connect with Two Database then Step-2. define logindb= DBLINKONE define remotedb= DBLINKTWO define schema_name=...