Showing posts with label Ax2012. Show all posts
Showing posts with label Ax2012. Show all posts

Monday, November 18, 2019

JumpRef method to call the form

public void jumpRef()
{
MenuFunction menuFunction;
super();
menuFunction = new MenuFunction(menuitemdisplaystr(CustTable), MenuItemType::Display);
menuFunction.run();
}

Hide the batch tab in Dialog window in D365FO

1. Create UI builder class
2. Override the dialogPostRun method in UI builder class

protected void dialogPostRun()
{

SysOperationDialog  sysOperationDialog;
DialogTabPage         batchTabPage;
FormRun                   formRun;

super();
sysOperationDialog  = this.dialog() as SysOperationDialog;
formRun                   = sysOperationDialog.formRun();
batchTabPage          = sysOperationDialog.batchDialogTabPage();
formRun.selectControl(dialogTabPage.control());

}

Thursday, July 3, 2014

Ax2012 EP error: The 'Metadata' property is read-only and cannot be set.


Solution:
1. Open the web control in Visual studio
2. Open the Design file of the web control (.ascx)
3. Click source button to view Ascx coding (HTML code)
4. Find(ctrl + F ) Metadata in the ascx code
5. Simply delete the word whereever it is appear in ascx file
6. Save and deploy the webcontrol.
7. Open the webpage again, the error is resolved.