Thursday 3 May 2018

How to Capture LOV Input Event


  1. if (pageContext.isLovEvent())  
  2.       {  
  3.       System.out.println("Inside LOV Event");  
  4.       String lovInputSourceId = pageContext.getLovInputSourceId();  
  5. //checking which lov event is fired.  
  6. //Below EmployeeLovInput is the ID of messageLovInput  
  7.    if ("EmployeeLovInput".equals(lovInputSourceId))  
  8.        {  
  9.          //Invokes AM Method   
  10.             am.invokeMethod("setExtraInfo");  
  11.        }  
  12. }  

The pageContext.isLovEvent method returns true/Fires if the event value is LOV_UPDATE (meaning the user selected a value from the LOV modal window), or LOV_VALIDATE (meaning the user tabbed out of the LOV input field on the base page).

No comments:

Post a Comment