Specify image for a pop-up LOV in a tabular form?

Hi,
I am using a tabular form for users to edit data. One of the fields has too many options to use a select list, so I have to use a pop-up lov (query based)... grrrr
The lov shows up in my form as [Field value]List
I would like to remove the text "List" and put a small icon there. Where can I specify the image source?
Thanks,
Rob

Hi Denes,
Thanks for your reply. I looked at your page, but I'm not sure if it relates to my issue.
Here's a piece of the generated HTML for the pop-up lov:
<span class="lov">
<label class="hideMe508" for="f03_0004">f03_0004</label>
<input id="f03_0004" type="text" value="U41" maxlength="2000" size="8" name="f03"/>
<img align="middle" style="vertical-align: middle; cursor: pointer;" alt="List"/>
</span>Notice that there is an image tag, but the src attribute is not there...as a result the browser displays the alt text List.
If I missed your solution I apologise...

Similar Messages

  • Dynamic LOV in a Tabular Form

    Can somebody please tell me if there is a easy way to code a
    dynamic LOV in a Tabular Form?
    I need the ability to access a column value in the table row, to use in the WHERE clause of LOV query for another column in the row? Seems
    like that should be easy , but not finding an answer.
    Thanks for any help.
    Carol

    Hi Carol,
    You can add the select list's definition directly into your SQL statement using APEX_ITEM.SELECT_LIST_FROM_QUERY - see: [http://download.oracle.com/docs/cd/E10513_01/doc/apirefs.310/e12855/apex_item.htm#CHDIDGDA]
    If you first run your page with your existing select list on it, then do a View Source and look for the select list, you will see a "name" attribute of something like "f01" or "f02" etc. Make a note of the number part of this.
    Then update your SQL statement to include the above and using the number you noted as the Index value (say, 4):
    SELECT EMPNO,
    ENAME,
    DEPTNO,
    APEX_ITEM.SELECT_LIST_FROM_QUERY(4,MGR,'SELECT ENAME d, EMPNO r FROM EMP WHERE DEPTNO = ' || DEPTNO || ' AND EMPNO <> ' || EMPNO) MGR
    FROM EMPThat would give you a select list of employees in the same department as the current employee (excluding that employee themself)
    Andy

  • Turnaround for having pop-up lov with redirect

    Hi to all,
    is there a way to modified somewhere pop-up lov and adding a redirect to it?
    Maybe with some javascript?
    Any suggestion would be very appreciated.
    thanx a lot

    Hi Marcello
    "onfocus" is working for simple PopUp LOVs.
    I use the following for submitting Popup LOVs:
    HTML Form Element Attributes: onfocus=javascript:doSubmit("REQUESTX")
    Thats no redirect, but you may use a simple branch for same effect or another javascript-command.
    This works with 2.2.1 only for PopUp LOVs, not for PopUp Key LOVs!
    Best regards,
    Matthias

  • How to retain value in LoV item in Tabular Form, after Page Refresh

    Hi,
    I have a tabular form, which contains 2 items(columns), of type "Select List - named LoV".
    Now, 2nd item(column) in tabular form, that LoV should get populated based on user's selection value in first item LoV.
    1. So how do I refer to the value, that user selected in first item's LoV? I will have to use this value as reference in LoV query of my 2nd item ( on this tabular form)
    2. Everytime I select value in first item LoV, page gets refreshed, as my requirement is to calculate 2nd item's LoV based on selected value in first item. So after this page refresh, first item LoV loses its value that was selected before the page refresh happened. So how do i retain this value in first item LoV? I have an unconditional process, that on every submit(refresh) of page, I set all my items with their corresponding values. But problem is what do i mention there to refer to this first item ( of type LoV) of tabular form?
    I looked in view source of my page, this item is referred as f03.
    So i used "apex_application.g_f03", to set this item to its value, in my uncoditional submit process. But it did not work. I tried to refer this item as "f03" in this unconditional submit process. But still it did not help, the selected item loses its value after page refresh(submit).
    Please help.
    Thanks and Regards,
    Ravi.

    Hi Rave,
    You will have to use Javascript and Ajax to change the values as ApEx submissions will lose your results unless they are saved into the database.
    Remember, that as you are using a tabular form there will be lots of items called f01, fo2, fo3 etc on the page (one per row).
    Regards
    Michael
    Edited by: MKii on Jun 4, 2009 10:13 AM

  • Why doesn't a Popup Key LOV (named LOV) in a tabular form not display values in the popup?

    I have a tabular form and I'm setting one of the fields to a Popup Key LOV (named LOV). The named LOV is a static LOV. When the popup is displayed there are no values displayed. The same thing happens if I use a Popup LOV (named LOV).
    I created a sample application http://apex.oracle.com/pls/apex/f?p=15762:1that shows what happens. When the job field popup is selected, no items are displayed. If I change the item to a Select List (named LOV) it works fine.
    Is this a bug?

    Hi
    I am also getting the same issue. Hope it could be a bug.
    Can anyone plz confirm this?
    Thanks
    Lakshmi

  • Cascading LOV in a Tabular form

    Hi Guys,
    I have read numerous articles on the generation of cascading LOV's in a tabular form but havent been able to get it working
    I have created an example in my apex workspace at:
    http://apex.oracle.com/pls/apex/f?p=4000:1500
    workspace XXAPPS
    Username guest
    Password demo
    app no 17551
    Page 2
    In my test scenario, I have an emp table, dept table and an office table.
    Within my tabular form(based on the emp table), I have a deptno column and an office column.
    Depending on what the user selects in the deptno column, I would like the corresponding list of offices associated to that dept LOV to be returned in the offices LOV.
    The table structure is
    EMP
    EMPNO
    ENAME
    JOB
    MGR
    HIREDATE
    SAL
    COMM
    DEPTNO
    OFFICE_ID
    DEPT
    DEPTNO
    DNAME
    LOC
    OFFICE
    OFFICE_ID
    OFFICE_NAME
    DEPTNO
    When the user selects a deptno in the LOV I would like that to control the values that are returned in the office LOV.
    I have used Jari's blog post:
    http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117
    but as you can see it isn't quite working in that the office LOV is not returning anything.
    I am pretty new new to JavaScript and jQuery so am no doubt doing something wrong as some of the steps are causing errors and are confusing me a bit e.g. step2 is causing the page to return blank (I have commented the code out in the example)
    Any help would be greatly appreciated.
    Thanks
    Edited by: Cashy on 07-Mar-2012 04:05

    Hi fac,
    That is the full code as per the Jari's link on http://dbswh.webhop.net/dbswh/f?p=BLOG:READ:0::::ARTICLE:2003800346210117 (last but one section of instructions).
    I have got the id of the elements (f07 and f06) by using IE Developer toolbar and have passed those into the dynamic action.
    The child element is now just showing loading...
    It seems to me that the on demand process is not being called because I changed the code to:
    DECLARE
    l_sql VARCHAR2(32700);
    BEGIN
    IF APEX_APPLICATION.G_x01 IS NOT NULL OR APEX_APPLICATION.G_x01 IS NULL
    THEN raise_application_error(-20001,'code gets here');
    l_sql := 'SELECT competency_id AS RET
    ,competency_description AS DIS
    FROM XXMEL_FOCUS_COMPETENTCIES
    WHERE competency_category_id = ' || APEX_APPLICATION.G_x01 || '
    ORDER BY competency_description
    APEX_UTIL.JSON_FROM_SQL(l_sql);
    ELSE
    HTP.prn('{"row":[]}');
    END IF;
    just to see if the code is getting to the process but the error message that I put in the PL/SQL is not firing.
    Chris

  • Restricting LOV values in tabular form

    Hi,
    I am new to APEX.
    I have a tabular updateable report with the following layout
    wagon_no container_no origination destination received_flag wagon_size
    wagon123 container123 MLPM DOZ N 20
    wagon456 container456 MLPM DOZ N 40
    Wagon number,container_number,origination,destination are LOV's and which can be updateable.
    Size is read only.
    I need to restrict the entry of the wagon's and container in the report.
    ie,If wagon Size is 20,then I can enter the same wagon size twice.
    If the wagon size is 40,then I can enter the wagon only once for a particular train.
    Can it be done at the LOV?
    Can it be done through Javascripts..if yes,how can it be done??I have not used Javascript..
    Also,the container cannot be entered twice..
    I tried restricting the container number in the LOV by not displaying the entered container number in the LOV .But,once saved and while querying later,it doesnot show the correct value.
    Can anybody help me out?please,its quite urgent..

    Hi,
    Have a look at Denie' example on cascading LOV's. this should give you some insight.
    http://apex.oracle.com/pls/otn/f?p=31517:42:8068804019748890::NO.
    Kind regards,
    Iloon

  • Bug in Static LOV definition in tabular form?

    I have always defined static LOVs as follows
    STATIC:Yes;Y,No;N
    but now with V4.0+ the select list at runtime appears as follows:
    STATIC:Yes
    No
    Suddenly the literal "STATIC" is appearing in the first display field.
    If I omit the word "STATIC:" from the definition, it seems to work fine. Was this an intentional change in the definition of static LOVs? If so, you then the developers need to update the help text for LOVs.
    PaulP

    bump...

  • Cascading LOVs in a tabular form - 2 fields

    Hi
    Since I cannot find the original thread to VIKAS sample application
    http://apex.oracle.com/pls/otn/f?p=24317:9:702016961545771
    anymore, could someone help me to adopt & strip down his example to only have 2 select fields dependent on each other
    This is the JavaScript I currently have from his site
    <HEADER>
    <script type="text/javascript">
    function appendToSelect(pSelect, pValue, pContent)
    var l_Opt = document.createElement("option");
    l_Opt.value = pValue;
    if(document.all){/* why is ie different ask bill */
    pSelect.options.add(l_Opt);
    l_Opt.innerText = pContent;
    else {
    l_Opt.appendChild(document.createTextNode(pContent));
    pSelect.appendChild(l_Opt);
    var g_products=new Object;
    var g_sales_reps=new Object;
    function replace_select_list(pSelect,pXML)
    var l_Count = pXML.getElementsByTagName("option").length;
    pSelect.length = 0;
    for(var i=0;i<l_Count;i++){
    var l_Opt_Xml = pXML.getElementsByTagName("option");
    appendToSelect(pSelect, l_Opt_Xml.getAttribute('value'), l_Opt_Xml.firstChild.nodeValue)
    function get_ajax_select_xml(pThis)
    var l_Return = null;
    var l_td=html_CascadeUpTill(pThis,'TD');
    var l_products=l_td.nextSibling.getElementsByTagName('select')[0];
    var old_product;
    if (l_products.options.length>0) old_product=html_SelectValue(l_products);
    var l_sales_reps=l_td.nextSibling.nextSibling.getElementsByTagName('select')[0];
    var old_rep;
    if (l_sales_reps.options.length>0) old_rep=html_SelectValue(l_sales_reps);
    if (g_products[pThis.value] && l_products) {
    replace_select_list(l_products,g_products[pThis.value]);
    if (old_product) html_SetSelectValue(l_products,old_product);
    else {
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=get_products',html_GetElement('pFlowStepId').value);
    get.add('TEMPORARY_ITEM',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_products) { replace_select_list(l_products,gReturn); if (old_product) html_SetSelectValue(l_products,old_product);}
    g_products[pThis.value]=gReturn;
    get=null;
    if (g_sales_reps[pThis.value] && l_sales_reps) {
    replace_select_list(l_sales_reps,g_sales_reps[pThis.value]);
    if (old_rep) html_SetSelectValue(l_sales_reps,old_rep);
    else {
    var get = new htmldb_Get(null,html_GetElement('pFlowId').value,'APPLICATION_PROCESS=get_sales_reps',html_GetElement('pFlowStepId').value);
    get.add('TEMPORARY_ITEM',pThis.value);
    gReturn = get.get('XML');
    if(gReturn && l_sales_reps) {replace_select_list(l_sales_reps,gReturn);if (old_rep) html_SetSelectValue(l_sales_reps,old_rep);}
    g_sales_reps[pThis.value]=gReturn;
    get=null;
    </script>
    <FOOTER>
    <script type="text/javascript">
    function getCellIndex(pRow,pCell)
    if (document.all) {
    for(var j=0;i<pRow.cells.length;j++)
    if(pRow.cells[j] == pCell) return j;
    return pCell.cellIndex;
    function fire_onchange()
    var td_manufacturer=html_GetElement('MANUFACTURER');
    var l_cellindex=getCellIndex(td_manufacturer.parentNode,td_manufacturer);
    var l_table=html_CascadeUpTill(td_manufacturer,'TABLE');
    for (var j=1;j<l_table.rows.length;j++) {
    var l_cell=l_table.rows[j].cells[l_cellindex];
    var l_select=l_cell.getElementsByTagName('select')[0];
    if (l_select && l_select.onchange) l_select.onchange();
    fire_onchange();
    </script>
    ON DEMAND PROCESS (get_products)
    begin
    owa_util.mime_header('text/xml', FALSE );
    htp.p('Cache-Control: no-cache');
    htp.p('Pragma: no-cache');
    owa_util.http_header_close;
    htp.prn('<select>');
    for rec in (select val from products
    where manufacturer=:TEMPORARY_ITEM)
    loop
    htp.prn('<option value="' || rec.val || '">' || rec.val
    || '</option>');
    end loop;
    htp.prn('</select>');
    end;
    Also does it make a difference if the temporary item (condition) is a string value rather than a numeric value?
    Thanks a lot!
    David
    Message was edited by:
    swosh

    Swosh,
    I think that this approach is better than the one from Vikas:
    http://htmldb.oracle.com/pls/otn/f?p=31517:176
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/training
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • Implement a Pop-Up LOV in a report.

    Hi,
    I would like to use the 'HTMLDB_ITEM' item to generate a textfield with a link to a Pop-Up LOV in an Apex report. Anyone ever tried that before? Thanks.
    Edited by: Jacky411 on Jan 14, 2009 2:49 PM

    Hi Denes,
    Thanks for your reply. I looked at your page, but I'm not sure if it relates to my issue.
    Here's a piece of the generated HTML for the pop-up lov:
    &lt;span class="lov"&gt;
    &lt;label class="hideMe508" for="f03_0004"&gt;f03_0004&lt;/label&gt;
    &lt;input id="f03_0004" type="text" value="U41" maxlength="2000" size="8" name="f03"/&gt;
    &lt;img align="middle" style="vertical-align: middle; cursor: pointer;" alt="List"/&gt;
    &lt;/span&gt;Notice that there is an image tag, but the src attribute is not there...as a result the browser displays the alt text List.
    If I missed your solution I apologise...

  • Bug Report: Static LOV's and PDF Printing with Tabular Forms

    I have a tabular form, which acts as an editable report. Some columns are 'Standard Report Column' and some are Select Lists, using Static LOV's with the contents of
    Yes;Y,No;NThe purpose of the page is to allow users to edit yes/no attributes of a row. Then, they can print the report.
    To make the current sort of the report reflect what is being printed to PDF, I've used a Report Layout associated with the report region, as oposed to a report query. A report query in this case would not reflect the sort of the report (all columns are sortable asc/desc).
    Anyway, I link my report with the layout created, and go to run it. I get this message.
    ORA-06550: line 1, column 50: PLS-00103: Encountered the symbol "," when expecting one of the following: := . ( @ % ; The symbol ":= was inserted before "," to continue.
         Error      ERR-1000 Unable to determine LOV from "declare function x return varchar2 is begin Yes;Y,No;N return null; end; begin wwv_flow_utilities.g_query := x; end;".
    OK      
    report error:
    ORA-20001: Error fetching column value: ORA-01403: no data foundI'm guessing the product is trying to take my static LOV and place it in a function to be able to generate which value is being displayed as text, from the select lists. However, it doesn't work.
    I've been able to get around it - by adding a YES_NO domain to my domain_codes table (a table which associates abreviations with full meanings), I can set by select lists to be query based select lists using the SQL select code_meaning, code from domain_codes where domain = 'YES_NO_CODE'. This still allows the user to dropdown Yes/No fields, and the PDF printing doesn't break.
    It is just me, or can't the PDF printing handle static LOV's in tabular forms/reports?

    Hi Patrick.
    I've tried STATIC:Yes;Y,No;Nwhile stating it is a Select List (static LOV). The values that are rendered on the page are
    [STATIC:Yes]
    [No        ]
    ----------I tried the same thing with STATIC2 instead of STATIC, and the same thing happened.
    It also broke if I tried STATIC or STATIC2 under Select List (query based LOV). This is within a report where there is no hyperlink to say 'Create/Edit static list' or 'Create Dynamic List', as there is under select list items.
    However, I am finding that for some reason, the values being sent to the PDF are not the values in the database (Y/N), but the showing values (Yes/No). This happens when I use the domain_code select query as the query based LOV.
    Furthermore, I cannot get any columns not rendering on the page to be generated in the PDF. I have a column that groups items depending on values, and I want this grouping to display in the PDF instead on the original value, ideally.
    Cheers,
    K.

  • Dependent LOV in Tabular Form

    All,
    We are developing an application where we come across requirement to have two fields in tabular form and both are required to have LOV. But the issue is the second field LOV in the tabular form is dependent on first field value.
    ex: Assume first field is "Country" and second field is "Cities", when user selects first field country as "US", then we have to populate list of citiies in "US" for that row. And if the user selects country as "UK" for the second row, we have to populate second field (city) with list of citieis in "UK".
    We are unable to achieve this functionality and any help/pointers would be highly appreciated.
    Ram

    Hi Ram,
    Please have a look at this example by Denes Kubicek
    [http://apex.oracle.com/pls/otn/f?p=31517:176|http://apex.oracle.com/pls/otn/f?p=31517:176]
    I was able to achieve the cascading LOV functionality based on the above example.
    Thanks,
    Dippy

  • Populate tabular form items based on LOV in header

    Hi,
    I have an LOV (Select List with submit) defined as the item in the same region as a tabular form. I'm using the first row in the LOV as the default value.
    Following is the query for the LOV:
    SELECT team_code ||' - '|| description as d, team_id as r FROM cp_teams ORDER BY team_id
    If the user selects a value in the LOV it would then automatically refresh the tabular form based on LOV's return value. But initially I want the tabular form to be populated using the LOV's default value.
    Problem 1) When I log in for the first time and navigate to the page, the LOV displays correctly but it shows an error below it:
    report error:
    ORA-01722: invalid number
    Surprisingly, after I have submitted the list more than once, I never see this error again until I exit.
    Question 1) Does this mean that for the first time, the LOV is not being "submitted" and thus tabular form underneath it has nothing to show?
    How do I automatically submit the lov as soon as I navigate to the page?
    Problem 2) I have a field (item) TEAM_ID in the tabular form's query which should take the TEAM_ID passed from the LOV for every new record that is created.
    Question 2) How do I initialize this field for a new record from the "header" LOV? The ultimate objective is to have the TEAM_ID populated for all the records created in the tabular form.
    As you can see I'm a newbie to APEX so I'd appreciate any help.
    Thanks,
    Sunil

    Sunil,
    1. what is the null value for your header LOV. I usually use 0 or some other numerical values. You will need a computation for that LOV with a condition ITEM VALUE IS NULL in
    order to run it only once per session.
    2. In the properties of your column - Tabular Form Element - you can set the default value
    to an item value (application or page item name).
    Denes Kubicek
    http://deneskubicek.blogspot.com/
    http://www.opal-consulting.de/apex/f?p=107:7
    http://htmldb.oracle.com/pls/otn/f?p=31517:1
    -------------------------------------------------------------------

  • POP up LOV with check boxes for APEX 4.0

    I'm using APEX 4.0 on Oracle 11g and I will like to be able to select multiple selections when the POP UP dislplays. Is there a way to add check boxes?
    Thanks In Advance
    Jenice

    Hallo to all,
    again i can't find any turnaround for having a pop up, working with the technique I mentioned.
    Did anybody know a turnaround / can point to a good link?
    I'm very frustrated because with select list based on query works without problem... (but using this object is not the case such the user have to insert new value as well directly from the tabulare form).
    Thanx
    Message was edited by:
    Marcello Nocito
    Message was edited by:
    Marcello Nocito

  • Pop-up LOV, add Element Attributes?

    Hello again,
    I have a pop-up LOV (named LOV) on a column in the detail section of a master-detail form (imagine the "Employee Num" being a pop-up LOV in the image linked below[1]). This field also allows normal user entry just like any input field (this is, input is not disabled).
    However, while viewing the source HTML this field just an ordinary input field, I cannot seem to add an element attribute via the usual means. Just for arguments sake I want an alert box on each keypress, usually I would just add the line: onkeypress="javascript: alert('hello');" in the Element Attributes under the "Column Attributes" section. This is not working for me, however.
    How would I go about calling a JavaScript function (on a keypress, say) using this pop-up LOV input method?
    Thank you for you time.
    I am using APEX version: 4.0.2.00.09
    [1] http://imageupload.co.uk/viewer.php?file=yu7i83h5dpk5cy0npsy0.png
    Edited by: 986065 on Feb 14, 2013 1:51 PM

    Hello Bob,
    Sure you can enter a button on the template, but the problem is how to find out which page to call when the Add button is pressed.
    You can write your own LOV page(s) and attach those to a field (i.e. by adding a clickable image in the post element text) and then you can have all the control you want.
    Greetings,
    Roel
    http://roelhartman.blogspot.com/
    http://www.bloggingaboutoracle.org/
    http://www.logica.com/

Maybe you are looking for

  • Error starting oim managed server

    Hi, I am getting the following error when trying to start oim managed server using the command startmanagedweblogic.cmd oim_server1 <Jul 15, 2012 8:36:54 PM CDT> <Critical> <WebLogicServer> <BEA-000386> <Server s ubsystem failed. Reason: weblogic.sec

  • Deployement changes are not reflecting on Test Server

    Hello All, I have Local (development)environment , I have deployed this application in Test envoirment as well and working fine. I have identified some changes and made changes on local machine and tested, now I am trying to deploy same changes on Te

  • HT201263 how to fix error 9 for recovery

    How do I fix error (9) for recovery in i tunes?

  • How do I get my bookmarks on my iMac to sync with my iPhone?

    How do I get my bookmarks in Safari on my iMac to sync so that I have the same ones on my iPhone?  I do not see an option in iTunes.

  • How the applet can access local file system?

    1. I want to plugin the applet into the JSP. That applet should access the local file system. How to enable this programmatically. 2. Is it is possible to embed a frame inside the JSP. If so how? Thanks in advance.. K G Vinoth