I have a few forms that are tied together via a ValuesManager. One of these forms has a RadioGroupItem that determines which of its fields should be visible.
When I call valuesManager.editNewRecord(initialValues), the appropriate radio item is selected, but the fields for it are not visible. If I do anything within the form that causes a redraw, then the expected fields becomes visible.
Here is the affected form
The parent class does the following on initialization
In either case the, the radio item is set to DD for the new record. Is there something I need to do to actually catch the values getting set on the form.
It appears from what I'm observing editNewRecord(map) is equal to editNewRecord(); valuesManager.setValues(map);
I was hoping that the prior would allow initial values to be set on the form without it causing a form level itemChangedHandler being called until the user actually edited values.
some appropriate code snippets
I want to use user edits to drive the enabled state of some buttons. However, I seem to have ended up with a form that does not render itself correctly, and when a redraw is caused and the form is correct, the itemChangedHandler is fired, and I end up with buttons in an undesirable state.
Perhaps you can guide me as to how to use your api to achieve this behavior
When I call valuesManager.editNewRecord(initialValues), the appropriate radio item is selected, but the fields for it are not visible. If I do anything within the form that causes a redraw, then the expected fields becomes visible.
Here is the affected form
The parent class does the following on initialization
In either case the, the radio item is set to DD for the new record. Is there something I need to do to actually catch the values getting set on the form.
It appears from what I'm observing editNewRecord(map) is equal to editNewRecord(); valuesManager.setValues(map);
I was hoping that the prior would allow initial values to be set on the form without it causing a form level itemChangedHandler being called until the user actually edited values.
some appropriate code snippets
I want to use user edits to drive the enabled state of some buttons. However, I seem to have ended up with a form that does not render itself correctly, and when a redraw is caused and the form is correct, the itemChangedHandler is fired, and I end up with buttons in an undesirable state.
Perhaps you can guide me as to how to use your api to achieve this behavior
Comment