SmartClient Version: SNAPSHOT_v13.1d_2024-09-05/AllModules Development Only (built 2024-09-05)
Hello, please try this test case in the showcase sample sqlAutoDeriveSchema:
then click a record *without a Sales Rep name*, like Customer Number 125, in the grid, to see it ready for editing in the form.
Without modifying anything, run in the console:
editForm.valuesHaveChanged() // result: true
and
editForm.getChangedValues() // result: {salesRepEmployeeName: null}
Hello, please try this test case in the showcase sample sqlAutoDeriveSchema:
Code:
isc.ListGrid.create({
width: 850, height: 400,
autoFetchData: true,
dataSource: "AutoDerivedCustomer",
initialCriteria: {country: 'USA'},
canEdit: true,
canRemoveRecords: true,
// override titles in a few cases, to include a space where needed
recordClick: "editForm.editRecord(record)",
fields: [
{name: "CUSTOMERNUMBER", title: "Customer Number"},
{name: "CUSTOMERNAME", title: "Customer Name"},
{name: "CITY"},
{name: "STATE"},
{name: "POSTALCODE", title: "Postal Code"},
{name: "salesRepEmployeeNumber"}
]
});
isc.DynamicForm.create({
ID: "editForm",
top: 420,
dataSource: "AutoDerivedCustomer",
fields: [
{name: "CUSTOMERNUMBER", title: "Customer Number"},
{name: "CUSTOMERNAME", title: "Customer Name"},
{name: "CITY"},
{name: "STATE"},
{name: "POSTALCODE", title: "Postal Code"},
{name: "SALESREPEMPLOYEENUMBER", displayField: "salesRepEmployeeName"}
]
})
Without modifying anything, run in the console:
editForm.valuesHaveChanged() // result: true
and
editForm.getChangedValues() // result: {salesRepEmployeeName: null}
Comment