Guest User

Untitled

a guest
Oct 23rd, 2018
83
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.12 KB | None | 0 0
  1. var record, USER_NAME;
  2. var x = '';
  3.  
  4. var l_role = $v("P2_ROLE");
  5. var l_justification = $v("P2_JUSTIFICATION");
  6. var l_date = $v("P2_DATE");
  7.  
  8. //Identify the particular interactive grid
  9. var ig$ = apex.region("myStaticIgId").widget();
  10.  
  11. //Fetch the model for the interactive grid
  12. var grid = ig$.interactiveGrid("getViews","grid");
  13.  
  14. //Fetch the model for the interactive grid
  15. var model = ig$.interactiveGrid("getViews","grid").model;
  16.  
  17.  
  18.  
  19. //Fetch selected records
  20. var selectedRecords = apex.region("myStaticIgId").widget().interactiveGrid("getViews","grid").view$.grid("getSelectedRecords");
  21. alert(selectedRecords.length);
  22.  
  23. //Loop through selected records
  24. for (idx=0; idx < selectedRecords.length; idx++) {
  25. //Get the record
  26. record = model.getRecord(selectedRecords[idx][0]);
  27.  
  28. alert(record);
  29.  
  30. //Get the current value for USER_NAME
  31. USER_NAME = model.getValue(record,"USER_NAME");
  32. // USER_NAME = 'Abha';
  33.  
  34. alert('submit 2');
  35.  
  36.  
  37. }
Add Comment
Please, Sign In to add comment