URL Params
Required: None
Optional: Any datasource component may be passed as a query parameter if a binding property exists for that datasource. For example, see the RASON example code snippet below.
"datasources": {
"srcCustomers": {
"type": "csv",
"connection": "customers_dt.txt",
"selection": "custID = $parCustID1 or custID = $parCustID2",
"parameters": {
"parCustID1": {
"binding": "get",
"value": "c1"
},
"parCustID2": {
"binding": "get",
"value": "c3"
}
}
}
},
To query custID =$parCustID1 or custID=$parCustID2 outside of the RASON model environment, use:
$.get(https://rason.net/api/datamine?parCustID1=c1&parCustID2=c2…
Or in general,
$.get(https://rason.net/api/datamine?par1=val1&par2=val2.....
RASON Server will map "custID=$parCustID1" with "parCustID1=c1" and "custID = $parCustID2" with "parCustID2=c3". A query can return any number of rows that satisfy the filtering condition, from 0 to infinity.