SetGlobals function in report

gbierkens
Member Posts: 49
In classic reports sometimes I added a global function "SetGlobals" which I used to preset certain variables.
Now I want to do something simular in NAV 2009 R2 RTC with a classic report.
I want to use these globals in a requestform as default, but a user should be able to overwrite te defaults.
I know it's a bit quick and dirty, but in classic it used to work like a charm.
Now in RTC i'm getting the following error:

Does anyone have an alternative to fill the options tab of a classic report in RTC based on information that is present on the dataitem-record of the report.
Now I want to do something simular in NAV 2009 R2 RTC with a classic report.
lReport.SetGlobals("Some vars"); lReport.SETTABLEVIEW(record); lReport.USEREQUESTFORM(TRUE); lReport.RUN;
I want to use these globals in a requestform as default, but a user should be able to overwrite te defaults.
I know it's a bit quick and dirty, but in classic it used to work like a charm.
Now in RTC i'm getting the following error:

Does anyone have an alternative to fill the options tab of a classic report in RTC based on information that is present on the dataitem-record of the report.
BriteBlue Solutions BV | briteblue.nl
0
Answers
-
This is not possible when running classic reports in RTC0
-
Okay thnx.
I just created a RTC report and there the SetGlobals function still works.
So I guess it's time to roll up my sleeves and create a rdlc report layout....BriteBlue Solutions BV | briteblue.nl0 -
As a workaround you could make a table to hold your global values, and read that table from the report.0
-
I allready have that table.
The point is that users should be able to modify the default parameters before running the report.
And the defaults are based on the sales order line depending on the "item no." and the "variant code".
So the report doesn't "know" these variables untill "OnAfterGetRecord()".BriteBlue Solutions BV | briteblue.nl0
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