Ensuring an edit box is filled out at/before transition

I'd like to do as the subject line says. When a a user attempts to transition a document to WIP, I want to be sure that they are reminded to fill out the at the very least the Change Order #, before proceeding with the file to the WIP state. So possibly something that will stop the transition, of the file because of insufficient data in the card, prompting a justification dialog, instructing the user to fill out the proper info.

I was looking in to using Dispatch, my attempts to use the add-in hasn't gone so well. so looking for a bit of assistance...thx.

SolidworksSolidworks Pdm enterprise Pdm
Answers 8
JS
JS 2015-05-15 Best Answer

You can just set a condition on the transition, stating that the field can't be blank.

This one ensures the "ECONumber" field is filled in or the transition won't work. Unfortunately, what the user then gets is a generic message saying "Conditions of transition not met". But if you don't have a lot of conditions set for it, it's not too hard to figure out what the problem is.

comment imagecomment image
JC
JC 2015-05-15

Just wish we could display custom messages for each condition not met. The users often come to me asking what is not met, especially if there several conditions checking data card fields, vault path location, and file name.

SP
SP 2015-07-23

Hello Adam,

I would use an intermediate state in your workflow to allow certain variable changes:

create a variable called Order Number Old in which you put the present value during the transition

Then with your dispatch function (enable before state change to WIP intermediate), ask the user to enter a new number, and save it in your variable Order Number. compare the values Order Number Old and Order Number and set a condition according to it to allow the auto transition to WIP or return to initial state.

Regards

Sylvain

comment imagecomment image
AJ
AJ 2015-07-23

Thanks for this...i will definitely give this a shot in my application!

BM
BM 2015-07-28

I'm sure there are some advantages to that approach. It is more sophisticated in that it compares old and new values.  But it is not necessary to create an extra intermediate state. @Adam - If you are new to your EPDM system I would avoid adding extra states (they are difficult to remove later, and increase the complexity).

Try something like this in Dispatch. This only looks for an empty variable (or you can put in some Default value on the variable like "--" and look for that).

The one Dispatch variable created was d_ECO (which gets a value from the data card).  I'll try attaching it. To test it you would just have to edit the State it triggers on, and the variable it uses. You can add more Jump (if-then) actions for more variables.

comment imagecomment image
AJ
AJ 2015-07-29

Thanks Brian this has given me a lot to work from.

I've give all above solutions a shot. I found another in a thread, that would request an edit box to be filled out with an ECO# that im also attempting

I've come across something thats stumped me. When the edit box pops up. If i input the correct info, it works perfect. But if i decide to hit cancel, the edit box does not cancel, making it impossible to cancel the Edit box, no matter what. Is there a command that controls to allow the cancel button to actually work?

BM
BM 2015-07-29

I'm afraid it is one of many weaknesses of Dispatch. 

Re: Dispatch Edit Box Ok and Cancel