Our support engineers have assembled the top recommended solutions for you.
Microsoft Dynamics AX 2012CRM Connector in Microsoft Dynamics AX 2012Financials Management in Microsoft Dynamics AX 2012Upgrading to Microsoft Dynamics AX 2012
Microsoft Dynamics AX 2009
Application Object Server (AOS)
Enterprise Portal and Role Centers
Inventory Costing in Microsoft Dynamics AX 2009
Invoice Settlements/Discounts/Reversals
SSRS and SSAS Integration
Workflow
Hi,
how do i modify the value of a form field in X++?
I found SetValue() method but doesnt seem to work out.
Is there a .value property which can be set in order to change the value of a field at runtime?
Thank you in advance
regards
Are you speaking about dialog controls, or form controls?
Form controls. More exactly i'm trying to set a text field's value.
Ok, the easiest way to do so is:
1.- Set the Autodeclaration property of the control to Yes.
2.- Now, to set the value in X++, put the name of the control, and the proper method (varies based on the basic data type of the control).
Examples:
StringEdit.text("Hello");
RealEdit.realValue(4.5);
IntEdit.value(5);
ComboBox.selection(2);
hey,
try to save it direkt to the table.
eg.
inventTable.field = value
inventTable_ds.refresh()