cancel
Showing results for 
Search instead for 
Did you mean: 

Can only display one row in a table

Former Member
0 Kudos

Hi all,

I am binding a table to the data from a function module.

But I can only display one row in my table even though the function module returns multiple rows.

Here is my node structure:

--ParentNode (cardinality: 0..n)

-


OutputNode (cardinality: 0..1) (cannot change this cardinality)

-


EmpNode(cardinality: 0...n)

-


Attr1

-


Attr2

-


Attr3

-


SelectNode(cardinality: 0...n)

-


boolAttr1

The datasource of the table is ParentNode. In the table i want the values of Attr1, Attr2, Attr3 and boolAttr1.

Any help is very much appreciated

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

Check the size of the which node bound to the table.

OR

Invalidate the output node after the model execute method.

Or

change the cardinality of the outputnode try in customcontroller output node properties make it 0..n.

Try like this.

After the execute method.

wdContext.node<outputnode>().invalidate();

int size = wdContext.node<boundednodeto the table>().size();

If size will get more records.

Then u may find where s the error.

Thanks,

Lohi.

Message was edited by:

Lohitha M

Answers (3)

Answers (3)

Former Member
0 Kudos

I really appreciate for your replies.

I fixed it myself. I created a value node and copied all the attributes into this temporary value node and then bound the table to this temp value node.

Thank you for taking time to reply.

Former Member
0 Kudos

Could u be more clear on where to check for displayed table length?

Former Member
0 Kudos

You can check the no.of rows in the table properties. Moreover also check how u mapped that node?. and how you are invalidating in the controller.

/Raj.

Former Member
0 Kudos

Check the displayed table length is not 1.