I'm making an admin screen to manage a custom data type and I would like to use the gs-query controller (or another similar controller) to be able to search in my game data just like in the Data Explorer but I can't figure how to use the result of the gs-query controller into the queryItems(...) call, results I get are always empty.
Code sample:
var API = Spark.getGameDataService();
var sort = null; // not relevant for this example
var query = scriptData.query;
//var query = scriptData["query-raw']; // this is another unsuccessful test I did
API.queryItems("CustomDataType", query, sort);
Here is an example of the scriptData content I get at the time of the execution of the code above:
Lucas Le Gouic
Hi,
I'm making an admin screen to manage a custom data type and I would like to use the gs-query controller (or another similar controller) to be able to search in my game data just like in the Data Explorer but I can't figure how to use the result of the gs-query controller into the queryItems(...) call, results I get are always empty.
Code sample:
Here is an example of the scriptData content I get at the time of the execution of the code above:
Regards