Tuesday, February 22, 2011

How to check which LOV Event is pressed

I have many Lov in page and when a specific lov is getting selected, it should do some actions or call some dependent lov, Then below is the code to do so.

String lovInputSourceId = pageContext.getLovInputSourceId();

if (pageContext.isLovEvent())
{
if (lovInputSourceId.equals("CustomerSearch"))
{
Call AM Function

}
}

No comments: