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

Community Tip - Your Friends List is a way to easily have access to the community members that you interact with the most! X

Reference Type in custom Table

MV_10441462
10-Marble

Reference Type in custom Table

Hi All @HelesicPetr

 

I have a custom table(in a wizard popup by a custom action) which collects all the required dependents of the main EPM and lists them. In the table, I need to have a new column to display the Reference Type between  main EPM doc and the dependent EPM doc.

I tried data utility but I'm not able to get the main EPM doc into data utility as it's called only for each dependent doc. 

 

My requirement is to have a column for Reference Type where each component(row) displays their reference with the main epm Doc as shown in the attached pic.

 

Any idea or workaround?

MV_10441462_0-1708517177074.png

 

 

1 ACCEPTED SOLUTION

Accepted Solutions

See https://www.ptc.com/en/support/article/CS344421

You have not shown your existing code for your datautility however using the ModelContext parameter will get what you need I believe:

Object rmbObject = mc.getNmCommandBean().getActionOid().getRefObject();// the originally selected object

View solution in original post

5 REPLIES 5

See https://www.ptc.com/en/support/article/CS344421

You have not shown your existing code for your datautility however using the ModelContext parameter will get what you need I believe:

Object rmbObject = mc.getNmCommandBean().getActionOid().getRefObject();// the originally selected object

Thank you @RandyJones . Do you know how to get the Reference Type value to my custom table. I have two EPMs with CCP Reference Type, I want to have the same column in my custom table.


@MV_10441462 wrote:

Thank you @RandyJones . Do you know how to get the Reference Type value to my custom table. I have two EPMs with CCP Reference Type, I want to have the same column in my custom table.


You can use the EPMMemberLink method getDepType

int depType = epmMemberLink.getDepType();

Refer to this for what the types are:

https://support.ptc.com/help//wnc/r12.0.2.0/en/index.html?_gl=1*uofyig*_ga*MjAxNjMxMzc5My4xNjk1ODMwNTM1*_ga_CBN5QVB9VJ*MTcwODYyMDA1MC45NTcuMS4xNzA4NjI0NjAyLjAuMC4w#page/Windchill_Help_Center/ProEWCIntegCustInternalRelDisplayConfig.html

Thanks again @RandyJones . But for CCP, I'm getting the depType valeue as-2013. I have CATIA V5 reference.


@MV_10441462 wrote:

Thanks again @RandyJones . But for CCP, I'm getting the depType valeue as-2013. I have CATIA V5 reference.


We don't use CATIA here.

You might find a reference similar to the Creo Parametric one with some searching or just reverse engineer it.

Top Tags