Hello, if you test the comboFormDependentSelectsDatabound sample, using the latest 13.0 and 12.1 (2022-11-14) builds, and slightly modified as:
you'll note that the fetch performed for the SelectItem sends an advancedCriteria:
I'm pretty sure this was not the case: I was looking to test it with build older 12.1 builds, but it seems not possibile to download builds older than https://smartclient.com/builds/Smart...ise/2022-11-08
but I tested it with the latest 11.1
https://www-demos.smartclient.com/sm...lectsDatabound
and it sends a simple criteria:
is it an intended change, or a bug?
Code:
isc.DynamicForm.create({
top: 25,
width: 500,
numCols: 4,
autoDraw: true,
fields: [
{name:"categoryName", title:"Category", editorType:"SelectItem", optionCriteria:{categoryName:"Account Books"},
optionDataSource:"supplyCategory", changed:"form.clearValue('itemName');"
}
]
});
Code:
{
dataSource:"supplyCategory",
operationType:"fetch",
componentId:"isc_PickListMenu_0",
data:{
operator:"and",
criteria:[
{
fieldName:"categoryName",
operator:"iEquals",
value:"Account Books"
}
]
},
startRow:0,
endRow:75,
textMatchStyle:"startsWith",
resultSet:[ResultSet ID:isc_ResultSet_1 (dataSource: supplyCategory, created by: isc_PickListMenu_0)],
callback:{
caller:[ResultSet ID:isc_ResultSet_1 (dataSource: supplyCategory, created by: isc_PickListMenu_0)],
methodName:"fetchRemoteDataReply"
},
willHandleError:true,
showPrompt:false,
prompt:"Finding Records that match your criteria...",
oldValues:{
operator:"and",
criteria:[
{
fieldName:"categoryName",
operator:"iEquals",
value:"Account Books"
}
]
},
requestId:"supplyCategory$6276",
internalClientContext:{
requestIndex:1
},
fallbackToEval:false,
componentContext:"isc_DynamicForm_0.categoryName",
lastClientEventThreadCode:"MUP7",
bypassCache:true,
dataProtocol:"getParams"
}
but I tested it with the latest 11.1
https://www-demos.smartclient.com/sm...lectsDatabound
and it sends a simple criteria:
Code:
{
dataSource:"supplyCategory",
operationType:"fetch",
componentId:"isc_PickListMenu_0",
data:{
categoryName:"Account Books"
},
startRow:0,
endRow:75,
textMatchStyle:"startsWith",
resultSet:[ResultSet ID:isc_ResultSet_0 (dataSource: supplyCategory, created by: isc_PickListMenu_0)],
callback:{
caller:[ResultSet ID:isc_ResultSet_0 (dataSource: supplyCategory, created by: isc_PickListMenu_0)],
methodName:"fetchRemoteDataReply"
},
willHandleError:true,
showPrompt:false,
prompt:"Finding Records that match your criteria...",
oldValues:{
categoryName:"Account Books"
},
requestId:"supplyCategory$6274",
internalClientContext:{
requestIndex:1
},
fallbackToEval:false,
componentContext:"isc_DynamicForm_0.categoryName",
lastClientEventThreadCode:"MUP4",
bypassCache:true,
dataProtocol:"getParams"
}
is it an intended change, or a bug?
Comment