putukaca
Aug 4 2007, 11:50 PM
hi i have some data in a table, it's name Product. it's contain some data like this:
code picture
A1 C:\A1.jpg
A2 C:\A2.jpg
...etc.
field picture just contain path of picture location not a blob. how can i show in fast report which contain code of product and it's picture? help me
thank's
yudi
gordk
Aug 5 2007, 04:00 AM
use the obp event of the pictureview and write code using the loadfromfile method
IIRC picture1.picture.loadfromfile('path&filename');
putukaca
Aug 9 2007, 09:10 AM
thank's for the replay but i still not understand to fill Path&filename in picture1.picture.loadfromfile('Path&file name'). this the situation:
1. table product have 2 field (as i wrote before)
2. i put a memo which contain code and picture(which load from directori) in masterdata1 band.
3. if i use picture1.picture.loadfromfile('C:\A1.jpg') in obp event of pictureview then code A1 and A2 display picture A1.jpg
4. i want like this:
if code A1 then the picture A1.jpg
if code A2 then the picture A2.jpg
or we can say every code display it's own picture. or how to fill 'path&filename' with value of picture field in table product
thank's
yudi
gordk
Aug 10 2007, 04:20 AM
in th obp event test the value of the field
if <datasetname."fieldname" > = 'A1' then
picture1.picture.loadfromfile('C:\A1.jpg') else
picture1.picture.loadfromfile('C:\A2.jpg');
or if the data field contains the path & filename
picture1.picture.loadfromfile(<datasetname."fieldname" >);
putukaca
Aug 18 2007, 10:51 PM
thank's it's work
geekzero
May 25 2009, 03:16 PM
buenisimo el ejemplo, lo he implementado, ahora me queda una consulta, cuando registro no tiene foto asignada, se lanza un error, como podria manejar esta excepcion haciendo que si no existe tan solo muestre vacio el objeto picture?
gordk
May 31 2009, 02:59 AM
no comprendo
language of group is english.
geekzero
May 31 2009, 09:51 AM
good example, I have implemented, now I have a query, where registration is not assigned photo, an error is thrown, as it might handle this exception so that if there is not just a picture showing the object empty?
gordk
May 31 2009, 11:33 AM
typical
in obp event of band check the size of the datafield stream if not large enough to be a picture
then modify the pictureview's properties to suit
NatalieSmith01
Jan 16 2011, 05:35 AM
QUOTE(gordk @ Aug 10 2007, 04:20 AM)

in th obp event test the value of the field
if <datasetname."fieldname" > = 'A1' then
picture1.picture.loadfromfile('C:\A1.jpg') else
picture1.picture.loadfromfile('C:\A2.jpg');
or if the data field contains the path & filename
picture1.picture.loadfromfile(<datasetname."fieldname" >);
That perfectly works for me.
Thanks a lot for your help.
Nunu
Feb 10 2011, 02:25 PM
Hi,
Am new to OAF and have one question.. If I want to display the prompts against any field in the OAF page dynamically then is this feasible? What should I be looking to achieve the same.
Thanks and Regards
Jenny456
May 2 2011, 11:35 AM
I think it's quite feasible.
Please PM me.
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please
click here.