Pictures in Page

_Ju__Ju_ Member Posts: 7
edited 2013-01-31 in NAV Three Tier
Hey Guys,
can I somehow display a picture from a variable/TempBlob Table in a page?
I'm pretty new to NAV 2013, when I create a page, based on a source table with a picture, i can show a picture.
When I create a page with a source table, with no image, and add a field in the page with the sourceexpression diffrentTable.Picture its not working..
Hasvalue returns true for this picture when i add a messagebox, but it wont show. :?: :?:

Is this no longer possible in RTC?

help

Comments

  • yukonyukon Member Posts: 361
    Hi _Ju_,

    I afraid say to you, my solution is correct. This is only my idea and tested

    1. Create New Field in Table (BLOB - SubType is Bitmap). This for temp show picture.
    2. Show New Field on your page.
    3. Create New Function in your page or table. Update your actual Picture to Created New Picture Field.
    fnGetPicture(var id)
    Clear(NewPicture);
    IF not recItem.GET(id) THEN exit;
       IF recItem.Picture.HasValue THEN
           recItem.CalcFields(Picture);
       NewPicture := recItem.Picture;
    
    4. OnInsert/OnModify on Page
    Clear(NewPicture);
    5. OnAfterGetRecord()(2009 R2) - Call your function.

    OR Please find control add-in. Last time saw it at one of blog. But i can't remember it. :(

    Best Regards,
    Yukon
    Make Simple & Easy
  • _Ju__Ju_ Member Posts: 7
    Hi,
    thank you for your answer.
    I was afraid this would be the only solution. But I'm thankful that you confirmed this.
    Quess I will need a new field then.

    Thanks.
Sign In or Register to comment.