cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

We are happy to announce the new Windchill Customization board! Learn more.

Non persistent data in MVC tree

viren
4-Participant

Non persistent data in MVC tree

Hi,

I am currently trying to add a non-persistent column to a tree in Windchill. The column does not represent an attribute, but a value calculated in the buildComponentData method.

As I haven't figured out how to only add one non-persistent column, I currently build a component filled with non-persistent data instead. This works great when the component is a table, but when trying to do so with a tree, I get a "Unable to find NmObject for element: ..." error. This seems to me as if the tree component cannot display non-persistent data.

Does someone know if a tree component can display non-persistent data and if so, what are the differences between a table with non-persistent data and a tree with non-persistent data?


Thank you,
Vincent

4 REPLIES 4
viren
4-Participant
(To:viren)

For everyone interested, I managed to solve my problem by adding a getOid() method to my wrapper class as explained in the NmObject Utilities portion of the documentation.  This method returns a NmSimpleOid object which solved my problem.

PN_5076692
6-Contributor
(To:viren)

hello viren,

 

i'm trying to get something similiar done, but still struggling to make the TreeHandler render non Persistable data rows.

 

would you be able to provide some additional info how you solved that?

 

thanks in advance!

Hi, I belief with this information you should also be able to create any tree table:

 

https://community.ptc.com/t5/Windchill/How-to-create-and-render-custom-table-for-non-persistable-object/m-p/648773/highlight/true#M61290 

Thanks!

 

That helped indeed 🙂

I've now figured a working solution.

Top Tags