05-16-2013 03:57 AM
Hi all,
suppose I've got this: a simple StepType 'TEST' with one added custom field 'Source' of the type String.
When using this StepType in a Sequence and editing the 'Source' value (from the Variables panel),
the Sequence name is immediately marked with an '*'. Which is wat we want 🙂
But, if I change the 'Source' value from code (C#), I see that my 'Source' value is changed (in the Variables panel), but not that the Sequence has detected this.
Maybe it's StepType-flag that I have to set or from code, executing a trigger or so ?
Thanks in advance ?
Franky
Solved! Go to Solution.
05-16-2013 04:41 AM - edited 05-16-2013 04:42 AM
A quick answer to myself : use the property flag PropFlags_Shared.
05-16-2013 05:53 AM
Way too fast !
Using the property flag PropFlags_Shared is not a solution, because that flag sets a field as a shared object, which is not what I want.
05-16-2013 06:43 AM
I'm talking to myself, but FYI:
because I'm updating my sequence from code (C#), I've the current Step as an object and
therefore I knows if any fields are changed.
Using this snippet will mark my sequencefile as 'changed' :
step.Sequence.SequenceFile.AsPropertyObjectFile().IncChangeCount();
05-16-2013 09:31 AM
Correct. Whenever you programmatically edit a sequence file, you should increment the file's change count in order for the sequence editor to detect that the file has been modified.
-Doug