"A value or expression was expected."

catiamatos1991
Member Posts: 158
I'm trying to set in my report a expression depending of a boolean but i cant linked the expression to my global var aux.
proforma Boolean
aux Text
To turn around this problem I tried to create a column and with a/c code I set the column value depending of a boolean

anyone can help?
proforma Boolean
aux Text
To turn around this problem I tried to create a column and with a/c code I set the column value depending of a boolean

anyone can help?
0
Answers
-
It sometimes happens if you copy a line of text from a spreadsheet cell or another source, including a tab or a new line character, and paste it into the Dev Env. The Dev ENV does not display such characters, and also does not interpret them as white spaces.
Try to delete everything from the last letter of the ReportTitle up to and including opening quotation character, and then retype missing bits - don't use Ctrl+C + Ctrl+V to put them backSlawek Guzek
Dynamics NAV, MS SQL Server, Wherescape RED;
PRINCE2 Practitioner - License GR657010572SG
GDPR Certified Data Protection Officer - PECB License DPCDPO1025070-2018-030 -
I tried to create a global var called MyReportTitle and then in my a/c code I set its value doing
IF proforma THEN
MyReportTitle := 'Fatura Pro Forma'
ELSE
MyReportTitle := OrderNoCaptionLbl;
And in my report I set the textbox value to "Globals!MyReportTitle.value" but it prints #Error.. How to get the value from the global?0 -
Hello @catiamatos1991
In RDLC layout, here is the correct syntax "ReportItems!Textbox1.Value" (not Globals!MyReportTitle.value) where Textbox1 is a textbox that you defined in the body of your report.
I strongly recommend you to get some training. If you work for a Partner then ask the seniors around you. If you work for an end users company, then ask your Partner or colleagues. I believe they will be glad to help you.
My excuses if my comment offends you. But, I hope it will put you in the correct path to learn C/AL (AL also).0 -
regarding your first error, I believe ReportTitle is already declared as a "Text Constant" in your report. You cannot assign value to a Text Constant by doing:
ReportTitle := 'Some Text';
Text Constant are meant to handle multi language reports (ML... hence Caption ML).
Try to use another name for your variable.0 -
I'm learning navision.. i'm working in less than a month.0
-
But the textBox1 i need to point to MyReportTitle global var, I'm confused. Sorry.0
-
if you're working for a NAV Partner, then ask for this training material "80436_NAV2013_ENUS_CSINTRO_08"
or try google/bing, you'll find some documents
http://www.firebrandtraining.co.uk/pdf/learn/microsoft/dynamics-nav-2016-developer.pdf
80436_NAV2013_ENUS_CSINTRO_010 -
Thanks! I'm working alone and learning by my self.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