Skip to Content
avatar image
Former Member

Populating empty rows in table

Hi All,

In webdynpro java,I need to populate empty rows in table on click of a button "add".

I have created a instance for the tablenode and rows are getting created but the issue is it is taking the values of first row(which is entered manually).

So if I generate 5 rows, all the 5 rows are having the same value.

I tried to set the fields as blank but still doesnt work.

Can any one help me to populate empty rows?

Thanks!

prakash

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

1 Answer

  • Best Answer
    Jun 14, 2012 at 02:32 AM

    Hi Prakash,

    can you paste the code?

    also can you expalain the details like whether you are using model node/Value node?

    In simple way

    When I created one node with name 'Details' and cardinality 1:n,

    it is working fine with this ADD button function:

    IWDNodeElement ele = wdContext.nodeDetails().createElement();

    wdContext.nodeDetails().addElement(ele);

    Regards,

    Ram

    Add comment
    10|10000 characters needed characters exceeded

    • Hi Prakash,

      By seeing the pattern, you are taking the instance of the 1st row.

      Please make sure that you are crating new instance inside loop.

      always check the adding element always.

      wdContext.nodeDetails().addElement(<ele>);

      the <ele> have some issue.

      I think Amol explained it clearly.

      Still you have issue let me know.

      Regards,

      Ram