SCampbell - Wednesday, November 7, 2012 11:36 AM:
Is there a way to multi-select items and promote versus having to promote one item at a time?
zahar - Wednesday, November 7, 2012 3:08 PM:
When you select couple Parts you can choice "Manual Release" action from Action menu or Right click menu
SCampbell - Wednesday, November 7, 2012 3:56 PM:
Thanks for the quick reply Zahar. We have a lifecycle that goes Preliminary -> In Review -> [One of: Released, Obsolete, or Released-Protected]. I believe the Manual Release function only works from Preliminary (or a Manual Release State) to Released, neither of which is the case here.
We may have a hundred CAD documents on a single ECO that are all sitting at In Review state. Most will promote to Released, but some will promote to Obsolete and others to Released-Protected. I was hoping for a mechanism to select blocks of items and then Promote these to the appropriate next lifecycle state versus one at a time.
Steve
Dave_Rollinson - Thursday, November 8, 2012 7:37 AM:
You could write a Method to do this and attach it to an Action for the Part ItemType.
The Method should validate that the "from" state is correct and only attempt to promote the selected Items that qualify.
We have done this for several customers.
SCampbell - Thursday, November 8, 2012 8:48 AM:
Excellent. Thank you guys.
AbhishekSrivastava - Wednesday, May 25, 2016 7:35 AM:
Dear,
Can you please share your method , like how it is possible to promote multiple item.
Thank You
Abhishek Srivastava
Yoann Maingon - Monday, October 24, 2016 9:48 AM:
Hi Abhishek,
If no-one kindly share the code with the community here are some hints:
- in the method called by the item action:
-> loop through items ( for (var i=0;this.getItemCount();i++){var item= this.getItemByindex(i) }
-> check the from_state (actual) of your item
-> promote the items to the desired state using the promote method from the item class
| Public promote(System.String,System.String) |
| Parameters
state
State to promote. comments If ItemType of the item is configured to log "history" records when items of the ItemType are createdpromotedetc., (i.e. if the ItemType's property "save_history" is set to "1") then the comments will be used as a comment for the "history" record about the promote event. |
| Returns
"Result" item with inner text "Ok" in case of success. Otherwise "error" item (if promote failed).
|