Hi Isomorphic,
Issue 1: “equals” option is displayed for the DataSourceDateTimeField filterbuilder, after smartgwt upgrade to 6.1
Please find the below code snippet
DataSourceTextField countryNameField = new DataSourceTextField("countryName", "Country");
countryNameField.setRequired(true);
countryNameField.setValidOperators(OperatorId.CONTAINS,
OperatorId.STARTS_WITH, OperatorId.ENDS_WITH,
OperatorId.EQUALS, OperatorId.NOT_EQUAL);
DateTimeItem dateItem = new DateTimeItem();
dateItem.setUseTextField(true);
TextItem textItem = new TextItem();
textItem.setReadOnlyDisplay(ReadOnlyDisplayAppearance.READONLY);
textItem.setCanEdit(false);
textItem.setTextAlign(Alignment.LEFT);
dateItem.setTextFieldProperties(textItem);
DataSourceDateTimeField independenceField = new DataSourceDateTimeField("independence", "Nationhood");
independenceField.setValidOperators(OperatorId.GREATER_OR_EQUAL,
OperatorId.LESS_OR_EQUAL, OperatorId.BETWEEN);
independenceField.setEditorProperties(dateItem);
setFields(countryNameField,independenceField);
Observe Extra_equals_Option.png “equals” Option is displayed along with the “From”,”To”,”between” Options
Issue 2: "Equals" is displayed by default in filter even when it is added at last.
ObserveEquals_DisplayingOnTop.png “Equals” Option is displayed by default.
Is there any reason for the above inconsistent behaviour?
Any suggestions to overcome this ?
Kindly refer the attached screen shot s& source code.
Smart GWT Version: 6.1
Google chrome version: Version 65.0.3325.162 (Official Build) (64-bit).
Issue 1: “equals” option is displayed for the DataSourceDateTimeField filterbuilder, after smartgwt upgrade to 6.1
Please find the below code snippet
DataSourceTextField countryNameField = new DataSourceTextField("countryName", "Country");
countryNameField.setRequired(true);
countryNameField.setValidOperators(OperatorId.CONTAINS,
OperatorId.STARTS_WITH, OperatorId.ENDS_WITH,
OperatorId.EQUALS, OperatorId.NOT_EQUAL);
DateTimeItem dateItem = new DateTimeItem();
dateItem.setUseTextField(true);
TextItem textItem = new TextItem();
textItem.setReadOnlyDisplay(ReadOnlyDisplayAppearance.READONLY);
textItem.setCanEdit(false);
textItem.setTextAlign(Alignment.LEFT);
dateItem.setTextFieldProperties(textItem);
DataSourceDateTimeField independenceField = new DataSourceDateTimeField("independence", "Nationhood");
independenceField.setValidOperators(OperatorId.GREATER_OR_EQUAL,
OperatorId.LESS_OR_EQUAL, OperatorId.BETWEEN);
independenceField.setEditorProperties(dateItem);
setFields(countryNameField,independenceField);
Observe Extra_equals_Option.png “equals” Option is displayed along with the “From”,”To”,”between” Options
Issue 2: "Equals" is displayed by default in filter even when it is added at last.
ObserveEquals_DisplayingOnTop.png “Equals” Option is displayed by default.
Is there any reason for the above inconsistent behaviour?
Any suggestions to overcome this ?
Kindly refer the attached screen shot s& source code.
Smart GWT Version: 6.1
Google chrome version: Version 65.0.3325.162 (Official Build) (64-bit).
Comment