Skip to main content
12-Amethyst
February 11, 2020
Solved

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

  • February 11, 2020
  • 3 replies
  • 6304 views

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.

3 replies

5-Regular Member
February 11, 2020
mohitenw12-AmethystAuthor
12-Amethyst
February 12, 2020

Thanks Shriram, 

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

Rows created but data not display.

17-Peridot
February 12, 2020

Have you added the oid column?

 

columnConfig = componentConfigFactory.newColumnConfig("oid", "oid", false);
columnConfig.setDataStoreOnly(true);
tableConfig.addComponent(columnConfig);
17-Peridot
February 11, 2020

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.

17-Peridot
February 12, 2020

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

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