having a hard time passing 2 params to api_action… 1 gets passed ok, but the 2nd doesn’t worktried this
$.get(ew.getApiUrl(“getAuditFieldHistory”) + ‘/’ + sTableName + ‘?x_FieldName=’ + sFieldName + ‘&x_KeyValue=’ + sKeyValue)
sTableName goes through as arg
x_FieldName goes trhoug as param
x_KeyValue does not get through = nullthis fails as well
$.get(ew.getApiUrl(“getAuditFieldHistory”) + ‘/’ + sTableName + ‘?x_FieldName=’ + sFieldName + ‘?x_KeyValue=’ + sKeyValue)this explodes:
$.get(ew.getApiUrl(“getAuditFieldHistory”) + ‘/’ + sTableName + ‘/’ + sFieldName + ‘/’ + sKeyValue)api_action is:
$app->get(‘/getAuditFieldHistory/{x_TableName}’, function ($request, $response, $args) {
$sTable = $args["x_TableName"] ?? null ;
$sField = Param("x_FieldName") ?? null ;
$sKeyValue = Param("x_KeyValue") ?? null ;
as well tried
$app->get(‘/getAuditFieldHistory/{x_TableName, x_FieldName, x_KeyValue}’, function ($request, $response, $args) {
which blew up in a hurry.couldn’t find anything useful in teh help about multiple parameters