Item Pictures..

yuppicide
Member Posts: 410
Navision 3.10.
Here's a screen shot of how my Item Card looks attached to this post.. (shot1.jpg)
You will notice a Picture button. When you click that it'll open up and show you a picture of our item (if it has one) and has a button to allow you to import, export, or delete the picture.
As you can see the screen has a lot of unused space on it. I got to thinking, why can't I just have the picture show up on the right side instead of the main item card page so we don't have to click Picture every time?
If I do need additional real estate I'll move all of the fields in the second column over under the left.
When I click the Picture button and then go to design I'm in Form 364 Item Picture. I've also attached a screen shot of it also (shot2.jpg).
How can I just add that to show up on the main item card page on the right hand side?
Here's a screen shot of how my Item Card looks attached to this post.. (shot1.jpg)
You will notice a Picture button. When you click that it'll open up and show you a picture of our item (if it has one) and has a button to allow you to import, export, or delete the picture.
As you can see the screen has a lot of unused space on it. I got to thinking, why can't I just have the picture show up on the right side instead of the main item card page so we don't have to click Picture every time?
If I do need additional real estate I'll move all of the fields in the second column over under the left.
When I click the Picture button and then go to design I'm in Form 364 Item Picture. I've also attached a screen shot of it also (shot2.jpg).
How can I just add that to show up on the main item card page on the right hand side?
0
Comments
-
You need to click Design from the main Item Card form, not the other form that opens. You can also go to Object Designer and find the Item Card form.0
-
The problem and the developer who made the decision is a sound decision to display the image with outside program.
If you notice the pictures are in jpg or png whch are compressed pictures.
Nav only stores bitmaps, which take a lot of space.
So in order to save space, the picture are stored in a jpg but when you click on view picture it opens outside program.
You will need to convert all the pictures to bitmap. If you have 1000 pictures and 1 meg in size, that's 1 gig of data that is stored on Item table.
This will slow down your db and take unnecessary space.0 -
You could have a second field for picture2 that takes lower quality/smaller size and store that as bitmap and display it on item card.0
-
How can you tell that the picture in Navision is a jpeg? That's just what it was saved as after it was print screened.0
-
matttrax wrote:How can you tell that the picture in Navision is a jpeg? That's just what it was saved as after it was print screened.
Oh I saw the screenshot again, and it is shown within NAV. It was in full screen, which I didn't realize.
Yes, he can add a picture box to the item card and display it on item card.0 -
Yes, they are stored as BMP and are in Navision.. not an external program. So, can I just look at the properties of the existing picture box and then add a picture box to the main Item Card page with those properties and it should automatically display the correct picture?0
-
There are some other things to do as well. Pictures are a BLOB field so you have to do a CALCFIELDS on it to load it. Look at the code behind the original form you were trying to design. That should lead you in the right direction.0
-
Okay.. well, here's what I do not understand.
When I click the Picture button I'm viewing Form 346 - Item Picture. Viewing the buttons properties is "PushAction RunObject". It runs "Form Item Picture" from No.=FIELD(No.) OnOpen.
Those are all properties of CommandButton. Can I use those properties on my newly inserted PictureBox?0 -
Add a picturebox to your item card. or in it's own tab if you like.
The sourceexp of the picturebox will be "Picture"
you'll have to add to onaftergetrecord of the item card form
CALCFILEDS(Picture);
save->compile->enjoy
We do something similar for our warehouse computers.
They get their own screen of just data they need & one thing is the pic.0 -
Thanks. The CalcFields thing is what I needed. I'll post a screen shot tomorrow when I get back to work. I'm at home now.0
-
Hi,
If you do not have access to the C/AL code then there is a form property CalcFields which does the same thing0 -
DaveT wrote:Hi,
If you do not have access to the C/AL code then there is a form property CalcFields which does the same thing0 -
Hi I need to add the logo of the bank in bank account form but I can't add the picture, I don't know how to do that? How can I add the picture? Help!!!!!Regards
Hanen TALBI0 -
1. Add a Menu Button - “Import /Insert Logo/Insert Picture in downside Menu Tab
2. Insert CA/L Code in- OnPush Tab
PictureExists := Picture.HASVALUE;
IF Picture.IMPORT('*.BMP',TRUE) = '' THEN
EXIT;
IF PictureExists THEN
IF NOT CONFIRM(Text001,FALSE) THEN
EXIT;
CurrForm.SAVERECORD;
3. Insert Variable in CA/L Globals -
PictureExists as DataType “Boolean”
4. Insert Text Constants -
Name = Text001
ConstValue = Do you want to import picture or replace the existing picture?
5. Add Picture Box in the Form change the SourceExpr properties - Picture
6. Now u can add picture by pushing menu item as defined in Column No.1.0 -
Thaaaaaaaaaaaaaaaaaaaaanks a lot it works :thumbsup:Regards
Hanen TALBI0
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