Display Mediaset images in factbox

jimmyf
Member Posts: 104
Hi I would like to create a factbox through which I can display all images in the Picture mediaset field in the Item record.
Can anyone advise how I can achieve this? It seems by default only the first image in the Mediaset is displayed.
Perhaps by having a Next and Previous action to iterate throu the mediaset images and display them.
Thank you
Can anyone advise how I can achieve this? It seems by default only the first image in the Mediaset is displayed.
Perhaps by having a Next and Previous action to iterate throu the mediaset images and display them.
Thank you
0
Answers
-
As standard an item record displays a single image as only one image can be imported for one item. If you import another one the picture will be replaced. Your will need modification.
My suggestion is to create a new table with fields Item No., Line No. (composite key) and a Picture (Mediaset )field
Create a new factbox (copy the existing one) , this factbox will have the new table as a source.
Change bit of behind the factbox page , you dont have to do much just fix few things to make it work with the new table.
Add two new actions to the page , one previous and other for next and code behind the actions will be NEXT(-1) and NEXT(+1) respectively.
The relationship between item and this new table will be one to many in order to store more that 1 record. Of course you need to add the logic to insert new record to the new table when new picture is inserted from item card, and logic to delete the record as well.United Kingdom0 -
Hi thanks for replying to my post.
My understanding is that the Picture field in the Item record is a Mediaset field and The mediaset is a collection of Media.
I can insert multiple images into the Picture field however, Similar to your screenshot I would like to display each of the images in the mediaset rather than store the images in a new table.0 -
Hi,
I tried to write a post about MediaSet : https://mybusinesscentraldiary.wordpress.com/2021/05/17/item-images-in-a-factbox/. Is this what you are looking for?
Thanks0
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