Show image/picture from server in factbox

kabrocokabroco Member Posts: 111
edited 2013-09-12 in NAV Three Tier
Hello,

I have a problem with showing a picture in a factbox.
The picture is not stored in a NAV table, but present in a file on the server (where the RTC runs).
All the data about location are stored in a NAV table.
A record with image ID, is linked to a factbox based on the source "Image table" (this table contains the file location and name).

I tried to get this working.

I added a VAR TempImage (TempImage = a table that contains a blob file).
In the onaftergetrecord from the factbox I tried to get the file and
TempImage.Picture.IMPORT(FileRec.Path + FileRec.Name);
I placed this field in a control of the factbox.
The file is found and imported but not shown.

Can a factbox only show fields from the sourcetable?

Any suggestions how to solve this?
Thanks in advance.

EDIT:
OR: how should I show pictures from file in a factbox? (maybe my solution is totally wrong) :-k

Comments

  • fitolfitol Member Posts: 46
    Your solution is quite right, but the picture field has to be in the source table.
    You can import the picture without saving the record when the factbox is displayed, it doesn't have to be in the database permanently.
    This is from something I made years ago:
  • kabrocokabroco Member Posts: 111
    That means I have to add a blob field to the ImageTabe, an load the file into the blob temporarily. I'll try that.

    There is no way to show for instance the company information picture in a factbox that is not based on the companyinformatio table. Tried that too. This image did not show either.(did not forget the calcfields...)

    Nice dress, by the way.;-)

    Thanks, Carolien
  • geordiegeordie Member Posts: 655
    You could use also a temporary record of TempBlob table (99008535), avoiding custom table creation :wink:
  • kabrocokabroco Member Posts: 111
    Thanks for the tip!
Sign In or Register to comment.