File tree Expand file tree Collapse file tree
mdl-examples/doctype-tests Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -2264,6 +2264,16 @@ ALTER PAGE PgTest.P033b_DataGrid_ColumnProperties {
22642264-- LEVEL 9: Conditional Visibility, Editability, and Responsive Column Widths
22652265-- =============================================================================
22662266
2267+ CREATE MICROFLOW PgTest.DS_GetFirstCustomer ()
2268+ RETURNS PgTest.Customer
2269+ FOLDER 'DataSources'
2270+ BEGIN
2271+ RETRIEVE $Customer FROM PgTest.Customer LIMIT 1;
2272+ RETURN $Customer;
2273+ END;
2274+ /
2275+
2276+
22672277/**
22682278 * Level 9.1: Page with conditional visibility and editability
22692279 */
@@ -2276,9 +2286,9 @@ CREATE PAGE PgTest.P040_ConditionalProps
22762286 LAYOUTGRID lg1 {
22772287 ROW row1 {
22782288 COLUMN col1 (DesktopWidth: 8, TabletWidth: 6, PhoneWidth: 12) {
2279- DATAVIEW dv1 (DataSource: MICROFLOW PgTest.DS_GetFirst ) {
2289+ DATAVIEW dv1 (DataSource: MICROFLOW PgTest.DS_GetFirstCustomer ) {
22802290 TEXTBOX txtName (Label: 'Name', Attribute: Name, Visible: [$currentObject/Name != empty])
2281- TEXTBOX txtCountry (Label: 'Country ', Attribute: Country , Editable: [true])
2291+ TEXTBOX txtPhone (Label: 'Phone ', Attribute: Phone , Editable: [true])
22822292 }
22832293 }
22842294 COLUMN col2 (DesktopWidth: 4, TabletWidth: 6, PhoneWidth: 12) {
You can’t perform that action at this time.
0 commit comments