In smartGWT 12.1 I have an dynamic form that presents a selectItem with a pulldown of primary key values to choose as well as the rows other field values. In 13.0 the selectItem does not render at all. When I changed the data source field's type value from sequence to integer, proper functionality returned. I'm assuming this break was not intentional.
details:
details:
Code:
<fields>
<field name="pk" hidden="true" primaryKey="true" type="integer" />
<field name="isBookmark" title="Is Bookmark" hidden="true" type="boolean" sqlStorageStrategy="number" />
<field name="userName" title="User Name" hidden="true" type="text" length="255" />
<field name="bookmarkName" title="Bookmark Name" type="text" length="255" />
<field name="bookmarkDate" title="Date Created" type="date" />
<field name="bookmarkURL" title="URL" type="text" length="255" />
<field name="viewState" type="text" customSQL="true" tableName="BCG_UIViewStateComponents" />
<field name="componentId" type="text" customSQL="true" tableName="BCG_UIViewStateComponents" />
</fields>
Code:
ListGrid pickListProperties = new ListGrid();
pickListProperties.setShowFilterEditor(true);
ListGridField pkField = new ListGridField("pk");
ListGridField bookmarkNameField = new ListGridField("bookmarkName");
bookmarkNameField.setWidth(250);
ListGridField bookmarkURLField = new ListGridField("bookmarkURL","URL");
bookmarkURLField.setWidth(250);
ListGridField usrNameField = new ListGridField("userName");
ListGridField dateField = new ListGridField("bookmarkDate","Date");
ListGridField isBookmarkField = new ListGridField("isBookmark");
bookmarkIDSelectItem = new SelectItem("pk", "ViewStateId");
bookmarkIDSelectItem.setWrapTitle(false);
bookmarkIDSelectItem.setOptionDataSource(DS_NAME_ISO_UIViewState);
bookmarkIDSelectItem.setPickListWidth(900);
bookmarkIDSelectItem.setPickListFields(pkField, bookmarkNameField ,bookmarkURLField ,usrNameField ,dateField ,isBookmarkField);
bookmarkIDSelectItem.setPickListProperties(pickListProperties);
bookmarkIDSelectItem.addChangedHandler((ChangedEvent event) -> {
// does stuff ...
});
final DynamicForm changebookmarkForm = new DynamicForm();
changebookmarkForm.setWidth(250);
changebookmarkForm.setNumCols(2);
changebookmarkForm.setItems(bookmarkIDSelectItem);
changebookmarkForm.setDataSource(DS_NAME_ISO_UIViewState);
changebookmarkForm.setValuesManager(valuesManager);
bookmarkIDSelectItem.setValue(Integer.parseInt(currentValueVariable));
Comment