Saturday 26 May 2018

Args Concept in Ax 2012 Using(Form to Form,Form to Class,Class to Form)




 ARGS IN AX


We can Pass the Args Three ways:
1.Form to Form
2.Form to Class
3.Class to Form
1.Form to Form:
Here I am passing args from one form to another form.
I have taken two forms i.e.   
1.Na_FirstForm
2.Na_FormToForm


 The First Form -------> Na_FirstForm



Note: Here Na_FirstForm there is no Data source fields. only unbound Control fields.
Here Enter all details and click the submit button. Then we will pass the records from Na_FirstForm to Na_FormToForm.
When will we click Submit button all records added in second Form( Na_FormToForm) Data Source Table.

Step2: Here we retrieve the args in Na_FormToForm.
And here we write a method in Form Data Source Init.
 
àHere Second Form(Na_FormToForm)  data was Inserted.
 

2.Form to Class:
Here I am passing Args from Form to Class.
Here I have Taken One Form and One Class.
1.Na_FormToClass—(Form)
2. Na_GettingArgsRecords----(Class)
àHere I am inserting Data in Form and Selecting more than 2 Records. And Then click Sending Args Button.
 

àIn this Button Write This Code.

àAnd Then we will Retrieve the Records in class(Na_GettingArgsRecords)


àAnd Write A code In Class Main Method.


è So We Will See record in Infolog.
 

3.Class to Form
Here I am Passing Args from Class to Form.
I have Taken One Class and One Form.
1. Na_PassingRecords---(Class)
2. Na_ClassToForms ----(Form)




àHere We take three fields in container and then we will send Three fields to Form(Na_ClassToForm) Through Args.




è Here We will receive Fields In Form Data Source init() method.


àWe can See in Form(Na_ClassToForm).

No comments:

Post a Comment