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

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

SOLVED
Highlighted
Regular Member

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.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted

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

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
Highlighted

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

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

Highlighted

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

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
Highlighted

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

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

Highlighted

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

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

Announcements