Community Tip - Did you know you can set a signature that will be added to all your posts? Set it here! X
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?
Solved! Go to Solution.
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
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:
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.