Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Error in Table data ?

Hi @,

In my application I have a table with checkbox and user has to select the checkbox. The details

of the checked rows in table is passed to backend for updation.

But I have observed tht unless the first record in the table is selected the records are

not getting passed to backend I am looping the table node based upon its size and

checked state of checkbox as true and then populating the table to be passed to backend.

Dont know why this strange behaviour is happening.

Regards,

replied

Hi,

With a slight change in your code


for (int i = 0; i < wdContext.nodeVendor_Multi().size(); i++)
{
I<VendorNodeElement>  element  = wdContext.nodeVendor_Multi().getVendor_MultiElementAt(i);
if( element.getSELECTFLG()) // I guess this is your attribute which stores the checked state
{
        rfctable = new Zvendordtls();
        rfctable.setDeliverymethod(element.getDELMETHOD());
        rfctable.setHsbcpaymethod(element.getHSBCPAYMMETHOD());
        rfctable.setLifnr(element.getACCNUM());
        inp.addZvendorrcrd(rfctable);

}
}

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question