Hidding Missing Image Red X
Suds
Member Posts: 22
Hello,
I've been trying to conditionally hide an image in a report by using IIF statements in the Hidden property and the actual field the image is contained in. The problem is if i try to set a missing image value to TRUE in the hidden property or display "" if image is missing it still seems to display a red X. I can't seem to hide the X and display an empty space.
Any suggestions would be much obliged. Thanks.
Suds
I've been trying to conditionally hide an image in a report by using IIF statements in the Hidden property and the actual field the image is contained in. The problem is if i try to set a missing image value to TRUE in the hidden property or display "" if image is missing it still seems to display a red X. I can't seem to hide the X and display an empty space.
Any suggestions would be much obliged. Thanks.
Suds
0
Comments
-
And where are you trying to hide the image (i.e Header or Body).Regards,
Manish0 -
In the body. The image is a picture of each item purchased by a client, so it is not a static single image.0
-
I ran into the same issue this week. After a bit of experimentation, I found that the following process worked to hide the missing image red X:
1) Add a BLOB field named something like "Blank Picture for Hiding Red X" to a setup table. I put mine in "Sales & Receivables Setup".
2) Create a small all white image in Paint then import this into the BLOB field from step 1.
3) Add the following code to the OnAfterGetRecord trigger for the Item dataitem of your report.SalesSetup.GET; SalesSetup.CALCFIELDS("Blank Picture for Hiding Red X"); Item.Picture := SalesSetup."Blank Picture for Hiding Red X"; Item.CALCFIELDS(Picture);Joseph Gress0 -
You could also create new section without picture and show it in several cases.Sincerely yours, GRIZZLY
Follow my blog at http://x-dynamics.blogspot.com0
Categories
- All Categories
- 75 General
- 75 Announcements
- 66.7K Microsoft Dynamics NAV
- 18.8K 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
- 610 NAV Courses, Exams & Certification
- 1.9K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 251 Dynamics CRM
- 103 Dynamics GP
- 6 Dynamics SL
- 1.5K Other
- 991 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 28 Design Patterns (General & Best Practices)
- Architectural Patterns
- 9 Design Patterns
- 4 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1K General Chat
- 1.6K Website
- 77 Testing
- 1.2K Download section
- 23 How Tos section
- 249 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions