International Distributors
You can cut down a lot of database traffic using a single SQL query versus multiple queries to connect every component to a screen. For example, if there are 20 displays on the screen from one table in the database, you can use one query to perform the same job. Network traffic could be decreased to 1/20 of what it was for each open instance of that screen. In addition, this technique is key in fetching an index when you want to select a record in a table and click a button to open another screen and interact with the selected data.
myData
Dataset
label
String
value
Float
lookup({Root Container.myData}, "Apples", -1.0, "label", "value")
lookup({Root Container.myData}, "Oranges", -1.0, "label", "value")
try({Root Container.myData}[2,"value"],-1.0)
try({Root Container.myData}[2,1],-1.0)