Try the steps in this order in your Dispatch script:
- Edit box
- For all documents
- Check out file %PathToSelectedFile%
- Set Card variables
- Check in file%PathToSelectedFile%
- End for all documents
The "For all documents" tells Dispatch to run the code between "For all documents" and "End for all documents" on every file in the selection.
Show the edit box first before "For all documents" so the script will only display the box once per state change.
Hope this helps,
Thank you Tim for your quick response.
Your answer resolved my problem immediately.
Nice tip Tim :-)
Hey thanks Joy. That means a lot coming from you.
At the last company, I worked with Produciton to route all shop work ordes (job cards) that went to the production floor through workflows in EPDM.
After the initial growing pains and EPDM grew in popularity, the shops began seeing ways the tool could actually help them in their job. So they asked for a way to allow them to update each job card on a hourly, twice daily, daily basis with a work in process comment (WIP Comment). Hint: The users can design a better system than developers can. Developers just put feet on their ideas.
So, added the transition comment to a transition out to a "dummy" state and an automatic transition back to the original state just to capture the "WIP Comment". Now the "WIP Comment" are captured in the history AND on the face of the data card.
The net effect is the "WIP Comment" field on the data card (in the data card image I uploaded) would get updated with daily comments and multiple files can be updated at one time.
Here's the beautiful thing: Then added the "WIP Comment" to the column set so each shop could sort by their "WIP Comments" in Windows Explorer and the crew chiefs can run a quick "report" for their meetings.
EPDM became a powerful communication tool between the shop crew chiefs and the supervisors who needed the status of the cards.
Great thing about 2013 is the extra transition loops are no longer needed with version-free variables! Now as a SW solution partner, I can lock myself in my cave and design all kinds of CRAZY!!!!