Skip to main content
Feb 11, 2020 11:38 AM UTC
Solved

How to create and render custom table for non persistable object in windchill?

Hi,

I am able to create MVC table builder for non persistable object, but records are not displaying in table,

hence can anyone provide solution?

FYI : "extends AbstractConfigurableTableBuilder"

 

Thanks.

9 replies

mohitenwAuthor
Feb 12, 2020 4:51 AM UTC

Thanks Shriram, 

i am able to create table but stuck in populate data.

Rows created but data not display.

Feb 12, 2020 5:30 AM UTC

Have you added the oid column?

 

columnConfig = componentConfigFactory.newColumnConfig("oid", "oid", false);
columnConfig.setDataStoreOnly(true);
tableConfig.addComponent(columnConfig);
Feb 11, 2020 3:10 PM UTC

You need to provide an attribute called oid in your java object. Than you will be able to show any object in a table.

 

If you need your own views than you can extend the table as you did, otherwise AbstractComponentBuilder does work also.

Feb 12, 2020 6:39 AM UTC

Hello, there is a video of training for example from the documentation

https://www.youtube.com/watch?v=-14BSAwteVw&list=PLjm4gmbLQwoeqQSP7xUhCnInGknqTBAZV&index=2