Skip to Main Content

APEX

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Dispaly image in PopUp Modal window

temmApr 11 2012
Hi,

i have a page with a simple report region where i am listing products with a small image. Images are from blob field of table photos. The source for the report is
select product_code, product_descr, '<img src="weborder.my_image_display?p_image_id='|| NVL (photo_id, 0)|| '" height="'|| 50|| '" />' photo
from photos
This works fine, but i want to be able to show a larger image (using the same blob) in a popup modal window when o product is selectexd.

So far the closest i have come to is using the following
$( function() {
$('#ModalForm').dialog(
{
modal : true ,
autoOpen : false ,
buttons : {Cancel : function() {closeForm(); }  }
});
}
);
function openForm()
{
$('#ModalForm').dialog('open');
}
function closeForm()
{
$('#ModalForm input[type="text"]').val('');
$('#ModalForm').dialog('close');
}
which uses an html region with (id=ModalForm).

This region popups up nicely, but i want to change the "Display image" of the html region (or with some other way) depending on the the selected product of the report
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on May 9 2012
Added on Apr 11 2012
0 comments
621 views