Request Options Page control properties

Hohenzollern
Member Posts: 18
Hi there, I have a problem with changing control properties on Request Options Page, NAV 2013.
That is what I am trying to do,as example:
I have a function "UpdatePage", it's executed on OnOpenPage trigger.
Function:
Any ideas what's wrong? Thx.
That is what I am trying to do,as example:
I have a function "UpdatePage", it's executed on OnOpenPage trigger.
Function:
IF AnalyseType = TRUE THEN BEGIN //AnalyseType - boolean variable RequestOptionsPage.Control1.ENABLED(TRUE);That will work in NAV 2009 but in 2013 I get this - "You have specified unknown variable ENABLED...".
Any ideas what's wrong? Thx.
0
Comments
-
Take a global Boolean variable like Control1ENABLED with IncludeDataset property yes.
IF AnalyseType = TRUE THEN BEGIN //AnalyseType - boolean variable Control1ENABLED := TRUE;
Or simplyControl1ENABLED := AnalyseType;
and set Control1ENABLED on Enable property of Control1 on request Page.0 -
[Topic moved from 'NAV/Navision Classic Client' forum to 'NAV Three Tier' forum]Regards,Alain Krikilion
No PM,please use the forum. || May the <SOLVED>-attribute be in your title!0 -
Thanks, that was really helpfull. I was trying to do in such a way earlier, but forgot to set this:mohana_cse06 wrote:IncludeDataset property yes.0
-
Hello
I have a similar problem.
I try to upgrade from 2009 R2 to 2013 SP1/R2 and now I am at the point where I have to import the converted reports.
After compiling, I got a few errors with unknown variables (p.e. "You have specified an unknown variable. ENABLED Define the variable under 'Global C/AL symbols'."
So my questions are:
1. Where do I have to define the variable? At the VAR section in the Report? I cannot find the Global C/AL symbols
2. How do I write the new code?:IF Option = Option::"Update Workbook" THEN BEGIN IF NOT ISSERVICETIER THEN BEGIN RequestOptionsPage.FileName.ENABLED(TRUE); RequestOptionsPage.SheetName.ENABLED(TRUE); END; END ELSE BEGIN
Best regards0 -
HI,1. Where do I have to define the variable? At the VAR section in the Report? I cannot find the Global C/AL symbols
Navigate to View - C/AL Globals to define these Boolean variables.2. How do I write the new code?:
New Code -IF Option = Option::"Update Workbook" THEN EnableFields := TRUE; ELSE BEGIN
Where
1. EnableFields is of type Boolean, with IncludeInDataset To True.
2. EnableFields is Set to Enable Property of Fields - Filename & SheetName in Report Request Page.
(Navigate from View - Request Page)
Thanks & Regards,
Saurav Dhyani
Do you Know this About NAV?
Connect - Twitter | Facebook | Google + | YouTube
Follow - Blog | Facebook Page | Google + Page0 -
Hello
I cannot see the point View --> "C/AL Globals".
I am using NAV 2013 SP1.
I wrote the code in the converted OldBaseVersion_Reports.txt like this:REQUESTPAGE PROPERTIES OnInit=BEGIN SheetNameENABLED := TRUE; FileNameENABLED := TRUE; VAR FileNameENABLED@19078741 : Boolean INDATASET; SheetNameENABLED@19012331 : Boolean INDATASET; IF Option = Option::"Update Workbook" THEN BEGIN IF NOT ISSERVICETIER THEN BEGIN FileNameENABLED := TRUE; SheetNameENABLED := TRUE; END;
After the import, I try to compile the Reports and there is no error. Does it work?
Can I do that or do I have to change the FileNameENABLED just to FileNameEnable?
BR0
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