SmartClient Version: v13.0p_2023-07-04/AllModules Development Only (built 2023-07-04)
Chrome on MacOS
Hello, please try this test case:
the fetchData method will issue a request with a simple criteria:
However, when calling refreshData, an advanced criteria is used:
On the other hand, when calling invalidateCache, the former simple criteria is still used.
Is this the expected behavior?
Chrome on MacOS
Hello, please try this test case:
Code:
isc.ListGrid.create({ ID:"dsListGrid", width: "100%", height: "100%", implicitCriteria:{category:["Account Books", "Glue Sticks"]}, dataSource: "supplyItem" }); dsListGrid.fetchData({units:["Roll", "Ea"]})
Code:
{ dataSource:"supplyItem", operationType:"fetch", componentId:"dsListGrid", data:{ category:[ "Account Books", "Glue Sticks" ], units:[ "Roll", "Ea" ] }, startRow:0, endRow:75, textMatchStyle:"exact", resultSet:[ResultSet ID:isc_ResultSet_2 (dataSource: supplyItem, created by: dsListGrid)], callback:{ caller:[ResultSet ID:isc_ResultSet_2 (dataSource: supplyItem, created by: dsListGrid)], methodName:"fetchRemoteDataReply" }, willHandleError:true, showPrompt:true, prompt:"Finding Records that match your criteria...", oldValues:{ category:[ "Account Books", "Glue Sticks" ], units:[ "Roll", "Ea" ] }, requestId:"supplyItem$62722", internalClientContext:{ requestIndex:1 }, fallbackToEval:false, lastClientEventThreadCode:"MUP0", bypassCache:true, dataProtocol:"getParams" }
Code:
{ dataSource:"supplyItem", operationType:"fetch", componentId:"dsListGrid", data:{ operator:"and", criteria:[ { operator:"or", criteria:[ { fieldName:"category", operator:"iEquals", value:"Account Books" }, { fieldName:"category", operator:"iEquals", value:"Glue Sticks" } ] }, { operator:"or", criteria:[ { fieldName:"units", operator:"iEquals", value:"Roll" }, { fieldName:"units", operator:"iEquals", value:"Ea" } ] }, { operator:"or", criteria:[ { fieldName:"category", operator:"iEquals", value:"Account Books" }, { fieldName:"category", operator:"iEquals", value:"Glue Sticks" } ] } ] }, startRow:0, endRow:98, textMatchStyle:"exact", willHandleError:true, showPrompt:false, oldValues:{ operator:"and", criteria:[ { operator:"or", criteria:[ { fieldName:"category", operator:"iEquals", value:"Account Books" }, { fieldName:"category", operator:"iEquals", value:"Glue Sticks" } ] }, { operator:"or", criteria:[ { fieldName:"units", operator:"iEquals", value:"Roll" }, { fieldName:"units", operator:"iEquals", value:"Ea" } ] }, { operator:"or", criteria:[ { fieldName:"category", operator:"iEquals", value:"Account Books" }, { fieldName:"category", operator:"iEquals", value:"Glue Sticks" } ] } ] }, requestId:"supplyItem$62723", fallbackToEval:false, lastClientEventThreadCode:"TMR3", bypassCache:true, dataProtocol:"getParams" }
Is this the expected behavior?
Comment