Item Picture in Report for other Data Item

Hi,

When i am running report in RTC, with Table 50015, i get the item from Item table and then try to show the picture

but in the reports all records are showing the same picture. Why this is happening. Here is the code

On aftergetrecord trigger of DataItem 50015

ItemRec.GET(“Item No.”) THEN
ItemRec.CALCFIELDS(Picture);

and on the sections in a picture box, sourceexpr is ItemRec.Picture.

Could some help me on this.

Thanks

John

table 50015 is a custom table, so without further details it’s hard to say

Are you storing picture in Table 50015 and relating with Item Master ???

Are you storing picture in Table 50015 and relating with Item Master ???

Hi,

Table 50015 is having Fields “Item No” code 20 & other fields. After some processing
this table saves some records.

Then in report I have taken 50015 as Data Item & then onaftergetrecord code is written
to fetch record from item master.

IF ItemRec.GET(“Item No.”) THEN
ItemRec.CALCFIELDS(Picture);

After the above code, description & description 2 is displayed correctly it means it is getting
record from Item Master. But picture is displayed as same for all the records.

I tried saving this picture field in 50015 but this way also it shows the same picture for all record.

Hope i am clear .

Thanks
John

How you are storing picture in Table ??

Is it Path of picture or you are storing in BLOB field?

Does 50015 store many different item numbers?

Do all the item Numbers have pictures?

Did you verify from the item card that all the pics are actually different?

Are you saying you are also pulling the item description fromm the item table in your report & it’s showing correctly?

Hi,

The picture is saved in 50015 as BLOB. Also all item pictures are different.

Thanks

John