cancel
Showing results for 
Search instead for 
Did you mean: 

Populating table with values in custom controller

Former Member
0 Kudos

Hi

There are multiple rows of records in custom controller and i want to populate these values in a table which is in another view.How to do this.

thanks and regards

suresh

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

If you are writing the code in the custom Controller then you can do the following

IPublic<CustomerController>.I<Node>Element ele=wdContext.create<Node>Element();

ele.setXXX();

ele.setYYY():

wdContext.node<NodeName>().addElement(ele);

Regards, Anilkumar

Answers (1)

Answers (1)

Former Member
0 Kudos

Create a context mapping from the view controller to the custom controller and bind a Table UI element to the view context (bind property Table.dataSource to a node and the cell editor properties to attributes of this node).

Armin

Former Member
0 Kudos

Hi armin

thanks for the quick response.I have created a value node with attributes in view controller and binded this to table.datasource and mapped this to custom controller.but iam struck while creating element to that table in custom controller and assign values to that in custom controller.code sample will be helpful.

thanks and regards

suresh