Hi Frndz..
As per my requirement i need to do the validations for the multipple rows in a table that was enterd by the user,
T
The prob is how can i get that number of rows that enterd by user,
WDMessageManager msg = wdComponentAPI.getMessageManager();
String col1= "";
String col2= "";
double col3= 0;
double col4= 0;
double amount= 0;
int nodesize = wdContext.nodeTest().size();
try
{
for(int i=0; i<=2 ; i++)
{
col1 = wdContext.nodeTest().getTestElementAt(i).getCol1();
//msg.reportSuccess("col1 size is :"+col1);
col2 = wdContext.nodeTest().getTestElementAt(i).getCol2();
col3 = wdContext.nodeTest().getTestElementAt(i).getCol3();
col4 = wdContext.nodeTest().getTestElementAt(i).getCol4();
amount = wdContext.nodeTest().getTestElementAt(i).getAmount();
if(col1 == "" )
{
msg.reportException("Plz fil the col1 for line:",true);
break;
}
else
if(col2 == "" )
{
msg.reportException("Plz fil the col2 for line:",true);
break;
}
else
if(col3 <= 0)
{
msg.reportException("Plz fil the col3:",true);
break;
}
else
{
if(col4 <= 0)
{
msg.reportException("Plz fil the col4:",true);
break;
}
}
msg.reportSuccess("skvgjhdfgasdfgsjkafguisafisenvtvyeriy");
wdThis.test();
}
}
catch (Exception e)
{
msg.reportException("strMessage in catch block",true);
}
this is the code am going
Regards
Rajesh