sqlRead
Reads data from a Standard Sql Statement. See SQL Statements for how to create statements.
Last updated
Reads data from a Standard Sql Statement. See SQL Statements for how to create statements.
Last updated
let result = await app.sqlRead("readAddress"); //this will use the statement "readAddress". The @id parameter is set to the id of the current loaded record in the app where we use this function
console.log(result[0].adrName);let result = await app.sqlRead("readAddress", { id: 1 }); //this will use the statement "readAddress". The @id parameter is set to 1
console.log(result[0].adrName);let result = await app.sqlRead("readAddress", { id: 1 }, { timeout: 60 }); // Wait for 60 seconds
console.log(result[0].adrName);let result = await app.sqlRead("readAddress", null, { timeout: 60 }); //use a timeout but without script parameters
console.log(result[0].adrName);