Sunday, 1 July 2018

lov validation in oaf

lov validation in oaf

Lov validation is the one of the event of LOV in the OA framework. When we enter the value in the LOV item , this Lov validation event fires every time so this is the event , which cannot be skipped or missed in the OAF so if we want to perform some action based on the lov input entered by the user then we can write the code under this lov validate event. why this event is so important the reason is when you one lov item in the oaf page and you already know the value of the lov options and you have entered the correct lov value in the lov field then the lov window will not popup so you lov popup event will not be fire in this case but in this case 'lovvalidate' will fire.
 
We can also set the lov validation property of the Lov item in the OAF
 
Disable validation :- Yes/No -you can select yes if you don't want to enable the lov validation filter and if no if you want to validate each value with the list of value available in the lov.
 
 
if(pageContext.isLovEvent())
{      
String lovEvent = pageContext.getParameter(EVENT_PARAM);
  if("lovValidate".equals(lovEvent))
{           
String lovInputSourceId = pageContext.getLovInputSourceId(); 
 
  if("LovItem".equals(lovInputSourceId))
{
  System.out.println("Inside Lov Event");
  }      
}
}
 

0 comments:

Post a Comment

Contact us for any Collaboration, Project Support & On Job Support Work

Name

Email *

Message *