+
the icon next to the Datasources
.Postgres Mock DB
.Test
button on your mid-bottom right. You should see a pop-up with the connection status.+
the icon next to the Datasources
.Postgres Mock DB
data source under the Active tab and click NEW QUERY
.getBusinessData
and click select.getBusinessData
; let's bind the query onto a table widget. You can achieve it in two ways:Widgets
option from entity explorer.Table widget
onto the canvas.Table Data
property. By default, it has some initial configuration; you can update it based on your preferences. But also make sure that it will only accept array data types. Go through the detailed documentation here To learn more about the table widget.Table Data
property, let's bind the response from the DB Query. To do this, you'll have to use the Moustache Operator.{{ /* This is JavaScript */ }}
can be used anywhere to write JavaScript. For example, when binding data onto widgets, sending params to APIs, sharing data across pages, etc.Table Data
property:getBusinessData
, and the .data
property allows us to attach data.{{ getBusinessData.data }}
also ensures that whenever the Business Page loads, getBusinessData runs automatically. However, you can change this default behavior by toggling the field "Run query on page load" in the Setting tab of getBusinessData.