AX2012:How to call a form from dialog using sysoperation service controller

hi everyone,

Please help me

I am new to Ax

I am trying to call a form from dialog

i have created a class by extending sysoperation service controller

and called the form by code

SysOperationDialog dialogg = SysOperationDialog::newForm(“form”,this,new Form(formStr(testdialoging)));

so form is opening but batch tab is not there in the form.

I have overrided can go by batch method also but still not getting

Please help me to get the batch tab…

Thank you in advance

The framework looks for specific controls (e.g. groups with specific names) where to add controls at runtime.

The easiest way is to duplicate and modify SysOperationTemplateForm form. Then you can simply return the name of the new form from templateForm() method; you don’t need to build SysOperationDialog by yourself.

Hi martin,

Thanks for your reply

Can you suggest me any class using this functionality in AX.

And please have a look on my requirement below ,

.

i need a dialog box with query , with select button to select the item and i need to display default financial dimensions on dialog box

Please see this picture

5165.Untitled.png

But I didnt find ways to display financial dimensions in query. But i can display financial dimensions on form.

So I have created a form with financial dimensions and i called the form from my class(Extending sysoperationServiceController) by following code

dialog = SysOperationDialog::newForm(“form”, this, new Form(formStr(Testdialoging)));

And i added other parameters from dialog with code

parameters = dialog.addGroup(“parameters”);

dlgDBTostage = dialog.addField(extendedTypeStr(NoYesId));

dlgDBTostage.label(“DBToStage”);

But i am not getting Batch Tab here

I have done the same By extending Runbase class(Below picture) but i need this with sysoperationServiceController class

Please suggest any other ways to get solution…

Thanks for your time

Use cross-references to find classes overriding SysOperationController.templateForm(). One example is LeanDocumentServiceController class (LeanDocumentServiceCreation form, LeanDocumentServiceCreate action menu item).

I already explained what you have to do to let AX to add the Batch tab to your form.

Hi Martin,

Thanks for your advice, i tried and i got batch tab.

Thanks again for your help.

Great! Please mark the useful reply (replies) as the verified solution. It will make clear that this thread is closed and will help others with the same problem to locate the answer.