Tutorials & ManualsSQL YogaSQL YogaSQL Yoga PrimerGetting Data From the Database and Displaying It in the UI

Getting Data From the Database and Displaying It in the UI

Create SQL Query Object And Retrieve Data From Database

Create SQL Query Object And Retrieve Data From Database

With SQL Yoga the primary means of getting data from a database is to use a SQL Query object. Create a SQL Query object and retrieve data from the database by clicking on the Populate Regions button.

After clicking on the button you will see the list field populate with data (1).

Note: You may see some encoding issues as the data is stored as UTF-8 (2) and the primer stack does not try to deal with converting the data to a format that can display in a field.

The uiPopulateRegions Handler

The uiPopulateRegions Handler

You can find the code that the button calls in the uiPopulateRegions command of the card script.

0 Comments

Add your comment

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.