Hi,
In the dropdowm by index, I want to throw error if the selected value is blank, how can I do that?. I tried to get value something like here.
String = wdContext.currentT_Material.getMatnr();
if I select blank, I am getting null pointer exception.
T_material is from R/3. How can I throw error if I select blank?.
Thanks,
Sunita.
Sunita,
I think the one which Roberto suggested will work fine. If u wanna throw an error message, u can either catch the exception and 'throw' it or u can use 'message manager'.
if (wdContext.nodeT_Material().getLeadSelection() == -1)
{
IWDMessageManager msgmgr = wdComponentAPI.getMessageManager();
msgmgr.reportException("No lead selection in dropdown", true);
}
Regards,
Aparna .P
Add a comment