Invoke datasource in dialog

I am using rest data to populate a grid, I wanted to add a button to popup a form so I could do an add form but the invoke commands do not seem to work in dialogs. is there a way around this or a suggested alternative ?

HI @cmhdev,

Can you check your browser console for runtime errors?

Best Regards,
Vladimir

I had deployed the app and was not seeing any errors. running it locally through Radzen showed I was getting a message. my fault.