Hi team,
I have one requirement to lock the editable sub grid based upon the status field value which is on the parent form.
i created one function and triggering it onrecordselect event of the editable subgrid, but here in subgrid context i am only getting the fields which are available in the subgrid but unable to get the fields on the parent form.
below is the function
function LockRowSelected(context) {
context.getFormContext().getData().getEntity().attributes.forEach(function (attr) {
attr.controls.forEach(function (c) {
c.setDisabled(true);
})
});
}
so does any one have idea to get the parent form field values so that i can conditionally lock the sub grid.
Thanks,
Nagaraju Matta.
*This post is locked for comments