Access datatable by name in form

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.

The datatable wasn’t intended as a form element, but it is possible to extend its features.
Please check the similar topic for more details:

http://forum.webix.com/discussion/7135/create-form-with-other-components