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

Community Tip - You can Bookmark boards, posts or articles that you'd like to access again easily! X

How to customize to reset value on revising only (not on iteration)?

lwang-2
7-Bedrock

How to customize to reset value on revising only (not on iteration)?

There is a attribute defined on a document type, the value is carried over by new iteration or revision once it was created out of box. How can I custom to not carry over the value but reset to empty every time new revision? Eg Audit Type field was set "Initial" at A.1, new iteration to A.2 the value carried over. However  when Revise to B.1, the value was reset to empty.

ACCEPTED SOLUTION

Accepted Solutions

You need to write a NEW_VERSION Listener

See following example

// Get the event (NEW_VERSION)
VersionControlServiceEvent pmEvent = (VersionControlServiceEvent) event;
Workable target = (Workable) pmEvent.getEventTarget();

if (!WorkInProgressHelper.isCheckedOut(target)) {
// Here reset your attribute
}

 

View solution in original post

4 REPLIES 4

You need to write a NEW_VERSION Listener

See following example

// Get the event (NEW_VERSION)
VersionControlServiceEvent pmEvent = (VersionControlServiceEvent) event;
Workable target = (Workable) pmEvent.getEventTarget();

if (!WorkInProgressHelper.isCheckedOut(target)) {
// Here reset your attribute
}

 

Florent
15-Moonstone
(To:lwang-2)

This behavior has been introduced in 11.2 for the save-as, not sure about the revise.

Reset attribute values during "save as" & revise

 

@JenniferPierron: any comment on this?

 

 

Florent ROUSSEL
www.4cad.ca
JenniferPierron
14-Alexandrite
(To:Florent)

Hello Florent.

 

In Windchill 11.2, the Save As UI has been enhanced to allow editing of attributes.

The end user can set, modify and unset values of attributes in the UI where allowed.

Modifying Attributes during Save As Action

 

Revise has not been changed as of yet.

 

Cordially,

Jennifer Pierron

This is really going to be useful.  I'm setting up views to contain this now and will let my users know.

Announcements

Top Tags