How to get lov values in oaf
To get Lov values in oaf , We can use this below script.
Before getting value from Lov field , we first need to identify the LOV event
it means first we need to identify whether user has selected the Lov in the
Oaf Page or not . Once we identifies that , User has selected the LOV in the
OAF page then we will write the code to get the value from this Lov field. Here below I am sharing the sample script for how to get lov values in oaf
Here is the below code , Which first identify the the LOV
event in the OAF Page and the after that it will get the user selected value
from the Lov field. If you have multiple lov’s in the OAF Page but you can use
this below code to identify the particular Lov event in the OAF page.
Sample code for How to get lov values in oaf
if (pageContext.isLovEvent())
{
pageContext.writeDiagnostics(this, "I am at disble item2",
OAFwkConstants.STATEMENT);
String lovid = pageContext.getLovInputSourceId();
if
("Category".equals(lovid))
{
pageContext.writeDiagnostics(this, "I am at disble item3",
OAFwkConstants.STATEMENT);
String
category = pageContext.getParameter("Category").toString();
pageContext.writeDiagnostics(this, "I am at disble item4" + category,
OAFwkConstants.STATEMENT);
How to get lov values in oaf
0 comments:
Post a Comment