SmartClient Version: SNAPSHOT_v13.1d_2024-09-10/AllModules Development Only (built 2024-09-10)
Hello, please try this test case in the fetchOperationFS sample of the showcase:
When you click a record in the grid, you'll see that the SKU field remains editable.
You may uncomment the itemID field in the form to verify that the readOnlyWhen works only if the itemID is explicitly defined in the form.
This works in the latest 13.0.
Hello, please try this test case in the fetchOperationFS sample of the showcase:
Code:
isc.ListGrid.create({ ID: "dsListGrid", top: 100, width: "100%", height: "100%", autoFetchData: true, dataSource: "supplyItem", recordClick: "editForm.editRecord(record)" }); isc.IButton.create({ ID: "addButton", title: "Add", autoFit: true, click: "editForm.editNewRecord()" }) isc.DynamicForm.create({ ID: "editForm", left: 100, dataSource: "supplyItem", fields: [ //{name: "itemID", hidden: true}, {name: "itemName"}, { name: "SKU", readOnlyWhen: {fieldName: "itemID", operator: "notNull"} } ] })
You may uncomment the itemID field in the form to verify that the readOnlyWhen works only if the itemID is explicitly defined in the form.
This works in the latest 13.0.
Comment