Imported from previous forum
I am using the Tazer example in a template scenario (probably the same logic an a change order). There is a drop down list of Display Quantity types used to control a Text Field for the actual qty.
The drop down list is not associated with a parameter.
The display qty text field is associated with a parameter.
I allow the user to edit the values for a template and save the properties and the values. Now when I go to edit the template or use the values in an actual order ticket, the selection of the drop down list is lost. (I have the display qty value but the selected item in the dropdown list conrols the display qty state and must be set correctly)
How do we handle reconstructing in tempkates or change order the state of controls that are not backed by a parameter value?
Looks like you’ll have to save the state of the dropdown as well as the fields of the order at order-creation time. Control IDs are unique within a strategy so I’d use the combination of <ClOrdID, Control ID> as a key when storing the value of the helper control.
When a cancel-replace is requested you would first render the screen according to the atdl instructions and then update the value of the dropdown based on the value retrieved using the key.
Of course a lot of this depends on your implementation.
-Greg
Looks like you’ll have to save the state of the dropdown as well as the fields of the order at order-creation time. Control IDs are unique within a strategy so I’d use the combination of <ClOrdID, Control ID> as a key when storing the value of the helper control.
When a cancel-replace is requested you would first render the screen according to the atdl instructions and then update the value of the dropdown based on the value retrieved using the key.
Of course a lot of this depends on your implementation.
-Greg
Unfortunately for a change order, we would only have the current state of the order. There may be a problem in the template scenario in that “States” may have to be applied in a particualr order based on what a state change could affect.