Opening Picture [message #599376] |
Thu, 24 October 2013 00:37 |
|
amjad_alahdal
Messages: 102 Registered: October 2013 Location: Saudi Arabia
|
Senior Member |
|
|
Hello every one
I would like to ask a very small question. what is the code that should be written to open a picture inside the button.
I have already made the button, and the trigger is when push button, what I want is when I click the button it opens a picture in this directory
F:\Amjad\Amjad\amjad\1.jpg
the name of the picture is taken from table1 the colum serial_number
Thank you
|
|
|
|
Re: Opening Picture [message #599378 is a reply to message #599377] |
Thu, 24 October 2013 00:51 |
|
amjad_alahdal
Messages: 102 Registered: October 2013 Location: Saudi Arabia
|
Senior Member |
|
|
Sorry
and thanks
well,
I'm sorry Sir,
Maybe I didn't explain my question well. So, I created a button in oracle 6i developer.
Created a trigger, when button pressed
so, what I want is, when I click the button, it opens a picture in this directory for example :
F:\Amjad\Amjad\amjad\1.jpg
look, the name of the image is taken from an item of the block , the block name is My_table1, the item is Serial Number
so it should be,
My_table1.serial_number that refers to the name of the picture
|
|
|
|
|
Re: Opening Picture [message #599403 is a reply to message #599390] |
Thu, 24 October 2013 04:05 |
|
mughals_king
Messages: 392 Registered: January 2012 Location: pakistan
|
Senior Member |
|
|
do this---simple
READ_IMAGE_FILE('D:\'||:My_table1.serial_number ||'.JPG','JPEG','My_table1.IMAGE4');
------------------------------------------------------------------------------
if you wanna create serial number as well then create serial like this
WHEN-NEW-BLOCK-INSTANCE
declare
a number(7) ;
begin
select count(*)+1 into :my_table1.serial_number from my_table1;
:global.a:=:serial_number;
READ_IMAGE_FILE('D:\'||:My_table1.serial_number ||'.JPG','JPEG','My_table1.IMAGE4');
end;
WHEN-BUTTON-PRESSED
begin
:global.a := :global.a+1;
next_record;
:serial_number := :global.a;
READ_IMAGE_FILE('D:\'||:My_table1.serial_number ||'.JPG','JPEG','My_table1.IMAGE4');
end;
and remember picture name should be 1,2,3... or change according to your requirment
Regard
Mughal
[Updated on: Thu, 24 October 2013 04:07] Report message to a moderator
|
|
|
|
|
|
|
|
|
|
|
|