- if (pageContext.isLovEvent())
- {
- System.out.println("Inside LOV Event");
- String lovInputSourceId = pageContext.getLovInputSourceId();
- //checking which lov event is fired.
- //Below EmployeeLovInput is the ID of messageLovInput
- if ("EmployeeLovInput".equals(lovInputSourceId))
- {
- //Invokes AM Method
- am.invokeMethod("setExtraInfo");
- }
- }
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