Reports: Check if an Image exists

elTorito
Member Posts: 191
Hello,
now after 2 years I must again work with Navision...
And after this Time i have a little Problems.
I Intend make an Report wich list me a lot of Items.
In the Section I have 2 Bodys, One for my Items Details and One for if exists an Image for the Item.
In my Second Body I Have the C/AL Code:
But i don't now where i must put the Code for the Function who asked if the Image Exists.
If I Put Follow Code in the (onPreSection) Trigger of my first Body i get a lot of errors, in the Trigger perhaps only i can put Bool values?
Can please help me everyone and cann say me where i must put the Function for asked for an Image.
Thanks.
PS: I Hope you understand what i mean ... my bad english ... :roll: :oops: :oops:
Regards
Piter
now after 2 years I must again work with Navision...
And after this Time i have a little Problems.
I Intend make an Report wich list me a lot of Items.
In the Section I have 2 Bodys, One for my Items Details and One for if exists an Image for the Item.
In my Second Body I Have the C/AL Code:
CurrReport.SHOWOUTPUT(IfExistsImage = TRUE);
But i don't now where i must put the Code for the Function who asked if the Image Exists.
If I Put Follow Code in the (onPreSection) Trigger of my first Body i get a lot of errors, in the Trigger perhaps only i can put Bool values?
myImage = ItemTable.GETFILTER(Image); IF myImage THEN IfExistsImage = TRUE ELSE IfExistsImage = FALSE
Can please help me everyone and cann say me where i must put the Function for asked for an Image.
Thanks.
PS: I Hope you understand what i mean ... my bad english ... :roll: :oops: :oops:
Regards
Piter
(Oo)=*=(oO)
0
Comments
-
elTorito wrote:Hello,
now after 2 years I must again work with Navision...
And after this Time i have a little Problems.
I Intend make an Report wich list me a lot of Items.
In the Section I have 2 Bodys, One for my Items Details and One for if exists an Image for the Item.
In my Second Body I Have the C/AL Code:CurrReport.SHOWOUTPUT(IfExistsImage = TRUE);
But i don't now where i must put the Code for the Function who asked if the Image Exists.
If I Put Follow Code in the (onPreSection) Trigger of my first Body i get a lot of errors, in the Trigger perhaps only i can put Bool values?myImage = ItemTable.GETFILTER(Image); IF myImage THEN IfExistsImage = TRUE ELSE IfExistsImage = FALSE
Can please help me everyone and cann say me where i must put the Function for asked for an Image.
Thanks.
PS: I Hope you understand what i mean ... my bad english ... :roll: :oops: :oops:
Regards
Piter
You should put code in OnPreSection in secod body:
ImageTable.CALCFIELDS(Picture) // Not 100% sure that this line is nessesery
SHOWOUTPUT(ImageTable.Picture.HASVALUE);
C&P from Help:
b.HASVALUE
Use this function to determine if a BLOB (Binary Large Object) has a value.
HasValue := BLOB.HASVALUE
HasValue
Data type: boolean
If HasValue is...
It means the BLOB...
TRUE Has a value
FALSE Does not have a value
BLOB
Data type: BLOB
The BLOB you want to check.0 -
bostjanl wrote:Hi!
You should put code in OnPreSection in secod body:
ImageTable.CALCFIELDS(Picture) // Not 100% sure that this line is nessesery
SHOWOUTPUT(ImageTable.Picture.HASVALUE);
The BLOB you want to check.
Hello bstjanl,
thnaks for the Help, yes it was it, HASVALUE was what i needed,
i checked too with the first Line you postedImageTable.CALCFIELDS(Picture)
It not seems look necessary, it works too when i leaved it.
Thanks a lot, now it works so i would.(Oo)=*=(oO)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