SmartGWT Version: 8.2/LGPL Development Only (built 2011-12-05)
Running on Windows 7 / IE9 / GWT Dev Mode
I have a DynamicForm that contains a CanvasItem with another DynamicForm inside of it. The DataSources for both forms are the same, we just use the CanvasItem for layout purposes. When I save a record I get the following request:
I have set the New Button and CanvasItem setShouldSaveValue(false) so I would not expect to see them in the request. We set up our ValuesManager (to combine the two forms) like this inside of the "parent" form:
On save, we do this:
What could we be doing wrong here? It seems like a bug because when not using the ValuesManager (and just submitting the parent form) it works fine, ignoring any fields we set as setShouldSaveValue(false) (obviously our CanvasItem with child DynamicForm is not submitted). I have also tried using a ValuesManager with just the parent form added to it, and I have the same issues as described above: even things with setShouldSaveValue(false) is sent in the save request.
Thanks,
Brian
Running on Windows 7 / IE9 / GWT Dev Mode
I have a DynamicForm that contains a CanvasItem with another DynamicForm inside of it. The DataSources for both forms are the same, we just use the CanvasItem for layout purposes. When I save a record I get the following request:
Code:
"data":{ "changeType":"Operator Changes", "leasedSold":"Leased", "storageChange":"No", "isc_CanvasItem_0":"", "changeOfStatusDate":"2012-07-30", "isc_NewButtonItem_0":"", "aircraftId":2 }
Code:
valuesManager = new ValuesManager(); valuesManager.setDataSource(getDataSource()); valuesManager.addMember(changeTypeForm); setValuesManager(valuesManager);
Code:
@Override public void onClick(ClickEvent event) { if (event.getForm() != null && event.getForm().getValuesManager() != null) { event.getForm().getValuesManager().saveData(); } }
Thanks,
Brian
Comment