web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Finance | Project Operations, Human Resources, ...
Suggested Answer

Display image on Grid

(0) ShareShare
ReportReport
Posted on by 384

Dear gentlemen,

i am trying to add a new image as display method on the fixed asset list page from the attachement form on top of the form related to each fixed asset.

1778.FA.PNG

the value is being saved on the DocuValue table.

is there any way to add it as display method using the ImageReference Class? 

I have the same question (0)
  • Martin Dráb Profile Picture
    239,035 Most Valuable Professional on at

    Don't you want to use the same solution as in DocuAttachment form itself?

  • André Arnaud de Calavon Profile Picture
    303,716 Super User 2026 Season 1 on at

    Hi SylvesterD365,

    Where exactly do you want to display the image? What should happen if you have multiple images stored on the asset? Also note that leading the image will have a performance impact.

  • sylvesterPowerBi Profile Picture
    384 on at

    Hi Martin,

    it doesn't matter the solution, all that matters is to display the image on the Fixed assets grid

  • sylvesterPowerBi Profile Picture
    384 on at

    Hi Andre,

    i want to  post the image on the fixed assets form below, and if i have mutiple images i will set a checkbox to determine which image will be displayed on the grid,

    8877.FA.PNG

  • sylvesterPowerBi Profile Picture
    384 on at
    [quote]

    Hi SylvesterD365,

    Where exactly do you want to display the image? What should happen if you have multiple images stored on the asset? Also note that leading the image will have a performance impact.

    [/quote]

    Hi Andre,

    I want to show the image on the fixed asset form as below, and if i have multiple images i will set a flag to determine which image will be displayed on the grid

    5001.FA.PNG

  • Suggested answer
    sylvesterPowerBi Profile Picture
    384 on at

    i finally managed to find the simple solution in order to display an image on grid using the below code

     [SysClientCacheDataMethodAttribute(true)] 
        public static display container DisplayLogo(AssetTable _this)
        {
            DocuRef docuref;
            ImageReference imageRef;
            select docuref where docuref.RefRecId == _this.RecId && docuref.RefTableId == _this.TableId;                        
            str displayUrl = DocumentManagement::getAttachmentPublicUrl(docuRef);
            imageRef = ImageReference::constructForUrl(displayUrl);        
            return imageRef.pack();
        }

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

Leaderboard > Finance | Project Operations, Human Resources, AX, GP, SL

#1
Giorgio Bonacorsi Profile Picture

Giorgio Bonacorsi 659

#2
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 465 Super User 2026 Season 1

#3
Syed Haris Shah Profile Picture

Syed Haris Shah 304 Super User 2026 Season 1

Last 30 days Overall leaderboard

Product updates

Dynamics 365 release plans