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 pass a single parameter between a form in axapta ? I
Share
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