06-16-2011 06:20 AM
Hi Ppl,
I have created a custom step type, which has a edit sub step. The edit sub step enables the user to create custom step properties. For example the user will be able to create properties like step.custom_property. These properties are volatile, meaning once you close the sequence file they are lost. Is there
any way to retain the step properties even after saving them ?
Thanks,
Sathish
Solved! Go to Solution.
06-16-2011 06:42 AM
Sathish,
step properties are static for a step type definition. So if you want to add additional properties, you have to change the according step type definition.
From what i understand from your description, i would think that you are talking about settings unique to a single step of that type.
If my understanding is correct, property attributes are the way to go. The property in your case would be the instance of "custom step" and you can add additional attributes as required using your custom edit step.
hope this helps,
Norbert
06-16-2011 07:11 AM
Thanks Norbert for replying. I have not used property attributes before. Will have to get explore them.
Thanks,
Sathish
06-16-2011 09:34 AM
Sathish,
Another way to add custom properties to a step instance is to add an unstructure container property to the step type definition. You will then add all your custom properties under the unstructure container property. For example, in the step type definition, you can add a property container and call it CustomProperties. Right click on the property CustomProperties and select Properties. In the properties dialog, click on the Advanced button and select Flags. In the flags dialog, check the flag PropFlags_UnstructuredProperty and the check the option "Reset Flags in All Loaded Instances of the Type" and click OK in all dialogs. Modify the module for the edit substep to add the custom properties under Step.CustomProperties. Don't forget to increment the change count of the sequence file. Saving and reopening the sequence file should persist the custom properties.
Jose
06-17-2011 01:27 AM
Jose, that was awesome. Thanks for helping me out.
Thanks,
Sathish