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?
0
Comments
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.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
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.
Independent Consultant/Developer
blog: https://dynamicsuser.net/nav/b/ara3n
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?
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.
http://www.BiloBeauty.com
http://www.autismspeaks.org
If you do not have access to the C/AL code then there is a form property CalcFields which does the same thing
Dynamics Nav Add-ons
http://www.simplydynamics.ie/Addons.html
http://www.BiloBeauty.com
http://www.autismspeaks.org
Hanen TALBI
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.
Hanen TALBI