How To pass parameters between objects (forms, reports, ...)

Administrator
Member, Moderator, Administrator Posts: 2,506
How To pass parameters between objects (forms, reports, ...)?
http://www.mibuso.com/howtoinfo.asp?FileID=7
Discuss this How To here.
http://www.mibuso.com/howtoinfo.asp?FileID=7
Discuss this How To here.
0
Comments
-
Navision never explains so simply this principe : make function to pass parameters.0
-
This how-to is really great for beginners. When I was new in Navision programming world, it took me much time until I discovered how to pass parameters. I think, Navision (ehm, now MBS) should write better documentation for programmers, which should include "cheats" like this; documentation as Application designer's guide is insufficient, because it does not contain basic ideas.0
-
I have tried this and I have a Codeunit like this.
MESSAGE('HER ER før RESULTATET: %1',Comp);
form1.RUNMODAL;
MESSAGE('RESULT: %1',Comp);
SetSelskap(Selskap : Text[50])
Comp := Selskap;
MESSAGE('Value of Comp: %1',Comp);
Then I have Form, form1 whch gives a value to Selskap by calling the function Setselskap. The Message(Value of Comp: shows that the value of Comp is set correctly. and Comp is a variable in the Codeunit.
But at tyhe code( MESSAGE('RESULT',%1',Comp); THE VALUE OF Comp IS LOST
What is wrong with this code? ](*,)0 -
Hello to you all!!
I am trying to pass a parameter from a page to a codeunit function that should start an report with the given parameters in the first place. The problem is that when the parameters are passed to the codeunit, the Record looses the filters. The Variable in the Codeunit is of type "Variant".
Could anybody give a hint as to why this happends? [-o<0 -
For keeping the filters you need to pass the parameter by reference, ticking the "Var" field in the parameter list of your function.* Daniele Rebussi * | * Rebu NAV Diary *0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions