Skip to content

Commit 207be8a

Browse files
committed
Fixed incorrect datasource microflow
1 parent 5c033fb commit 207be8a

1 file changed

Lines changed: 12 additions & 2 deletions

File tree

mdl-examples/doctype-tests/03-page-examples.mdl

Lines changed: 12 additions & 2 deletions
Original file line numberDiff line numberDiff 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) {

0 commit comments

Comments
 (0)