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

Community Tip - You can subscribe to a forum, label or individual post and receive email notifications when someone posts a new topic or reply. Learn more! X

Automatically fill in Name when creating a new review

ZK_11667139
10-Marble

Automatically fill in Name when creating a new review

Version: Windchill 12.0

 

Use Case: Automatically fill in Name when creating a new review


Description:

I now need to generate a name automatically based on the selected WTPart when creating a new review. The name generation rule is  WTPart.getname + "_" + WTPart.getNumber()

 

 

 

ZK_11667139_0-1729073594729.png

 

 

ACCEPTED SOLUTION

Accepted Solutions

I have solved this problem by setting the DataUtility in the layout by assigning the Name property. thank you.

View solution in original post

3 REPLIES 3

Hi @ZK_11667139 

Thank you for your question!

Your post appears well documented but has not yet received any response. I am replying to raise awareness. Hopefully, another community member will be able to help.

Also, feel free to add any additional information you think might be relevant.

 

Best regards,

Catalina
PTC Community Moderator

@ZK_11667139 ,

 

I figured out how to do this.

See images below.

From the WTPart's info page we can see the name and number.

d_graham_0-1729513004091.png

I then select New > New Review from the actions menu.

d_graham_1-1729513141884.png

 

Per your spec, the <name> - <number> of the WTPart automatically populate the Name field in the UI.

d_graham_2-1729513263761.png

 

It is doable, but I had to hack the data utility that populates that field as that data utility is not exposed to the user, meaning it cannot be overridden as is done with many data utilities.  At least I did not find a way to override it.

And to be honest, hacking the OOTB code can be simpler in the long run as there's no need to edit any properties.

 

So, definitely doable and easily portable to the next version of Windchill when you upgrade.

 

David

I have solved this problem by setting the DataUtility in the layout by assigning the Name property. thank you.

Announcements

Top Tags