How can i pass a single parameter between a form in axapta ? I want to run a Form B from a clicked button event in a Form A and pass... for example the customer id ? How can i read it in the destination form, maybe in the init method ? Thanks
相关问题
- How can I identify an Axapta class Name from the c
- How to hide enum values on a combo box at runtime?
- catching the warning message from aif web service
- How can you create a simple dialog box in Dynamics
- Updating a salesorder using AIF
相关文章
- CRUD operation in AX tables using C#
- How to create a lookup with fields from more than
- Table Update Event Handler
- Execute .exe in SSRS Report
- Nested notExists joins X++ (Dynamics AX3.0)
- Obtain Network Credentials from Current User in Wi
- View details control on ax 2012 form
- Update records that can be retrieved by multiple j
1 Method
The easiest way is to pass current record. Just change button control's DataSource value for Example to CustTable if CustTable is in current Form data sources. Then in destination form init method:
2 Method
If you still need pass exactly one value .parm() (or more complex object .parmObject() ) you can do this by overiding source form's button control clicked method:
Then in destination form init:
I should definitely would use only the first method and only in special circumstances would go with #2 method with overriding button click method because this is one of default pattern for passing values between forms. More complex example is available at AxaptaPedia.com Passing values between forms