
Monday, December 2, 2019
Tuesday, October 1, 2019
Open Web Page using X++ in Dynamics 365 FnO
To open web page we can use following code. It will also let you open url in new tab using parameter openInNewTab.
Browser browser = new Browser();
browser.navigate(str downloadUrl, [boolean openInNewTab], [boolean showExitWarning]);
Tuesday, August 13, 2019
Skip Validation for the data-entity mapped field
By using the following API, you can skip validation for a particular field, regardless of the consumer.
public void persistEntity(DataEntityRuntimeContext _entityCtx)
{
this.skipDataSourceValidateField(fieldNum(_dataEntityName, _ dataEntityfield), true);
super(_entityCtx);
}
_dataEntityfield - field ID of the data-entity mapped field, not the back-end table field.
_dataEntityName – name of data entity.
Subscribe to:
Posts (Atom)
How to loop selected records on grid for form in dynamics ax?
To loop/iterate selected records from grid on form you can use following code, this can be done on clicked method of button control : Invent...
-
Calling Display MenuItem: new MenuFunction(menuItemDisplayStr(MyDisplayMenuItem), MenuItemType::Display).run(); Calling Output MenuItem: new...
-
To loop/iterate selected records from grid on form you can use following code, this can be done on clicked method of button control : Invent...