Visibility Handling

omyvadiya
Member Posts: 124
Hi,
I have a report in Nav 2009 R2.
I have 2 fields which is some txt data, which prints well when both fields have data.
But when 1st field has data and the other is not having data.. the data of 1st must be extended to the empty space of 2nd.
Similarly when the 2nd has data, it must overlap the 1st's empty space and must continue to its space, and must not go in 2nd line.
I have a report in Nav 2009 R2.
I have 2 fields which is some txt data, which prints well when both fields have data.
But when 1st field has data and the other is not having data.. the data of 1st must be extended to the empty space of 2nd.
Similarly when the 2nd has data, it must overlap the 1st's empty space and must continue to its space, and must not go in 2nd line.
0
Comments
-
Did you try by combining them both in CAL and send to rdlc using a global text variable etc..0
-
Both the values are coming from variables in CAL, but handling there visibility is the problem.
I tried creating 3 different rows in rdlc with different visibility.
1. with both have data.
2. only 1st <> "" and 2nd = ""
3. only 2nd <> "" and 1st = ""
But if both have data its prints the correct row (1. with both have data.)
When (Only 1st <> "" and 2nd = "") then its prints, but it prints, but at the same time the 1st condition is also true. and it prints both.
and the same happens with -> Only 2nd <> "" and 1st = ""
](*,)0 -
Instead of using ="" as comparison expression, try using IsNothing function.* Daniele Rebussi * | * Rebu NAV Diary *0
-
Isnothing function is also not working.
](*,)0 -
As an alternative you could simply manage rows visibility through 3 boolean variables evaluated via C/AL in OnAfterGetRecord trigger* Daniele Rebussi * | * Rebu NAV Diary *0
-
What is the condition you are using for the first row when both have data? How about concatenating two fields ?0
-
Can concatenating the values of both text variables into a single text variable and printing the concatenated text be an option?0
-
Here is what you need:
=iif(Len(Fields!Field1.Value) = 0, "", Fields!Field1.Value & " ") & iif(Len(Fields!Field2.Value) = 0, "", Fields!Field2.Value)
I suggest you also read my Filtering "Best Practice" blog post:
http://mibuso.com/blogs/clausl/2013/07/06/filtering-and-visbility-best-practice/
/Claus LundstrømClaus Lundstrøm | MVP | Senior Product Manager | Continia.com
I'm blogging here:http://mibuso.com/blogs/clausl and used to blog here: http://blogs.msdn.com/nav
I'm also offering RDLC Report Training, ping me if you are interested. Thanks to the 700 NAV developers that have now already been at my training. You know you can always call if you have any RDLC report issues :-)0 -
Thanx a lot clausl..it works0
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