Hi,
We are using below Power Edition:
SmartClient Version: SC_SNAPSHOT-2011-10-26/PowerEdition Deployment (built 2011-10-26)
Scenario :
When user selects an operand in the filterbuilder, the operators are populated based in the type of an Operand selected by user. An operand is a simple dropdown in filterbuilder. So when the value of operand is changed, filterbuilder internally calls "getValueFieldProperties" where type, fieldname are input parameters. Depending on the type parameter, whether TF, SD, MD, DATE etc apropriate operators (>, <, <>, =, IN etc) are populated and corresponding value field is displayed.
Issue :
When we change the Operand Dropdown to IPickTreeItem, the change event "getValueFieldProperties" does get fired but with wrong input parameter values. The type parameter, & fieldname parameter received is always the type/fieldname of the first operand in the PickTree list and not the one which is currently selected by user.
Following is the code which we have changed in FWFilterBuilder constructor wherein Operand simple dropdown is converted to PickTreeItem.
public FWFilterBuilder(){
final DataSource FBDataSource = DataSource.get("FSFilterBuilder");
IPickTreeItem fieldPickerProperties = new IPickTreeItem();
IPickTreeItem fieldPickerProperties = new IPickTreeItem();
fieldPickerProperties.setDataSource(FBDataSource);
fieldPickerProperties.setRedrawOnChange(true);
this.setFieldPickerProperties(fieldPickerProperties);
}
The above code converts the normal operand dropdown to a picktree. Following is the change event where we expect the correct input parameters to be received based on the operand selected.
public FormItem getValueFieldProperties(FieldType type, String fieldName, OperatorId operatorId, ValueItemType itemType, String custom)
Can any one guide me?
Thanks,
Neelima
We are using below Power Edition:
SmartClient Version: SC_SNAPSHOT-2011-10-26/PowerEdition Deployment (built 2011-10-26)
Scenario :
When user selects an operand in the filterbuilder, the operators are populated based in the type of an Operand selected by user. An operand is a simple dropdown in filterbuilder. So when the value of operand is changed, filterbuilder internally calls "getValueFieldProperties" where type, fieldname are input parameters. Depending on the type parameter, whether TF, SD, MD, DATE etc apropriate operators (>, <, <>, =, IN etc) are populated and corresponding value field is displayed.
Issue :
When we change the Operand Dropdown to IPickTreeItem, the change event "getValueFieldProperties" does get fired but with wrong input parameter values. The type parameter, & fieldname parameter received is always the type/fieldname of the first operand in the PickTree list and not the one which is currently selected by user.
Following is the code which we have changed in FWFilterBuilder constructor wherein Operand simple dropdown is converted to PickTreeItem.
public FWFilterBuilder(){
final DataSource FBDataSource = DataSource.get("FSFilterBuilder");
IPickTreeItem fieldPickerProperties = new IPickTreeItem();
IPickTreeItem fieldPickerProperties = new IPickTreeItem();
fieldPickerProperties.setDataSource(FBDataSource);
fieldPickerProperties.setRedrawOnChange(true);
this.setFieldPickerProperties(fieldPickerProperties);
}
The above code converts the normal operand dropdown to a picktree. Following is the change event where we expect the correct input parameters to be received based on the operand selected.
public FormItem getValueFieldProperties(FieldType type, String fieldName, OperatorId operatorId, ValueItemType itemType, String custom)
Can any one guide me?
Thanks,
Neelima
Comment