How do thi with a boolean field

DarkHorse
Member Posts: 389
Hello, I've a boolean type field and in a report, and, if the field is not market it appears as "No". How can I do when the field is not market the report prints it in blank and only appear "yes" when the filed is market?.
Thanks in advance.
Thanks in advance.
0
Comments
-
What? Do you need to know how to filter or how to set a control in the reportsection?Do you make it right, it works too!0
-
You create a new text variable (say we call it YesText), 3 characters, and set the sourceexpr of the control to this variable. In OnAfterGetRecord, you program something like this:
IF Rec.MyBooleanField = TRUE THEN YesText := 'Yes' ELSE YesText := '';
0 -
Thanks. I create a textvarible but on save it says "It hopes a variable".MinVar and stops on
YesText := 'Yes'. Do you know what can be the problem?.
Thanks for help.0 -
I don't know what that means, perhaps something got lost in the translation.
1: create a new global variable, type text, length 3, name YesText
2: enter the code in the OnAfterGetRecord trigger of the dataitem for the table with your boolean field, replacing the part that says "rec.MyBooleanField with the field you are actually using
3: in the section designer, click on the control for the boolean field, and in the SourceExpr property, enter the new variable name
4: save the object
If it doesn't want to save, please copy the entire error message in here.0 -
Perfect!! =D> , I had put it on sections. It works perfectly, thanks for your help.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