Display Image of ComboBox Item Selection
I want to display an image when the user selects an item from the ComboBox. Which Property should I use?
You don't say where the image comes from, how you want to display it, or how the image is related to the selection in the ComboBox. However, you can handle the ComboBox SelectedIndexChanged event and out you code to display the image in that handler.
Sub ComboBox1SelectedIndexChanged(sender As Object, e As EventArgs) Handles ComboBox1.SelectedIndexChanged
Dim cmb As ComboBox = CType(sender, ComboBox)
Dim selectedItem As Object = cmb.SelectedItem
'Do something to display an image somewhere
End Sub
Similar Messages
-
How to set particular comboBox item selected once frame loaded?
I have a comboBox with all the items with data and labels
(set in the parameter of comboBox). However, I can't set the
particular comboBox item to display when the frame entered, like
this:
var listenerObject:Object = new Object();
listenerObject.load = function(eventObject:Object) {
_root.cb.selectedIndex=3;
_root.cb.addEventListener("load", listenerObject);
What's wrong?You cannot use the load event on a frame, because by the time
the code runs the component has already been loaded. But what you
can do is set the properties directly in that frame wihtout the
need of a listener. Simply write this,line instead of all the
previous code:
_root.cb.selectedIndex=3; -
Cannot Upload or Display Image in blob Item.
Hi Guyz,
I'm inserting a image in a blob item using oracle forms 10g and database 9i, everything is working fine except uploading image, i tried the below code it was opening file Open dialog and as soon as i select the image to insert into the image item it will not shown anything at all in image item.
WBP trigger code.
[code]
DECLARE
FILENAME VARCHAR2(256);
BEGIN
FILENAME := WEBUTIL_FILE.FILE_OPEN_DIALOG();
IF FILENAME IS NOT NULL THEN
CLIENT_IMAGE.READ_IMAGE_FILE(FILENAME,SUBSTR(FILENAME,INSTR(FILENAME,-1)),'MN_PICTURES.PICTURE');
:MN_PICTURES.PIC_STAT:=1;
END IF;
END;
[/code]
then i tried new thin from scratch using the below link to insert the code but still same i cannot insert image into the image item i set the below properties in image item
Baig's Technology Blog: Storing and Retrieving Images / Word / Excel / PDF and Movies in Oracle Database using Forms10g
sizing style=Adjust
Image format= TIFF.
any patch required or i'm doing something wrong?
Regards
Moazamhey guyz,
I found the solution on below link...thx
https://forums.oracle.com/thread/2190302
Regards
Moazam -
Regarding nor of line items selected in per select query..
hi,
i want to display nor of line items selected in per select query for two individual queries which are linkesd by for all entries..
regards..
chetanHi,
I dont unserstand the problem you are facing. please paste your SELECT query and then explain the problem. then it will be easy for analysis.
Basically DESCRIBE TABLE itab LINES n. this statement will put the number of lines the internal table contains
//Kothand -
I have created a GUI that lets me display images that a user selects from a file. However is it possible to display an image that has not yet been written to a file?
I have a class that takes an image object, perfoms operations on it then maps this to a new image object. Would it be possible to display this image before it has actually been written to file? If anyone out there has ideas i'll be very grateful.
Here is an example of how I map one image to another:
// Creates an image object.
MyImage imageRight = new MyImage();
// Now read in the image file
// Create new object for reading image
MyImage imageCenter = new MyImage(imageRight.getWidth(), imageRight.getHeight());
/* Copy the pixel information from image that was read in to the
new image */
for (int y = 0; y < imageRight.getWidth(); y++) {
for (int x = 0; x < imageRight.getHeight(); x++) {
/* Get the values from imageOne */
int red = imageRight.getRed(x,y);
int green = imageRight.getGreen(x,y);
int blue = imageRight.getBlue(x,y);
/* Put these values into imageTwo */
imageCenter.setRGB(x, y, red, green, blue);
At this point before I write the file, you can see that imageCenter holds all the attributes of an image. Now can I display this image object in my GUI?
I hope someone can help me as this is really important.
Thanks again.Look into the graphics's drawimage method.
;o)
V.V. -
Can We Display Image on Hieararichal Report on Each Line item
Dear Gurus ,
I have a Strange Requirement from the Client . They want to display Image on each line item of report with regard to Material in Hierarchal Sequential Report . Is there any solution for the same .
Thanks in advance
regards
ShankarI am having a path which is stored in SAP database which i have fetched in the reported in both alv heriarchal and also in Alv Grid . The Image is stored from DMS . Now what i am doing is i am trying to load a excel file from program BCALV_BDS_UPLOAD and when i run my report and go to view and select Microsoft Excel option the I am getting an error Bad file format .
The Path is : SAPR3://SAPR3CMS/get/200/DMS_5FC1/DE72B28A5B76F0F1AF0000215E54283E/FM1E1085XX18W-001E.jpg
Can you please help me out in this .
Regards
Shankar -
Apex 4.0 display image item :BLOB column returned by SQL statement
Hello
I'm creating an display image item in apex 4.0. The source is a BLOB column returned by SQL statement.
When I'm issuing an sql statement like this:
select lado.blob_content
from large_documents lado
, large_doc_headers ladh
where lado.ladh_nr = ladh.nr
more criteriait works fine.
When I create a function inside a package with the same query (in a cursor)
function get_image(some parameters in) return blob
Following in apex by:
select get_image(some parameters) from dualI get a
ORA-06502: PL/SQL: numeric or value error: character string buffer too smallAnybody any idea why this does not work?
Regards ErikHi Eric,
the environment assumes varchar2-output by default, which will be limited to 32767 characters and may have problems with binary formats. You could define a blob-variable to select the value into.
DECLARE
l_blob BLOB;
BEGIN
SELECT get_image(some parameters)
INTO l_blob
FROM dual;
END;
/If you expect the BLOB-Content to be text (you should consider CLOB then), you may use UTL_RAW.CAST_TO_VARCHAR2 to convert the content. If your object is larger than the maximum varchar2 size, or you want to convert BLOB to CLOB, you might be interested in some converter like described here: {message:id=559749}
Hope this is what you were searching for.
-Udo -
Refresh display image item without reload page
hi all, is a way to refresh (requery) a display image item to change the image via botton and do not reload page ?
thanks
Edited by: Reza.Gh. on Sep 24, 2012 11:56 AMI create a sample app :
https://apex.oracle.com/pls/apex/f?p=9310:1
code of item P1_CAPTCHA_IMG :
SELECT captcha_img FROM captcha WHERE response = :P1_CAP_V;
item P1_CAP_V code (computations) :
SELECT *
FROM (
SELECT response
FROM captcha
ORDER BY
dbms_random.value
WHERE rownum = 1 ;
Refresh botton code :
action 1 :
SELECT * into :P1_CAP_V
FROM (
SELECT response
FROM captcha
ORDER BY
dbms_random.value
WHERE rownum = 1;
action 2:
refresh item P1_CAPTCHA_IMG -
How To Display an Image in a Display Image Page Item
i have a pageitem textbox called SearchBox , a Button called Search and a Display Image called Image
i to display and image upon inserting an ID into the searchbox. It work alright if i put a static ID in the BLOB Column returned by SQL statement in Display Image
Note the facialimage of datatype BLOB
Sample
===
select facialimage
from voter_v
where voterid= 34343434;
But when i do it with a bind variable like the pageItem SearchBox
it doesnt on the click of the Button
what can be the problem
Sample
===
select facialimage
from voter_v
where voterid= :P1_VOTERSEARCH;Hi,
can you please setup an example on apex.oracle.com and let me know the login credentials for the workspace. I think that will be the easiest to sort this out.
Regards
Patrick
My Blog: http://www.inside-oracle-apex.com
APEX Plug-Ins: http://apex.oracle.com/plugins
Twitter: http://www.twitter.com/patrickwolf -
How to display image in selection-screen of a report
Dear all ,
i want to show my image from url or from desktop to the report selection-screen . i have searched sdn and found some code . after applying it i am not able to display image in the selection-screen although it is displaying the box in which the image should appear . here i am sending my code plz verify where is the mistake .
REPORT ZPIC2.
DATA: docking TYPE REF TO cl_gui_docking_container,
picture_control_1 TYPE REF TO cl_gui_picture,
url(256) TYPE c .
PARAMETERS: A(4) DEFAULT '4' .
PARAMETERS: B(4) DEFAULT '5' .
AT SELECTION-SCREEN OUTPUT.
PERFORM show_pic.
**& Form show_pic
FORM show_pic.
CREATE OBJECT picture_control_1 EXPORTING parent = docking.
CHECK sy-subrc = 0.
CALL METHOD picture_control_1->set_3d_border
EXPORTING
border = 5.
CALL METHOD picture_control_1->set_display_mode
EXPORTING
display_mode = cl_gui_picture=>display_mode_stretch.
CALL METHOD picture_control_1->set_position
EXPORTING
height = 100
left = 150
top = 58
width = 350.
CALL METHOD picture_control_1->load_picture_from_url
EXPORTING
url = 'C:\abc.jpg' .
endif .
IF sy-subrc NE 0.
ENDIF.
ENDFORM.
CORECT ANSWERS WILL BE HIGHLY APPRECIATED AND SURELY REWARED .
THANKS ,
AMIT RANJANHi,
Try this code. hope it will work.
DATA: DOCKING TYPE REF TO CL_GUI_DOCKING_CONTAINER,
PICTURE_CONTROL_1 TYPE REF TO CL_GUI_PICTURE,
URL(256) TYPE C,
PIC_DATA TYPE TABLE OF W3MIME WITH HEADER LINE,
PIC_SIZE TYPE I.
SELECTION-SCREEN BEGIN OF BLOCK B1.
PARAMETERS: A(4) DEFAULT '4' .
PARAMETERS: B(4) DEFAULT '5' .
SELECTION-SCREEN END OF BLOCK B1.
AT SELECTION-SCREEN OUTPUT.
PERFORM SHOW_PIC.
*& Form SHOW_PIC
FORM SHOW_PIC .
CREATE OBJECT PICTURE_CONTROL_1
EXPORTING PARENT = DOCKING.
CHECK SY-SUBRC = 0.
CALL METHOD PICTURE_CONTROL_1->SET_3D_BORDER
EXPORTING
BORDER = 5.
CALL METHOD PICTURE_CONTROL_1->SET_DISPLAY_MODE
EXPORTING
DISPLAY_MODE = CL_GUI_PICTURE=>DISPLAY_MODE_STRETCH.
CALL METHOD PICTURE_CONTROL_1->SET_POSITION
EXPORTING
HEIGHT = 200
LEFT = 100
TOP = 20
WIDTH = 400.
CHANGE POSITION AND SIZE ABOVE**************************
IF URL IS INITIAL.
CALL FUNCTION 'DP_CREATE_URL'
EXPORTING
TYPE = 'image'
SUBTYPE = CNDP_SAP_TAB_UNKNOWN
SIZE = PIC_SIZE
LIFETIME = CNDP_LIFETIME_TRANSACTION
TABLES
DATA = PIC_DATA
CHANGING
URL = URL
EXCEPTIONS
OTHERS = 1.
ENDIF.
CALL METHOD PICTURE_CONTROL_1->LOAD_PICTURE_FROM_URL
EXPORTING
URL = 'file://D:\img.jpg'.
ENDFORM. " SHOW_PIC -
Display infopath form in listview, select item to populate the form
Hi-
I once used a list where if you selected the list item by clicking a <-> button,it then populated the infopath form on that page. I have a page with two webpart zones, one for the list and one for the related infopath form. How can i connect the webparts,
so when i select a single list entry the infopath form populates?
I cant remember the tutorial i once found, loved this feature.
thanksHi,
That icon comes up when you connect the InfoPath form web part with the list web part. The view that is displayed on the Infopath web part will populate with the list item selected in the list view. When creating the connection, choose the option to Get
form data from and it will automatically select the Infopath on the page. This is a similar post but done in O365.
http://jennyssharepointtips.wordpress.com/tag/infopath-form-web-part/
Hope it helps.
Regards, Kapil ***Please mark answer as Helpful or Answered after consideration*** -
Reading & displaying image in non-database item.
Upto now I have read & displayed image in database block and items. It has few problems.
Is there any way that I can read & display image in non-database block & items?
Thanks and regards,
Vikas<p>Have a look at this Java Bean.</p>
Francois -
How to resize display image item?
How to resize an image in display image item not in column?
I find a way to resize it in column which similar to this way
decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null,
'<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius:
4px;" '||
'src="'||
apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)||
'" height="75" width="75" alt="Player Image" title="Player Image" />')
detail_img
but when I try to implement it to display image item which I returned the image from the column, I cant resize it this way, or may be I used wrong syntax, can you please help me finding way to resize it with steps?I guess it is because of some carriage returns in your dynamic img tag that is being generated may be not, so make sure there are no breaks half-way through he attributes of the img tag.
decode(nvl(dbms_lob.getlength(PLAYER_PIC),0),0,null, '<img style="border: 4px solid #CCC; -moz-border-radius: 4px; -webkit-border-radius: 4px;" '|| 'src="'|| apex_util.get_blob_file_src('P5_PLAYER_PIC',ROWID)|| '" height="75" width="75" alt="Player Image" title="Player Image" />') detail_imgand also inspect the element/img to see if the code is rendered correctly
Thanks -
i have selected not to load images automatically in OPTION of firefox, and i want to keep this option as it is. now can i display images of particular page without changing DONT LOAD IMAGE AUTOMATICALLY? for example if i trust that image on particular page doesnot contain any adult material and safe to see that page from home, can i temparory view image on page?
-> Tap '''ALT''' key or press '''F10''' to show the Menu Bar
-> go to Tools Menu -> Options -> Content -> click '''Exceptions...''' button infront of '''Load images automatically''' -> type the address of the website on which you want to load images e.g. yahoo.com and click '''Allow''' button -> click Close
-> Click OK on Options window -> Restart Firefox
Check and tell if its working. -
Alternative method for displaying images blobs stored in DB
I am trying to use an Application Process as a means to displaying images stored in BLOB columns in my table. And it works except for one problem. The code for my on-demand Application Process is below (the name of the application process is OUTPUT_IMAGE):
DECLARE
l_mime VARCHAR2(255);
l_length NUMBER;
l_file_name VARCHAR2(2000);
lob_loc BLOB;
BEGIN
SELECT photo_mime_type,
photo_blob,
photo_filename,
dbms_lob.getlength(photo_blob)
INTO l_mime,
lob_loc,
l_file_name,
l_length
FROM persons
WHERE id = <b>260</b>;
owa_util.mime_header(nvl(l_mime,'application/octet'), FALSE);
htp.p('Content-length: ' || l_length);
htp.p('Content-Disposition: filename="' || l_file_name || '"');
owa_util.http_header_close;
wpg_docload.download_file(lob_loc);
END;
I can then create HTML like:
<img src="f?p=[my_app_id]:0:[the_session_id]:APPLICATION_PROCESS=OUTPUT_IMAGE">
Which works nicely.
The question/problem is: How can I pass the ID of the record (whose BLOB I want to display) to the Application Process? (In the code above you'll see the value of <b>260</b> is currently hard coded). I thought about tacking on something like "&my_id=xxx' to the end of the URL but doing so prevents the Application Process from even running.<BR/><BR/>
All comments/suggestions much appreciated,<BR/><BR/>
Thanks,
<BR/>
AndyAndrew,
The URL for an Application Process uses the standard f?p syntax.
Try passing your value like this:
< img src="f?p=[my_app_id]:0:[the_session_id]:APPLICATION_PROCESS=OUTPUT_IMAGE:NO::MY_ID:[the value to send]"> You would need to have an item called MY_ID.
Your query could then refer to it as
WHERE id = :MY_ID;
Doug
Maybe you are looking for
-
How do I open a directory of music files (wav) without adding to library?
In Windows Media Player I can go to a directory and open the whole folder and play it without adding it to the library. Can this be done in iTunes? I record my LPs at 96K, 24bit and just want to play them back. If I add them, since the id3 tag inform
-
Case and decode - nested functions
Can i use a case statement inside a decode or nvl2 function? eg. decode(col_a,'ABC', case when col_b in (1,2) then 'CCC' else when col_b in (3,4,5) then 'XXX' end , 'NA') Can i use a function like this basically, can i nest a case statement within a
-
At first I thought it was a network hardware issue, since I was getting this error on ODBC apps on remote machines. But now I've noticed that an app using TCL and Oracle for NT 8.0.5 in a VMware virtual machine running on the same box as the Oracle 8
-
ECM_SPFieldFilteredLookup Error
Hello. I have recently encountered a problem with using a SharePoint 2010 list template. Our customer is running SharePoint 2010 Server. I had to test new workflows which manipulate with data, so I saved one specific list as a template including data
-
How to add a planified stop notifying system to several Web applications
Hello everybody. I need to implement an extra application to be executed before creating http sessions in the other applications of the server, in order to show a message before the main application (that the user is requesting). This message should