What’s New in Oracle APEX 21.2- JavaScript APIs

APEX 21.2 New JavaScript APIs 

apex.env

apex.date

Daniel’s Blog

apex.regions

   apex.regions.emp.refresh();
	OR
   apex.region("emp").refresh();

apex.items

//Snippet from Stefan's Blog
// getting an item’s value:
var sal = apex.item("P1_SAL").getValue();
// is the same as
var sal = apex.items.P1_SAL.getValue();
// is the same as
var sal = apex.items.P1_SAL.value;

// setting an item’s value:
apex.item("P1_SAL").setValue(100);
// is the same as
apex.items.P1_SAL.setValue(100);
// is the same as
apex.items.P1_SAL.value = 100;


apex.items returned item types

Item Typeapex.items returned
SwitchCHECKBOX
CheckboxSINGLE_CHECKBOX
Checkbox GroupCHECKBOX_GROUP
Text AreaTEXTAREA
Select ListSELECT
TextTEXT
NumberNUMBER

Demo

User name: You Name

To be continued….