Hi All,
I have a table having four fields...They are
1> DocumentNo.
2> Amount
3> Description
4> Date
I have to implement multiple selection.
And if the amount is negative then I have to display a message"Installment Plan cant b created"
And on multiselection or on single selection I will be passing the documentno to the BAPI.
I have implemented the logic..But its not working.
So as per the requirement,I need it urgently..Kindly help me with the logic and the code snippet
Regards
DK
Hi DK,
What is your Exact requirement? I Understood two points from your question.
1)If Amount is not negative, you want to send it to backend?
2)Table should support multiple support?
Correct me, if i am wrong?
The below code i am using to select multi row value
ITableElement tableEle = null;
for(int i=0;i<wdContext.nodeTable().size();i++){
boolean aa = wdContext.nodeTable().isMultiSelected(i);
if(aa){
wdComponentAPI.getMessageManager().reportSuccess(" Selected "+i);
tableEle = (ITableElement)wdContext.nodeTable().getElementAt(i+1);
}
amount = tableEle.getAmount();
}
//it gives us, which row is selected
amount is the selected row amount. use ur logic to check negative value or whatever you want...
Regards,
SK
Add a comment