Hi Isomorphic,
I have a DynamicForm I use as a filter editor for a ListGrid:
When I click the button 1st with no filter criteria, a fetch is issued. For every following criteria change, no fetch is issued and the ResultSet logs in the Developer Console:
I know for a fact that applying criteria will change the result, but the system thinks that it can satisfy the query from cache. I solved this by adding the following attribute to the DataSource tag in .ds.xml: "criteriaPolicy="dropOnChange", but I think this must not be necessary.
This might be related to the operationBinding I'm using:
My question is if you know of any bugs in this area or if this expected behaviour?
Also, what would be the client side-way of telling the ListGrid that it should do a server-hit for a fetchData(...)?
I'm using latest 4.1p (v9.1p_2014-12-25).
Best regards,
Blama
I have a DynamicForm I use as a filter editor for a ListGrid:
Code:
filterForm = new DynamicForm(); SelectItemCampaign categorySI = new SelectItemCampaign("CAMPAIGN_ID"); SelectItemLeadtype leadTypeSI = new SelectItemLeadtype("LEADTYPE_ID"); SelectItemLeadtemperature leadTemperatureSI = new SelectItemLeadtemperature("LEADTEMPERATURE_ID"); filterForm.setFields(categorySI, leadTypeSI, leadTemperatureSI); reloadButton = new IButton("Reload data"); reloadButton.addClickHandler(new ClickHandler() { @Override public void onClick(ClickEvent event) { resultGrid.fetchData(filterForm.getValuesAsCriteria()); } }); resultGrid = new ListGrid(funnelDS); resultGrid.setFetchOperation("countLeads"); resultGrid.setShowFilterEditor(false); resultGrid.setCanSort(false); resultGrid.setCanEdit(false); resultGrid.setCanAutoFitFields(false); resultGrid.setCanGroupBy(false); ListGridFieldLeadstatus leadstatusLFG = new ListGridFieldLeadstatus("Status", null); ListGridField count = new ListGridField("Count"); resultGrid.setFields(leadstatusLFG, count);
Code:
16:53:37.684:MUP7:INFO:ResultSet:isc_ResultSet_4 (dataSource V_REPORTING_FUNNEL, created by: isc_ListGrid_0):setCriteria: filter criteria changed, performing local filtering
This might be related to the operationBinding I'm using:
Code:
<operationBinding operationType="fetch" operationId="countLeads" outputs="STATUS_SHORTNAME, LEAD_COUNT"> <customFields>LEAD_COUNT</customFields> <summaryFunctions> <LEAD_COUNT>count</LEAD_COUNT> </summaryFunctions> <groupBy>STATUS_SHORTNAME</groupBy> </operationBinding>
Also, what would be the client side-way of telling the ListGrid that it should do a server-hit for a fetchData(...)?
I'm using latest 4.1p (v9.1p_2014-12-25).
Best regards,
Blama
Comment