Hi, how can I access a datatable as a form element?
I have the following code:
view: “form”,
id: “frmMain”,
…
elements: [
{…},
{
view: “datatable”,
autoConfig: true,
id: “grdABM”,
name: “grid”,
…
}
]
However, the following code doesn’t seem to work:
$$(frmMain).elements.grid or $$(frmMain).elements[“grid”].
Is there a way to access a datatable from inside the form?.
Thanks in advance.