{% set sor = db.sqlorContext() %} {% set row = sor.execute_sql('select name, pricing_data from pricing_program_timing where id = ${id}$').first() %} {% set pricing_data = row.pricing_data if row and row.pricing_data else '' %} {% set record_name = row.name if row else '' %} { "widgettype": "VScrollPanel", "options": { "width": "100%", "height": "100%" }, "subwidgets": [ { "widgettype": "VBox", "options": { "width": "100%", "padding": "16px", "spacing": 12 }, "subwidgets": [ { "widgettype": "Title4", "options": { "text": "{{ record_name }}" } }, { "widgettype": "Text", "options": { "text": {{ pricing_data | tojson }} } } ] } ] }