Not able to retrieve smart list values from datagrid.datacell
Summary:
Hello, we need to retrieve smart list values from a grid. The smart list has entry ID of 1,2,3 and corresponding label and Names. we need to retrieve the name however the code errors out on the line - String SLProjLabel = SLProjStatus.getEntry(PStatus).getName(). The rule deploys but errors during run time.
String Protus = rowcells[1].getData()
int PStatus = Protus.toInteger()
String SLProjLabel = SLProjStatus.getEntry(PStatus).getName()
The code is attached below. Any help will be highly appreciated. The code works good if the above 3rd line is commented out and it prints the numerical entry ID of the (String Protus = rowcells[1].getData())
Tagged:
0