GWT version: gwt-2.5.1
Hi,
I have two tabs horizontally oriented. First tab consists of various stack sections as dynamic forms with required fields. One stack section in the first tab has a listgrid in which i have enabled editing the records using .startEditingNew().
My idea is to use the second tab as a preview screen which gets enabled once i enter details into the first tab. And i am displaying the forms in the first tab to the preview tab using .displayForm() and fetching the values of the fields in the form using:
final DynamicForm form = new FirstSection().displayForm();
final DynamicForm previewform = new firstSection().displayForm();
previewform.getField("Name").setValue(form.getField("Name").getDisplayValue());
The above code is working well for fetching values inside the form of each section and displaying it in the preview tab.
The issue i am facing is that though i am able to display listgrid in the preview tab, i am not able to fetch the edited listgridfield values and display in the preview tab.
Well, i tried with the same logic as i did for dynamic form items like
previewform.getField("Place").setValue(form.getField("Place").getDisplayValue());
But it's not working. Even i tried setting up default value
previewform.getField("Place").setValue("xyz");
It is not working either. How do i derive the listgrid records from first tab to the second tab and display the values it has.
Hi,
I have two tabs horizontally oriented. First tab consists of various stack sections as dynamic forms with required fields. One stack section in the first tab has a listgrid in which i have enabled editing the records using .startEditingNew().
My idea is to use the second tab as a preview screen which gets enabled once i enter details into the first tab. And i am displaying the forms in the first tab to the preview tab using .displayForm() and fetching the values of the fields in the form using:
final DynamicForm form = new FirstSection().displayForm();
final DynamicForm previewform = new firstSection().displayForm();
previewform.getField("Name").setValue(form.getField("Name").getDisplayValue());
The above code is working well for fetching values inside the form of each section and displaying it in the preview tab.
The issue i am facing is that though i am able to display listgrid in the preview tab, i am not able to fetch the edited listgridfield values and display in the preview tab.
Well, i tried with the same logic as i did for dynamic form items like
previewform.getField("Place").setValue(form.getField("Place").getDisplayValue());
But it's not working. Even i tried setting up default value
previewform.getField("Place").setValue("xyz");
It is not working either. How do i derive the listgrid records from first tab to the second tab and display the values it has.