Child Table on Dialog Box

Hi,

Is it possible to add child table on Dialog Box

Code:
var dialog = new frappe.ui.Dialog({
title:(e.field_name+’ Styles’),
fields: [
{fieldtype:‘HTML’, fieldname:‘styles_name’, label:
(‘Styles’), reqd:false,
description: ("")},
{fieldtype:‘Table’, fieldname:‘sales_invoice_item’, label:
(‘Sales Invoice Item’), reqd:false,
options:‘Sales Invoice Item’,description: ("")},
{fieldtype:‘Button’, fieldname:‘create_new’, label:
(‘Ok’) }
]
})

But it give me an error Cannot read property ‘perm’ of undefined

Since Dialog is not linked to a “Document” object, I don’t think this is possible. You will have to extend Dialog to embed the “form” object

@rohit_w were you able to add the child table to dialog? if yes, would it be possible for you to share the code?

Hi @rohit_w did found a way to do this? I’m with the same issue.
Thanks for any help