Reference Type in custom Table
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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?
Solved! Go to Solution.
- Labels:
-
EPM
Accepted Solutions
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
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.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
Thanks again @RandyJones . But for CCP, I'm getting the depType valeue as-2013. I have CATIA V5 reference.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Notify Moderator
@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.
