Useful JavaScript code to control items
Item Enable Item Disable Get an Item Value OR Hide an Item Show an item Set focus on an Item Set Item CSS style Set an Item Read-only Disable mouse click of an Item
Item Enable Item Disable Get an Item Value OR Hide an Item Show an item Set focus on an Item Set Item CSS style Set an Item Read-only Disable mouse click of an Item
Create 2 Text Items P1_SCREEN_WIDTH P1_SCREEN_HEIGHT 2. Create a Dynamic Action Named “get Screen Resolution” Event = Page Load True Action = Set Value Set Type = JavaScript Expression JavaScript Expression =
1 |
window.screen.availWidth |
Affected Elements > Selection Type : Item(s) Item(s): P1_SCREEN_WIDTH Fire on Initialization :Yes Create another True action under …
How to show and hide inline dialog in oracle apex using JavaScript Create a Region named as example “Employee Details: Assign a Static ID of the region “EMPDTLS” ( ..Region Property/Advanced/Static ID:) Create a Page Button Named “ShowDialog” Go to the button property and set it’s properties as below: Behavior/Action …
Without Dynamic Action we can easily call AJAX call back process Create a Page Process: Name: EMP_NAME Type : PL/SQL Code Source> PL/SQL Code:
1 2 3 4 5 6 7 8 9 10 11 |
declare v_ename varchar2(100); begin select ename into v_ename from emp where empno = APEX_APPLICATION.g_x01; HTP.PRN(v_ename); end; |
Execute Options > Point: AJAX Callback Create 2 Items in the page P2_ID P2_NAME Note: in this example my Page ID is 2, in your …