Change Colour of PopUp Lov

I have the following code for a popup lov
select a,b from
select '1' res, htf.escape_sc(su.sukey) a, htf.escape_sc(su.sukey) b
from udm_su su, udm_lde lde
where su.ldeid = lde.ldeid
and su.sukey in (select su_generic
                 from vrp_cfg_gensuconv)
and lde.ldekey = :F140_LDEKEY
union
select '2' res, htf.escape_sc(su.sukey) a, htf.escape_sc(su.sukey) b
from udm_su su, udm_lde lde
where su.ldeid = lde.ldeid
and su.sukey not in (select su_generic
                 from vrp_cfg_gensuconv)
and lde.ldekey = :F140_LDEKEY
order by res, a, bWhat I want to do is dispaly the result of the first select statement in red
and the second in blue
Cheers
Gus

Gus C wrote:
Apex 3.2Don't have 3.2 around to experiment with. If the above doesn't work in 3.2 then I'm inclined to think that it isn't going to. Which is odd as the indications are that the restrictions were introuced in APEX 4.0:
<li>{thread:id=1338180}
<li>{thread:id=2126522}
Part of the problem is that LOVs rendered as select lists (which is most common) cannot contain HTML elements ( +{thread:id=898835}+ ), but the less common Pop-up LOV renderings can.
If this is a critical requirement, then 2 possibilities come to mind:
1. Fairly complex modification of the Pop-up Page/LOV templates to include JavaScript/AJAX that will execute for this list, figure out how many entries need to be each colour, and iterate over the options adding the require styles.
OR
2. Use a report on a pop-up page rather than an LOV.
Both look like more trouble than this is worth.

Similar Messages

  • Background colour of Popup LOV

    Hi,
    The disabled text-box of the popup LOVs in my application do not appear 'greyed' out when viewed in IE (they are fine in FF and GC). I am using Theme 13. Where can I change the background colour? I can't seem to find anywhere in either the template (preferred choice) or even the individual item's options to add the code for the style change.
    Thanks
    Lucy

    Ok. This looks like a bug in the Theme Template.
    Does not exactly look good, but better than before in that at least the text and links are visible !
    a. Edit the Popu LOV Template from Shared Components for the Slate Theme
    b. In Search Field - Before Field Text add the style as given below
    <div class="t1PopupHead" style="background-color:#ffffff;">c. Add the above style to Ressult Set - Before Result Set as well
    <div class="t1PopupBody" style="background-color:#ffffff;">Might be a known issue, will check it out.
    Regards,

  • Change Font in Popup LOV?

    Hello All,
    Apex 3.1
    I need the font size for a value returned from a Popup LOV to be much smaller. How would I modify the popup LOV template in order to change the font of the values in the LOV, or if not the LOV itself, the font size of the return item?
    Thanks!

    Hi
    Go to Shared Components > Templates > Popup List of Values
    There you will find the name of CSS which is being used with this LOV. You need to change the CSS to get the required fonts.
    Zulqarnain
    MaxApex Hosting
    http://www.maxapex.com

  • 4.2.2 Popup LOV - Theme Blue Responsive

    Using the Blue Responsive theme and would like to make the following changes to the popup lov (both in form and tabular form layout):
    Allow user to enter / editable (ie. email of a person lookup). Have the value check against the LOV; popup LOV window if there is more than one records return or cannot be found in the list. Currently, the setting for the LOV is 'Not Enterable, Show Display Value and Store Return Value'. Want the display value to display and not the return value (ie. id of the person).
    Once the value is return, the display value font color is gray (lighter than the rest of the non-popup lov fields). Where can I change the CSS for this?
    Would it be possible to have the 'Text Field with autocomplete' based on a named lov withe display and return value? For example, user enter email address, but store the person id ithe field.
    Any suggestion for fix / work around?

    Hi,
    do you have an example on apex.oracle.com?
    brgds,
    Peter
    Blog: http://www.oracle-and-apex.com
    ApexLib: http://apexlib.oracleapex.info
    Work: http://www.click-click.at
    Training: http://www.click-click.at/apex-4-0-workshops

  • Change Popup LOV template to put more spacing between rows

    I am trying to change the popup lov template to include a bit more spacing between the rows in the result set. So instead of seeing
    Test 1
    Test 2
    I want to see
    Test 1
    Test 2
    Looking at the html produced the rows are returned from a bit of javascript (using arrays and passback) and I can't figure out where to add anything that will change the spacing ie cellspacing doesn't do anything.
    The line I am interested in is - replace ( for < and ) for >
    document.writeln("(br /)(a href=\"javascript:passBack(v[1], v2[1]);\")Test(/a)");
    If I could just add a br at the close a tag...
    Does anyone have any ideas on this. I'm not keen to code a new popup lov, I was just wanting to tweak the existing.
    many thanks

    Hello,
    " I know this style isn't directly related to the t5PopupBody as you have suggested but it doesn't seem to make a difference"Your syntax will apply the new style to every link on your pop-up window. As there is non-others then the results, in this case it will make no difference.
    " I did something slightly different so I didn't have to worry about changing the css"That is OK, as long as you remember all the changes you are making to the original templates, because after upgrading – like in the near future to version 3 – some of the changes might disappear. That is why I prefer to use my own CSS file, on top of the original one.
    Regards,
    Arie.

  • Bold value from popup LOV

    Hi,
    style="font-weight:bold" or class="fielddatabold" in the element's HTML Form Element Attributes work perfectly for the text field. I cannot get the same result for field with disp.value from popup LOV (display value,return key). I can change font family for example, but cannot bold. Any suggestions ?

    Thanks a lot for your answer. I got the same idea, but cannot see any place to manage returned values on this template. Description from pop-up key LOV seems to be turned "disabled", and will get the grey colour on the screen. However, if I will change to Select list, it looks fine.

  • Disable/enable popup LOV image anchor in tabular form

    Hello all,
    I am trying to find the solution how to enable/disable popup LOV's image anchor. When I disable the popup item, then only the text field is disabled but the image is still active and opens the LOV window. I have tried to implement some solutions but without success.
    I have created DA (fired after refresh of needed region) with code below which disables the needed field.
    $('td[headers="DEPTNO"] input').each(function(i)
                $('td[headers="DEPTNO"] input:text').disabled="disabled";
    $($('td[headers="DEPTNO"] input:text')[i]).addClass('apex_disabled');
    Could anyone help me with a code which will also disable the image?
    Thanks in advance!
    My testing appl:
    www.apex.oracle.com
    *WS:* kurintest
    *username:* [email protected]
    *passwd:* kurintest
    *appl. name:* disable_popup_icon
    -Jiri                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

    Hello Jiri,
    Please see your page:
    I have changed the dynamic action:
    $('td[headers="DEPTNO"] input').each(function(i)
                $('td[headers="DEPTNO"] input:text').disabled="disabled";
    $($('td[headers="DEPTNO"] input:text')[i]).addClass('apex_disabled');
         $($('td[headers="DEPTNO"] a')[i]).click(function(e) { e.preventDefault(); });
    $($('td[headers="DEPTNO"] img')[i]).addClass('apex_disabled');
    Hope it helps!
    Regards,
    Kiran                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Theme 23 does not display popup LOV in tabular form

    I created new application using new Theme 23. In tabular form the popup LOV button does not show. While using this theme the column LOV button is soooooo small it is not visible. If I move the cursor on the side of the field eventually I cursor handle will change and I can click and popup LOV will show. When I switch to an older theme (e.g. 21) the LOV button shows just fine.
    Does anyone can offer a solution? Can I expect more this type of problems in the new theme 23?

    I examined exported application file. Indeed the problem is p_column_id parameter. It should be decimal number for translated application. Characters %2C in p_column_id value stands for comma. It should be dot instead. Parameter value should be p_column_id=30289208519476123679.915121.

  • Can you set a large fetch size for the standard popup LOV

    I'm trying to increase the fetch size that the popup LOV uses when I set a LOV up for an attribute.  It seems to have a default of 25.  I don't really have the issue when I'm on a PC, but when we run the app under Safri on an IPAD it will not automatically fetch the next 25 rows when the user scrolls down like it does in IE.  I had the same issue with tables, but I can change the fetch size on the table.  I really need to set the fetch size on the LOV.  ANyone know how to do this?  I don't even care if the setting would be across the board or just specific to one view.   

    I'm on 11g.  I'm using input list of values.  I don't want to wait for the whole list since the search could return 1000's of rows.  I like the automatic fetching I get with IE.  The IPAD is the issue.  It does not do an automatic fetch when you scroll to the end.  So, the user is limited to 25 rows no mater what their selection criteria is.  I'd like this to be around 400 if I could get it. 

  • How to wrap the text in a popup LOV item ( Apex 4.0 )

    Hi
    I have a popup LOV type item with a very long string value
    I would like to format the item so itr will be shorter but have the string wrap to multiple lines.
    Can you let me know how that can be achieved ?
    thanks
    O

    Hmm.. I don't know about that.
    I actually already managed to change the width of a specific popup element by putting the following in the region footer :
    <script type="text/javascript">
    $x('P3_CONTRACT').style.height="20px";
    </script>
    that works fine and only impacts that specific element.
    However , Since I know next to nothing of HTML and Javascript , I could not figure out the code to put to make the text wrap.
    your solution suggests that it will take care of the width , but will it cause the words to wrap ?
    thanks
    O
    Edited by: Orna Weisman on Apr 30, 2012 7:08 AM
    Edited by: Orna Weisman on Apr 30, 2012 7:15 AM

  • APEX 4.0 - AJAX not working with Popup LOV field

    Hello,
    In the application I have built I have three fields which are 'feeded' by selects via a AJAX construction.
    All three fields are based on three others, which are PopUp LOV fields. Up to version 3.2 I had no problems: the fields were 'refreshed' as expected when in the 'parent' field a specific value was entered or choosen by the Popup Lov selector.
    But since the migration to APEX-4 (lin a test-system) all the three fields are not correctly refreshed anymore: two of them give the value 'undefined', the third, which is a select-list shows values, but at the moment I try to click on the select-list down arrow to pick a value, the list is emptied and stays that way.
    More specific about the third field:
    item 1 is a popup-lov defined item in which a user can type a value, but can also choose a value from a popup-lov. Item 2 is based on item-1: it does a select based on the value of item-1 and refreshes a select-list. Item-2 is defined as a select list.
    I got it all working when making item-1 also a select list, but since the list can become very large, I made a Popup lov of it. Most users do know what code they have to enter and in case somebody is not sure, the lov can be used.
    In this forum I came across a problem with AJAX callback, which was answered by Patrick Wolf, saying that in an htmldb_Get ( ... ,0) the last 0 should be replaced by $v('pFlowStepId'), but this did not fix my problem. I have the feeling that the problem is somewhre else, since on first hand, after entering a value in item-1 I see item-2 refreshed with the correct values, but the moment I try to select one item, the list is emptied.....
    I hope I made it clear what my problem is and that somebody can help me, else APEX-3.2 was the latest version for this application....
    Thanks in advance and best regards,
    Jan.
    Edited by: user13110728 on 9-aug-2010 8:44

    Hi Jan,
    the problem is the
    onBlur="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"on P21_GBREKNR. This is getting attached to the HTML input text field but as well the the anchor link which opens the popup. So when you leave the text field the cursor will be put onto the icon to open the Popup LOV. When you press tab another time or leave the anchor link by clicking somewhere the above JavaScript function is fired again. But the problem is that "this" this time points to the anchor and not the text item anymore, so it will return an invalid value when you access this.value in your f_P21_select_kostenposten function which results in an empty result of your on-demand call.
    I still have to investigate why the above JavaScript code is now added to the anchor link as well. But as a workaround, just change your code to
    onChange="javascript:f_P21_select_kostenposten(this,'P21_KOSTENPOST');"which is better anyway, because it's just firing when the value really got changed. And because the anchor link can't really be changed, the event will never fire when you leave the anchor. BTW you can use the Application Search feature to search for all your onBlur events. onChange is much better than onBlur because it doesn't fire that often unintended.
    But if you want to use some of the new APEX 4.0 features, you could use the cascading LOV feature of APEX 4 and avoid all this JavaScript and on-demand code which you have written.
    I have changed your application to take use of it.
    1) I changed the LOV query for P21_KOSTENPOST from
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
    order by gbreknr, kostenpostto
    select '('||replace(lpad(gbreknr, 3, chr(1)),chr(1),' ')||') '|| omschrijving d, kostenpost r
    from   kostenposten
    where  vervallen is null
      and  bedrijf = :P21_BEDRIJF
      and  (:P21_GBREKNR is null or gbreknr = :P21_GBREKNR)
    order by gbreknr, kostenpostas it was in your on-demand process. The query will return all values if P21_GBREKNR is null but will restrict it if the field is filled out.
    2) Set "Cascading LOV Parent Item(s)" to P21_BEDRIJF,P21_GBREKNR Because based on your LOV query I assume "Kostenpost" should be refreshed if one of the two fields gets changed.
    3) Set "Optimize Refresh" to No because one of your parent items (P21_GBREKNR) can contain a null value.
    4) Removed the onBlur/onChange from P21_GBREKNR
    5) Removed the *%null%* from the "Null Return Value" attribute of P21_BEDRIJF, because that will cause a ORA-1722 if someone picks "-- kies: --"
    That's it.
    Have a look at dynamic actions and the "Set Value" action as well, because I think that could remove your other on-demand calls as well without having to write any JavaScript code.
    I will still investigate what's going on with the anchor link in APEX 4.0
    Regards
    Patrick
    My Blog: http://www.inside-oracle-apex.com
    APEX 4.0 Plug-Ins: http://apex.oracle.com/plugins

  • SELECT LIST versus POPUP LOV

    I have a form that currently has several fields defined as SELECT LIST, which works great when the list of items to be selected is small. However, one of the fields is a list of employees, which will be > 300, and I was thinking of using the POPUP LOV option. Mainly because of the Search capability - would like to just list those employees that are entered into the Search to show up in the list.
    I have tried the POPUP LOV within a CREATE record form (using Auto Row Processing and Database Columns), and it pops up showing a list of employees (using the same SELECT statement as used when it was a SELECT LIST). So far, so good. When I select an employee, the employees name shows up in the field in grey text. So far, so good. However, I do not get anything helpful when I enter anything into the Search box. I just get a "The page cannot be displayed" in the window. Basically I am unable to search. Bummer.
    However, when I look at the record that I just created, I do not see the employees name in the field anymore, I just see the employee's ID. I also get the following error message:
    "Error: ORA-00904: "SESTAFFID": invalid identifier performing List of Values query: "select Employee, SEStaffID from ( SELECT ec.ename || ' - ' || s.site_name "Employee", wss.wss_id "SEStaffID" FROM wiser_se_staff wss, vw_emp_contact@WISER_SA ec, vw_site@WISER_SA s WHERE wss.staff_emp_id = ec.empid AND wss.staff_sch_location = s.site_id AND ((:P205_REF_RECD_BY_ID IS NOT NULL AND :P205_REF_RECD_BY_ID = wss.wss_id) OR :P205_REF_RECD_BY_ID IS NULL) ORDER BY ec.ename, s.site_name) wwvlovinlineviewname where SEStaffID = :WWV_LOV_RETURN_KEY_UTIL_1111". "
    Dang, I hate it when that happens. I have not been able to find any references to this error that would shed light on how to handle this error.
    I followed the recommendation in the HTML DB User's Guide for Popup LOVs (Table 6-7 Available Item Types), to no avail.
    The SELECT statement that is being used is:
    SELECT ec.ename || ' - ' || s.site_name "Employee",
    wss.wss_id "SEStaffID"
    FROM wiser_se_staff wss,
    vw_emp_contact@WISER_SA ec,
    vw_site@WISER_SA s
    WHERE wss.staff_emp_id = ec.empid
    AND wss.staff_sch_location = s.site_id
    AND ((:P205_REF_RECD_BY_ID IS NOT NULL
    AND :P205_REF_RECD_BY_ID = wss.wss_id)
    OR :P205_REF_RECD_BY_ID IS NULL)
    ORDER BY ec.ename, s.site_name
    I guess my questions are:
    1) Why is APEX choking on the SELECT statement for the UPDATE and not the CREATE?
    2) Why doesn't the SEARCH feature work, or probably more correct, what am I missing?
    TIA

    Scott,
    Thank you for looking at this.
    You are correct in your assumption - I was using the 'Popup Key LOV (Displays description, returns key value)' Display As option.
    I have been able to isolate where the problem is. I reduced the 'List of values definition' to:
    SELECT ec.ename || ' - ' || s.site_name "Employee",
    wss.wss_id "SEStaffID"
    FROM wiser_se_staff wss,
    vw_emp_contact@WISER_SA ec,
    vw_site@WISER_SA s
    WHERE wss.staff_emp_id = ec.empid
    AND wss.staff_sch_location = s.site_id
    ORDER BY ec.ename, s.site_name
    I then received the same error. So, I just changed the alias from "SEStaffID" to "SESID" and it then gave me the following error:
    Error: ORA-00904: "EMPLOYEE": invalid identifier performing List of Values query: "select Employee, SESID from ( SELECT ec.ename || ' - ' || s.site_name "Employee", wss.wss_id "SESID" FROM wiser_se_staff wss, vw_emp_contact@WISER_SA ec, vw_site@WISER_SA s WHERE wss.staff_emp_id = ec.empid AND wss.staff_sch_location = s.site_id ORDER BY ec.ename, s.site_name ) wwvlovinlineviewname where SESID = :WWV_LOV_RETURN_KEY_UTIL_1111".
    So, I then eliminated the concatenation that was part of the first field so that it was then 'SELECT ec.ename "Employee",' and left the rest of the SQL statement alone. I received the same error message. I then eliminated the "Employee", resulting in 'SELECT ec.ename,' and reran it - the LOV then worked properly, showing a list of employees, and I was able to search the list as expected.
    There is something about using the alias on the fields that it just does NOT like.
    I just did another test, and it appears it is just when the alias is on the first field that it chokes. I removed the alias from the first field, and left the alias on the second field, and the LOV worked just fine.
    TIA,
    Tom

  • How to make Popup LOV Not Editable?

    Hello,
    I started using a Select List (named LOV) as an element in a report. However, I go the error:
    ORA-20001: Error fetching column value: ORA-06502: PL/SQL: numeric or value error: character string buffer too small
    So I switched to a Popup LOV (named LOV) which is working. However the Popup LOV is a list of part numbers that I donot want the user to change. I want him to select from the list I give him and only this list. After the Popup LOV closes the user can modify the text box that the part number the user selected from the Popup LOV appears in. So how do I make the text box next to the Popup LOV icon not editable??
    Thanks for the help...

    Hello, not sure if you are using "Popup LOV(fetches first rowset)" or not, but switching to "Popup Key LOV(Displays description, returns key value)" might
    work for you.
    Regards,
    Geoff

  • Using Union in popup LOV

    HI,
    I want to select data from 2 tables using Union in Popup LOV ,
    please help.
    I am getting a error message like
    "LOV query is invalid, a display and a return value are needed, the column names need to be different. If your query contains an in-line query, the first FROM clause in the SQL statement must not belong to the in-line query."
    when i use union query
    my query is like this
    select a from table 1
    union
    select b from table 2
    order by a;

    Hi,
    Three things -
    1) Remove the semi-colon from the end of your query (it can work without it, but you'll eventually run into problems some day by putting a semi-colon on the end, so better to get into the habit of not doing it).
    2) You need to provide 2 columns in your query, a display value and a return value (look at the error message you are getting). You are only returning a single column.
    3) Wrap your query inside another query to get it to work.
    Something like this should work -
    select * from (
      select 1 as r, 2 as d from dual
      union
      select 3 as r, 4 as d from dual)
    order by dObviously change the values/columns to suit your own purposes.
    Hope this helps,
    John.

  • POPup LOV Dynamic List of values

    Hi All,
    I need to change the list of values of a popup Lov in my application depending on a checkbox.
    Like:
    If I the checkbox is checked by the user the list will come from Table A and if the checkbox is unchecked the the list needs to come from Table B.
    I need to bind this to the checkbox click event. But I don't know which option should I use to create this Dynamic action.
    Please help me out as Its urgent..... I got the deadline today..... :(
    Thanks in advance.....

    Solved with cascading feature.. Thanks All.

Maybe you are looking for

  • Sockets and push registry

    Hello, I want to get a socket connection between a MIDlet and servlet whats the best was to do this? so i can send information back and forth ( the MIDlet needs to be activated also by the socket connection from the Servlet) I have read the article o

  • Portal Rendering changes when deployed.

    I have been developing a Portal application and have found that the appearance of the Portal in the same browser differs between "development" and "production" modes. By this I mean accessing the Portal via its .portal file, or via the URL defined in

  • Group data with multi tables in report.rdlc

    I have a report.rdlc which contains 8 tables and every table reads from different dataset which also reads from different procedure, these tables finally view data for one employee, and this was working correctly. Now I need to view the same report b

  • Attach debugger to particular instance of Flash Player

    I have two instances of Flash Player 10 on a web page.  One instance runs a very small SWF for server communication and the other is the primary interface for the enduser. The issue comes up when debugging.  When I launch the debugger it ALWAYS conne

  • Website says to update my software. The computer says I'm up to date.

    Hi all. A website is saying I need a Java update to continue on the site. But when I click Software Update, it tells me I'm up to date. When I look at technial help on the website, it says to contact Apple Support. What's going on here?