Highlight LOV extra value

See https://apex.oracle.com/pls/apex/f?p=57688:17
The select list has a LOV of *1,2,3* with Show Extra Values = Yes. The Source attribute forces a value of Extra
Question - How can the extra value be highlighted with, say a colored background, to draw attention to it?
Thanks

VANJ wrote:
See https://apex.oracle.com/pls/apex/f?p=57688:17
The select list has a LOV of *1,2,3* with Show Extra Values = Yes. The Source attribute forces a value of Extra
Question - How can the extra value be highlighted with, say a colored background, to draw attention to it?Do you have any easy way to determine which option is the "extra" value (in JavaScript) across the LOVs you're interested in? For example: all of the known values have numeric <tt>value</tt> attributes, only the extra one is text; or the displayed option text is always different from the options <tt>value</tt> attribute for known values, only the extra one's text and <tt>value</tt> will be the same?
If not (or if you want a generic, foolproof approach) then all I can think of is an AJAX Dynamic Action that collects the list's <tt>value</tt> attributes, sends them to the server for comparison with the item's known LOV values, and returns the difference. It's possible that getting the current, known LOV values for the item may not be trivial.

Similar Messages

  • Display extra values not displaying extra value

    Hi,
    I have a SQL query that returns a LOV. I have "Display Extra Values" set to Yes. However, I don't see my "extra value" in the Select List. ?? Yet, when I check the session state, the value in the session state is the extra value. So how come I don't see it in my Select List?
    Thank you.

    This is from the on-line docs:
    To define a value that does not display in the list of values:
    a) From Display Extra Value, select Yes.
    The extra value is used if the actual column value is not part of the LOV. In that situation, the actual value is shown. If you do not display extra values, you may end up with the wrong value and unintentionally update your data incorrectly.
    b) In Null Value, specify the value that displays.
    c) If you have not selected a Named LOV, enter the query used to display a select list in the LOV Query field.
    Hope that helps.
    Thanks,
    Joe

  • Assigning LOV return Value to multiple text items

    Hi all
    I have a custom form on which i have 10 text items
    text item 1,text item 2 ....text item10
    I have a table xx_querywith fields
    text_item,query
    i have inserted into the xx_query table
    insert into xx_query(text_item,query)
    values(text_item1,'select sysdate from dual');
    insert into xx_query(text_item,query)
    values(text_item2,'select sysdate-1 from dual');
    I have created a record group dynamically and i am getting the query from the query column of the xx_query table into the record group(say test_rg)
    I have created a LOV test_lov and thr set_lov_property i have populated the test_rg query into the test_LOV
    is it possible for me to set the return item of the LOV dynamically so that i can get the LOV on the item which i want to ?
    thanks
    _

    Hi All
    thanks for your responses
    I have Created a control item and assigned the return value of the LOV to the control item
    and i have assigned the LOV to the text item that i want
    Currently when i navigate to the text item the LOV is visible
    but when i select a value from the LOV the value is not getting populated into the text item
    I have assigned the value of the control item to the text item
    but i am not sure in which trigger to write the code so as when i select the value from the LOV the value should be shown on the form populating in the text item
    Thanks

  • How to disable an LOV wrt value in another LOV?

    I have a javascript function that works fine if P2_BANK_ASSIGNED is a text item. But if I change it to an LOV is doesn't work. How do I disable an LOV on value of another LOV?
    <!--===================================================================-->
    <!--FUNCTION TO DISABLE LOV BANK ASSIGNED IF LOV TRIAL IS <> 0 -->
    <!--===================================================================-->
    <script type="text/javascript">
    function disBankAssigned(){
    var lReturn = $x('P2_TRIAL').value;
    if (lReturn == 0 ) {
         $x('P2_BANK_ASSIGNED').readOnly = false;     
    else {
         $x('P2_BANK_ASSIGNED').readOnly = true;     
    </script>
    onchange="disBankAssigned();"
    regards
    Paul P

    Try $x('P2_BANK_ASSIGNED').disabled = true;     (or false)

  • Highlighting top 3 values

    Hi
    I want to highlight top 3 values in percentage field.
    i have total 22 columns in percentage fields.
    i want to highlight highest top 3 percentages in these 22 values.
    How to do it?
    Thanks

    Hi
    Thanks to both of you.
    but my problem is different.
    area   col1  clou2 colu3   total
    a1       5      6      7          19
      a2       1     2      3           6
       a3       2     2     3            7
       a4       5     5     5            25
    i want to highlight  25,19 ,7.
    3 highest values in total.
    in this ex i am using 4 different formula to calulate 4 totals in the 4 rows.
    Please give me any solution/
    Thanks

  • OO ALV - How to highlight cell after value change

    Hi All,
    I have an OO ALV with an input enable column and would like to highlight a cell in a different color when the user changes it's value.
    I am using pr_data_changed->get_cell_value to check the cells value has changed and pr_data_changed->modify_cell to update the cell with the new value.
    The output table has a field called CELLCOLOR of type LVC_T_SCOL which I am using to highlight the cell in red:
             lw_cellcolor-fname = 'THISFIELD' .
             lw_cellcolor-color-col = '7'.
    The ALV layout is also correclty set using:   layout-ctab_fname = 'CELLCOLOR'
    All the above is working fine and the changed cell is highlighted HOWEVER it only works if I call METHOD g_grid->refresh_table_display
    Is there anyway to highlight the cell without calling method refresh_table_display??????
    I do not like to call method refresh_table_display in an ALV event. The main reason is if a user changes a cells value and at the same time selects the row for update then the method refresh_table_display wipes out the row selection marker.
    So Is there anyway to highlight the cell without calling method refresh_table_display??????
    All your help appreciated
    Che

    Try this way
    In the PAI use
    call method get_selected_rows
    This will get you the row index of the selected rows from the screen for example I_ROW
    In PBO
    call method g_grid->set_selected_rows
    exporting
      it_row_no = i_rows[].
    then call refresh_table_first_display
    So this one will keep row selection after the refresh_table_first_display method

  • How to highlight the selected value in a table

    Hi All,
    I have list of roles in a table like admin,dba...etc.
    i will select the current selected role using
      Stgin role =wdCotext.currentElement().getRole();
    After getting the role i bind this value in context.
    now my requiremnet is i will navigate to other table view containing all roles like admin,dba,networkadmin .
    I have to highlight the selected role in previous table to new table containing the  all the roles.
    means selected role should be highlight in a next table view list of roles.
    please help.

    Hi mohammad,
    To achieve this functionality, use another integer variable to store the index of the currently selected element in the first view. Pass this variable's value to the next view (either as plug parameter or throgh mapping) and set the Lead selection for the table as this index in the second view.
    In the first View ....
    int n = wdContext.current<your_node>Element().index()
    pass this value from first view to second view.
    In the second view
    wdContext.node<your_node>().setLeadSelection(n)
    Hope this helps,
    Best Regards,
    Nibu.
    Message was edited by: Nibu Wilson

  • Double Quotes In LOV Return Value Being Replaced With &qu ot; By APEX 4

    My company recently upgraded our development and test boxes to APEX 4.0.2, which we have been wanting for a while now. We discovered that since the upgrade some of our checkboxes and radio groups no longer work as expected. What I mean by this is that the return values being checked for were not correct, and on several occasions we received PL/SQL errors related to numeric to character conversion issues.
    After debugging some it turns out that we have the following LOV query for one of our Checkboxes:
    select
    statement d,
    stmt_id || '" title="&P20_FORM_STMT. ' || statement || '.' r
    from
    stmts
    The return value for the LOV is setup so that it would return a 508 compliant checkbox. We were told we needed a title for each value of a checkbox or radio group to be 508 compliant. These titles must also be relevant to the selection being made, hence the substitution string being used in the return value.
    What I discovered in all of this is that APEX 3.2 did not convert the double quotes in our return value to &qu ot;, but APEX 4.0.2 does. This causes the value of any given checkbox or radio group to look like the following:
    value="1&qu ot; title=&qu ot;This is the statement that I have made."
    And what we are looking for, and what APEX used to do is this:
    value="1" title="This is the statement that I have made."
    Does anyone know a way to prevent APEX from converting the double quotes to &qu ot;, or is there a way to insert an element attribute for each checkbox or radio group value that contains a substitution string?
    Thanks in advance!
    Pastey

    ryansun wrote:
    4.2.1
    Hi,
    I have a classic report, which has a count column that is hyperlinked. using the standard apex column hyperlink option. In that we have the option of passing values. I noticed that when I am passing a value which has "/" in it, it replaces the / with & #x2F;
    I have created a application item which I am populating with the report column.
    Because of which I cannot use that value in the report query.
    Any suggestions?Yes. Don't pass string values in URLs. Especially where it is possible for these strings to contain URI reserved or APEX sensitive characters. This might work for a while but your application can be broken months from now by users including a "&" or ":" in data that gets passed as a URL parameter. Whilst it is possible to escape strings to make them URL- and APEX parameter-safe, it is much better practice to avoid the problem altogether.
    Exposing data in the URL may also introduce security vulnerabilities. Also note that the maximum length of a URL in Microsoft Internet Explorer is about 2KB, which can easily be exceeded by throwing a few string values at it.
    Only use discrete alphanumeric key values as URL parameters. In target pages/regions, use these key values to retrieve the required data using item source attributes and processes.

  • LOV return value to submit multi LOV/Text field order by value!

    I have nested LOV and return value reflected to another LOV/Text field by order wise.
    My problem,
    The return value LOV or Text field should be dispay with one by one values order by (Dynamic).here i using the query in each LOV source.
      select DMS_DD_ENG_DESC dis, DMS_DD_ID ret from DMS_DEPT_DETAILS
    where DMS_DD_DT_REF_ID=:P3_DETAILS
    Workspace          :RAM_R&D
    User Name/Password :aramani/apex
    App                http://apex.oracle.com/pls/apex/f?p=36167:3I should do the dynamic action for this case?
    anyone can help me plz.
    Thanx,
    Ram

    Hi Ram,
    I changed your application and i think it is working the way you want.
    I don't know if it exactly what you need but take a look and let me know.
    Regards,
    Kees Vlek
    <tt>Company: http://www.orcado.nl
    Blog: http://www.orcado.nl/blog/blogger/listings/69-kvlek
    Twitter: http://www.twitter.com/skier66</tt>
    If the question is answered please change it to answered and mark the appropriate post as correct/helpfull.

  • LOV Decode value returned by Pre-populate Adapter

    Hi,
    I have a lot of UDFs of type LOV, in particular System LOV( that point to custom Lookup Field definitions).
    My problem is to get and return not the Lookup Decode value and not the Lookup Code Key (default OIM behavior) by a Pre-populate adapter.
    May you help?
    Thanks and regards,
    Gabriele.

    Hi Kevin,
    may you provide a sample code fro that?
    What you said it's true for UI/RequestTemplate that is: the Lookup Decode value it's displayed; but it's not true for a Pre-populate adapter mapped on a Provisioning Form.
    In particular my custom pre-populate adapter is like the following:
    CUSTOM Prepopulate Field Value
    Adapter Name: CUSTOM Prepopulate String Field Value
    Adapter Type: Pre-populate Rule Generator
    Description: return input field value (String)
    [Save]
    [Variable List]
    [Add]
    Variable Name: string_field_value
    Description: string_field_value
    Type: String
    Map to: Resolve at runtime
    [Adapter Tasks]
    [Add]
    Logical Task + SET VARIABLE
    Variable Name: Adapter Return Variable
    Operand Type: Variable
    Operand Qualifier: string_field_value
    [Build] (Compile Status = OK)
    [Save]
    and it is mapped on AD Provisioning Form (Form Designer - UD_ADUSER - Pre-Populate):
    Field Name: Description
    Rule: Default
    Adapter: CUSTOM Prepopulate String Field Value
    [Save]
    [Map] string_field_value
    Map to: User Definition
    Qualifier: <UDF LOV attribute>
    where the <UDF LOV attribute> it's my custom sttribute type System LOV. It returns the Code Key value not the Decode value.

  • List Manager based on LOV returning values with missing spaces

    I am using a list manager based on a pop up lov, in this case it is a list of supplier names. When the pop-up list is shown the values are displayed as expected, with all spaces intact. When I click the supplier name, and then click Add to add to the list manager, all spaces in the supplier name are lost.
    The field I'm pulling is a varchar2 in the db. Here's the sql behind the lov:
    select '(All Suppliers)' d, '(All Suppliers)' r from rep_gy_spend
    union
    select distinct supplier_name d, supplier_name r
    from rep_gy_spend
    order by 1
    Any ideas on why the spaces are lost?

    DJ - There is a javascript function on the page that does that. View page source and you'll see it. You could override it with your own and change that behavior and you could prevent it from upper-casing the returned values as well by using different onclick javascript on the add button.
    Scott

  • LOV - get value for hidden id

    Hi, I thought this would have been asked a few times earlier, but I cannot find it. So I hope some of you will know.
    Once I did applications in Oracle Forms, and now I wanted to do something I thought would be simple in apex. However, I don't understand how.
    I have a form, in that form I have a field with a lookup value. When I do an insert or an update, I can query some lookup table I can find the value using an LOV, and when I choose it, it shows on my screen so beautiful! But what I really want, is safe the id that the value is connected to to the base table of my form. An id is not something I ever want on my screen, I use id's as absolutely meaningless technical data, so my id fields are hidden for human eyes.
    I can of course, when I safe the record, query that look up table again, but that sounds like extremely bad programming. There should be a way to display the name in the LOV, show the name in the visible name field in the form, and give the invisible id field the value of the id.
    What is the technique for this in Apex?
    All help is greatly appreciated.

    That is indeed correct. The bad thing is that the same field is used for the return value and the display value. When some other field has been updated and the record is being saved to the database, then the item contains the name that was read from the database. When this field is updated or the record is new, then Apex will know what id is connected to the value and send that one instead. So when I save a record, my api must judge whether it gets a name or an id, and either do nothing, or transfer the value to the id parameter so that the right column is updated. Forms was better in this. So far I consider this a bug.
    Thanks and regards.
    Edited by: onnomv on May 30, 2010 11:31 PM

  • How to get lov display value dynamically for an item according to date pick

    Hi friends,
    I have a date picker item called on_date, and also one lov item course_name
    If i select one date from the date picker item means, automatically the course name corresponding to the date has to populate in the course_name item lov.
    suppose if i select the date (21-06-2011) from the date picker item means and if there are two courses available for the date in the table
    that is *) APEX *)OAF means, then the course_name item lov should show APEX and OAF in the select list.
    How to acheive it.
    I tried it in the way by creating a dynamic action for the date item
    True Action: set value
    Sql Expression:
    select course_name from xx_trg_course_detail where :P2_ON_DATE between effective_start_date and effective_end_datepage item to submit: P2_ON_DATE
    Affected element: P2_COURSE_NAME
    it is working if i kept the course_name item as a text field instead of LOV item.
    But i need to show the corresponding courses in the lov for the course_name item soon after selecting the particular date from the date picker.
    This is the LOV definition that i gave for the course_name item
    select course_name r, course_name d from xx_trg_course_detail where :P2_ON_DATE between effective_start_date and effective_end_datewhat is the problem over here.
    Thanks
    Regards,
    Mini
    Edited by: Mini on Jun 22, 2011 2:45 AM

    Hi friends,
    One of my batch mate corrected this problem, by setting
    cascading LOV parent item: P2_ON_DATE
    page items to submit       : P2_ON_DATE
    By specifying the date picker item name in the above fields for the item COURSE_NAME.
    Now if i select the date from the picker means, the lov item course_name is getting changed as it is showing only the courses of the respective dates.
    Thanks
    Regards,
    Mini

  • How can i highlight less 10 values in webi 4.0

    How can i select less 10 values in certain column and change there color in webi 4.0 ?

    i worked with alerts before but alerts need conditions you have to choose certain value "for example" i can highlight " all values less than 1000" but here i don't have certain value i need less 10 values in general plus i don't have fixed number of rows

  • LOV-Dynamic value selection

    I am executing following query for LOV in APEX or HTML DB 2.0
    IF :P2_TX_ID IS NOT NULL THEN
    RETURN
    'SELECT TX_UNIT_NAME
    FROM TRANSPLANT_UNIT
    WHERE TX_ID=:P_TX_ID';
    ELSE
    RETURN
    'SELECT TX_UNIT_NAME
    FROM TRANSPLANT_UNIT
    ORDER BY 1';
    END IF;
    When I run the application, it always goes to ELSE loop as condition is executed when I am runing application. I want first page to be displayed and then I enter value for :p_TX_ID and based on the value of column, I should able get the query set result.
    This was very simple in Forms and Reports (D2K or Developer 2000). How to achieve the same in Oracle Apes?

    APEXDeveloper,
    Since :P2_TX_ID is a PopupLOV item, it doesn't automatically submit the page. As a result ur item value is not getting set in the session. I am not sure of the context of ur application, but could u add a button something like 'Set Values' and create a submit process on that and make the page branch to itself? And then after the values are set, u can run ur query and it will grab the value of :P2_TX_ID from the session.

Maybe you are looking for

  • Bridge CS4  Not enough room on destination disk, when Getting Photos from Camera

    When trying to "Get Photos from Camera" after the 2nd or 3rd photo has been moved to folders I receive a box that states: The backup destination folder is low on disk space, and could not obtain all files from the device. (which is a compact flash ca

  • Error Deploying EJB : no ColorSpace.class in ColorPackage : URGENT, please !

    Compiling Stubs...Errors compiling the communication stubs /tmp/ejb/oraclex/java/awt/ColorPackage/ColorSpaceHolder.java:35: Class java.awt.ColorPackage.ColorSpace not found. public java.awt.ColorPackage.ColorSpace value; ^ /tmp/ejb/oraclex/java/awt/C

  • No acknowledgement of header frame

    I have two almost identical systems with remote monitoring using lookout 6.02 but one site I can connect to with not problem.  The second I have to use a external modem and only achieved connection to the site once but now I am receiving and alarm st

  • Javadoc for jcapi of Calendar server 2004Q2

    Is javadoc for jcapi of Calendar server 2004Q2 available? We would like to develop our calendar application but we don't want to write low-level WCAP over HTTP.

  • Easy DVD audio export from Premiere?

    Premiere CS3 Windows Vista Ultimate Hello, I'm used to exporting to MPEG-2 for DVD from Premiere, but I've been using PCM (wav) audio- then I let Encore re-encode that to Dolby. There's an option to export Dolby within Premiere, but you have to pay f