I am using filter criteria to filter some data.
But the criteria is getting transformed automatically to different format.
------
//Code for my grid to filter
Criteria filterEditorCriteria=getListGrid().getFilterEditorCriteria();
filterEditorCriteria.addCriteria("planGiftStageTypeId.id",10001);
filterData(filterEditorCriteria);
------
------
//transform request method is overridden to view the actual value
protected Object transformRequest(DSRequest dsRequest) {
dsRequest.getCriteria().getValues(); // inspecting the values
}
------
In the actual criteria the attribute name was "planGiftStageTypeId.id" and value was "10001"
But when i inspect and see it the DS, he attribute name is"planGiftStageTypeId" and value was "planGiftStageTypeId={id=null}"
This is happening after migration from smartGwt3 to smartGwt6.
Why is the data automatically getting converted to json format?
How can I oass criterias that has a dot in it?
But the criteria is getting transformed automatically to different format.
------
//Code for my grid to filter
Criteria filterEditorCriteria=getListGrid().getFilterEditorCriteria();
filterEditorCriteria.addCriteria("planGiftStageTypeId.id",10001);
filterData(filterEditorCriteria);
------
------
//transform request method is overridden to view the actual value
protected Object transformRequest(DSRequest dsRequest) {
dsRequest.getCriteria().getValues(); // inspecting the values
}
------
In the actual criteria the attribute name was "planGiftStageTypeId.id" and value was "10001"
But when i inspect and see it the DS, he attribute name is"planGiftStageTypeId" and value was "planGiftStageTypeId={id=null}"
This is happening after migration from smartGwt3 to smartGwt6.
Why is the data automatically getting converted to json format?
How can I oass criterias that has a dot in it?
Comment