I am trying to pass some setting from one form to another. I read that this is possible to do it with user-defined functions. A simple setting would be: Set BatchMode equal to true in the first form (A), to be retrieved from the next (B) form.
Using Navision ver. 4.0
Thanks a lot,
Do the below steps,lets assume you have two forms FormA,FormB
1.Create a function Function1 at FormA
2.Create a Returun Variable Named Set BatchMode with data type Boolean at Function1
3.Place the be “Set BatchMode” := True; at the Function1 of FormA
4.At FormB create FormA as a variable
5.Now place this code at FormB
IF FormA.TestFunction() THEN
1.INSTEAD OF THE MESSAGE YOU USE YOUR OWN VALIDATION CODE
Thank you for your quick response,
Can you please elaborate more.
When you say ‘4.At FormB create FormA as a variable’ Do I need to create a variable and name it FormA or give it the name of my actual form A? What type of variable.
Sorry, but you should know I am new to Navision and eager to learn.
Create a form type variable and select form a as yorsub type
Variable name Data type subtype
xxx Form actual form name of FormA
It worked fine!! great and simple way to pass values between forms/reports.
It’s good to know there is a lot of people out there trying to help.
You guys, will hear from me very soon.
Welcome to the Dynamics User Group!
Can you “Verify Solution” on Jerome’s post that solved your issue.