Null display value in List of Values

Hello
In Page item ---> List of Value ---> Null display value I need to give a different value depending on language
I tried using an item in the "Null Display Value" e.g. &P1_Display_value.
This does not work ... I get " &P1_Display_value. " and not the value contained in the item
Anyone come across this before?
Thanks
Pete

Pete:
The Query for the LOV could be modified to be something as below.
Select displayy_val, return_val from lov_table
union
select '&P1_DISPLAY_VALUE.',null from dual
order by 2 nulls firstVarad

Similar Messages

  • Conditionally display items based on null LOV value

    Hello,
    I've seen several examples that do what I'd like to do but with different implementations. Perhaps someone can steer me in the right direction...
    I have a pop-up lov that pulls a list of names from various places. If, however, the name cannot be found I'd like to display a few text boxes where the user can enter a new name.
    For my list of values I have configured the following:
    Display Null: Yes
    Null Return Value: -1
    Null Display Value: Not Found
    My HTML Form Element Attributes has: onchange="doSubmit()";
    My Source section has:
    Source Used: Only when current value in session state is null
    Source Type: Static Assignment (value equals source attribute)
    My entry text boxes have a condition specified:
    Value of Item In Expression1 = Expression 2
    Expression 1: P4_LOOKUP_NAME
    Expression 2: -1
    I also have an unconditional branch to this same page (Page 4) that sets the value of P4_LOOKUP_NAME to P4_LOOKUP_NAME.
    I cannot seem to get this item to display though...any thoughts?
    Thanks in advance for your suggestions!

    jhammer,
    I like the concept. This would require a custom popup lov - something that can be a little tricky/time consuming the first time around. The popup lov would probably have to create new entries via Ajax to be able to pass back the correct ID/display values to the parent window on close.
    Regards,
    Dan
    http://danielmcghan.us
    http://sourceforge.net/projects/tapigen
    You can reward this reply by marking it as either Helpful or Correct ;-)

  • Can not user Raw value as NULL return in Select List

    Help me!
    I recently converted my application to take advantage of the sys_guid() function that oracle offers over the sequence/trigger option.
    However, I user a hierarchical set up and I need to be able to insert a RAW value of '00' if the user does not select something in a select list. When I try to do this, I get an "ORA-01465: invalid hex number" error.
    I've also tried to return 00 and HEXTORAW(0) but that didn't work either. Infact 00 return a can not insert null value. Please help as I believe the sys_guid function is the best choice if I can make it work.

    Hey Scott, my first name is Daniel.
    Here is in detail the reason for which I want to be able to work with RAW. As everyone knows, most of your tables your going to have a UID. In general this is going to be a NUMBER column into which you will insert values that populate from a trigger getting the nextval of a sequence and returning the result into the NUMBER column of the row being inserted.
    This, however, requires a trigger and a sequence. Not that that's really a bad thing, I just think it can be done better. All we are really after here is a UUID or GUID. The thing is if you used a sequence to generate this value, you don't have a good way of knowing that the number is truly unique. You'll learn this as soon as you try to merge with a table from another database or do something else of the like.
    What I prefer to do is to use Oracle's SYS_GUID function when I create a table. To use this function you create a RAW(16) DEFAULT SYS_GUID(). From that point you don't even need to reference the column on insert, unless you're inserting into * and in that case you just specify DEFAULT. The use of sys_guid means I don't need a trigger and I don't need a sequence, and the result will always be unique, regardless of the DB.
    In APEX, and elsewhere, the way you use a select list is with a display value and a return value. An example would be, emp_name as the display value and emp_id as the return value. In my case, the emp_id would be the RAW values returned by the SYS_GUID() function when the employee was created. But it's not working because of the RAW value.
    I know that APEX can enter the value in session state that is returned from a RAW column because I did a test earlier and it worked. I would have to see it in session state for debugging. *** The problem is in creating a new record. ***
    APEX really does not have to work with the RAW column because the default value has been specified. But for some reason, it does not like it anyway. I found this problem when working with parent/child relationships in my tables.
    Lets say there are three columns GUID, TITLE, and PARENT. When creating a new record, I allow the user to select its parent. If the new record IS a parent then they would leave it as the default '- Is Parent -' and the PARENT column would be left as NULL. But because the GUID is RAW to make the relationship work with the parent, the PARENT column would be RAW too and APEX gives me the errors I was telling you about before.
    Sorry for going on so long. I don't know if I even got my point across. ;) Please let me know if you need me to do something on my part to further demonstrate my point. I would be happy to set up a demo if requested.

  • Select list with URL redirect - not showing the same display value selected

    Hi
    I have several select lists with URL direct on my page similar to this
    for p6_queries item the LOV is
    select QUERY_NAME display_value, 'f?p='
    || :APP_ID
    || ':'
    || 6
    || ':'
    || :APP_SESSION
    || '::::p6_queries:'||QUERY_ID||'#qtables' return_value from .....
    I am assigning a return value to the item p6_queries. But when the page is redirected, I dont see the selected value as selected in the list. Instead it goes to the null display text. Can any one help me on this?

    The problem is that your setting the item value to value of query_id. But your select list has the value of each item as the URL so it will never match and show you what you selected.
    The best thing to do may be to change your select list from a "redirect to URL" to "submit page", make it a normal query:
    select QUERY_NAME display_value, QUERY_ID return_value ...
    Then create an "On Submit: Before Computation" branch:
    Target Type: URL
    URL Target: f?p=&APP_ID.:6:&SESSION.::&DEBUG.::P6_QUERIES:&P6_QUERIES.#testing
    Condition Type: Request = Expression 1
    Expression 1: P6_QUERIES

  • Change display value of "select list"

    Hi!
    I have a problem with a select list, I want to change the display value through an own pop up (page 5 of apex application) after I submit in it.
    The select list is based on a sql query:
    select A_NAME display_value, A_ID return_value
    from APPLICATIONS
    where a_application_type='GROUP'
    order by 1
    beside I have an link to open a pop up window:
    ... onClick="window.open ('f?p=&APP_ID.:5:&SESSION.::::', 'newWin',
    'scrollbars=no,status=no,width=500,height=270' ...
    On the pop up site there is a tree and a submit button which close the window and renew the original page:
    javascript:window.opener.location.reload();window.close();
    Through the tree I get the value (Group-ID) which I need.
    When I'm back on page 4 a "before header" renew page process links again on the side 4 and change the value of my select list. Afterwards the values have changed correctly but the display value is still the old one. It only change when i go on an other page of the apex application and come back.
    I don't know why it doesn't change immediately!?
    Thanks ahead

    I have done with a solution just in a nutshell of what u r looking for:
    1.create HTML region.
    Add two items : Select list with redirect(P6_X) and text field(P7_X)
    2. Select list is based on LOV query as :
    select empno d,empno r from emp ;
    Source value is Empno Type:DBcolumn.
    3.The text field Source type : SQL Query .
    Query : select ename from emp where empno = :P6_X
    Now select from the dropdown empno and it will populate the Ename value accordingly based on the query .
    U can have more than one text fields and populate those in the same way.....
    Cheers,
    ROSY

  • Display Display value in Red Color in Pop Up List of value Item

    Dear All,
    i have created an Pop up List of Value item.I need to display Display value in Red Color in Pop Up List of value Item.
    What should i pass in HTML Form Element Attributes .I have try using
    style="font-color:red";That code.
    How can i display Display Value in Red Color.
    Thanks

    Is this what you are looking for?
    http://apex.oracle.com/pls/apex/f?p=42778:12
    If so..
    * Go to Shared Components -> Templates -> Select Type as "Popup List of Values"
    * Edit Popup LOV template
    * See the class name being used for div under Result Set section. In My case, its t1PopupBody
    * Under Page Attributes -> Page HTML Head section append following CSS
    <style>.t1PopupBody a{color:red;}</style>* Apply Changes
    If its not working, then inspect the pop-up lov with firebug and update CSS definition accordingly.
    Regards,
    Hari

  • How To Display Value In inputText When List Is Used

    Hello,
    I have a question regarding how to display value from List in a jsf page?
    From a Map, i could display like
    <ice:inputText  id="plantno" value="#{bean.detailedRowData['plantno']}"So if I am using a List instead of Map, how can I refer value in List so that I could display my plantno?
    <ice:inputText  id="plantno" value="#{bean.?????}"Thanks

    Create a backing bean method that fetches the value from the list for you.
    <ice:inputText  id="plantno" value="#{bean.plantNo}"/>
    public class MyFunkyBean {
      private List<String> rowdata;
      public String getPlantNo(){
        return rowdata.get(INDEX_AT_WHICH_THE_PLANTNO_IS_STORED);
    }It really isn't possible to turn the list into a regular bean/entity?

  • Select list display value in javascript function

    Hi All,
    I have a select list in a tabular form having a display value & return value.
    I am using $x(var_name).value or $v(var_name) for retreving return value of the select list in a javascript function.
    Can anyone let me know how can I get the display value of the select list in a javascript function? Im using Apex 3.2
    Thanks & Regards,
    Sandeep

    What if the select list is not an item. Select list I am talking about is in a tabular form.Regardless of how they're generated in APEX, in JavaScript they're all DOM nodes. There are many ways of accessing the node of the required element. Consider the Items for Order... tabular form on page 29 of the Sample Application:
    var productNameLOV = document.wwv_flow.f04[0] // select list containing name of product on first order line
    var productNameLOV = $x("f04_0001") // another way of accessing the same node, using the ID attribute generated by apex_itemWe can see this using the Safari console:
    => productNameLOV = document.wwv_flow.f04[0]
        <select name="f04" id="f04_0001" autocomplete="off">…</select>
    => productNameLOV = $x("f04_0001")
        <select name="f04" id="f04_0001" autocomplete="off">…</select>Once you've got the node&mdash;however you get it&mdash;you then use the methods shown above:
    => i = productNameLOV.selectedIndex
        3
    => productNameLOV.options.text
    "Business Shirt [$50]"
    So it appears you would use:var item = document.wwv_flow.f01[i];
    var selected = item.selectedIndex;
    var selectedOption = item.options[selected].text;
    This is meaningless:...
    var my_var = document.wwv_flow.f01[i].id; // f01 is tabular column of select list
    if ($x(my_var) == 'display_value') //$x(my_var) is having return value, but i need display_value there
    <tt>$x(my_var)</tt> returns a DOM node object, whilst <tt>'display_value'</tt> is a string: they are not comparable.                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                           

  • Accessing display values of a select list (or LOV)

    Hi all,
    I was asking myself if it is possible to access the display values of a select list (to be added to a report header and to the Head section of a pdf export),
    and to call them in form of the &xxxxx. notation
    e.g. if &P10_REGION. return the selected value (e.g. 1), I would like to have the corresponding display value (e.g. USA) .
    Kind regards,
    Boris

    Thank you Graham,
    unfortunately I'm a newbie regarding Javascript. Reading the APEX help, I could understand something but not everything.
    I would enter into the page html body the following script
    <script type="text/javascript">
    document.getElementById('P10_hiddenItem').value = document.getElementById('P10_referenceItem').text;
    </script>
    Is this the correct approach?
    how should I then submit the page?
    Thank you,
    Boris

  • List Managers Displays Return Value and Not Display Value

    Hi
    I have created a List Manager (based on a Popup LOV). My lov is as follows:
    SELECT pt.paper_code d, pt.paper_icode r
    FROM uo_sturec.paper_table pt
    WHERE pt.start_year <= 2006
    AND (pt.finish_year >= 2006 OR pt.finish_year = 0)
    AND pt.paper_type = 60
    ORDER BY pt.paper_code
    However, when I select something from the popup, it displays the pt.paper_icode in the field and when I click on Add, the pt.paper_icode is added to the selction box.
    What can I do to make the display value, pt.paper_code appear both in the field and the selection box?
    Kind regards
    Jo

    Hi Scott
    Thank you for your reply. However, I want the return value to be pt.paper_icode, because I'll be using this value to populate another item on the same page. Is there some javascript I could write to just change the display value of the List Manager while preserving its return value?
    Thanks.
    Jo

  • Multi-select lists, their return values and showing their display value

    I have a multi select list which is dynamic. The display and return values are pulled from a table where the return value is the Primary Key.
    When people select a few options, the value is stored in session state as 11:12:13 (etc...). From here, I run these numbers through a process which takes a report ID and the multi-select string, and saves individual rows as Report_id, individual multi select value until there are no more multi select values.
    This is great, they're tied in as a foreign key to the LOV lookup table, and they are easily search able.
    I have trouble where I want to list a report's entire multi-select list. I have a function combine the numbers with a : in between them and RTRIM the last one, so I have an identical string to what a multi-select table uses. 11:12:13 (etc..)
    When I assign it to display as an LOV in a report, it just shows the 11:12:13 instead of listing out the values.
    Single number entries, where someone only selected one option in a multi select, display fine.
    Am I doing this wrong?

    Scott - you're right on the money. I did this initially because I thought assigning an LOV display value to a report column would yield the results I wanted.
    I want to do this without referring to the original table... meaning I don't want a function to have to go out and get the names, I'd like my LOV assignment to do it. This saves headache of having to change something in 2 places if it ever changed.
    Am I not going to be able to do this?
    I created a test multi-LOV page, it doesn't work with original(not processed in my function) LOV assignments either, unless you only select one.

  • How to acquire display value of selected item on select list? Or...

    I have a select list generated from a SQL query that I need to get the display value from.
    Ideally, the display value and the submitted value of the select list would have been the same, but I can't seem to get APEX to allow populating a select list's display value and submitted value fields with the same database column.
    If you have any idea how to do either of the above, I'd love to hear from you here!
    Cheers,
    Ben

    you forgot the extra quotes I guess:
    declare
    l_sql VARCHAR2(4000);
    begin
    l_sql := 'SELECT product_name,project_name,information_access_system,dataset_name FROM v_dms_product WHERE product_name = ''' || :P24_CHOOSEPRODUCT || ''' GROUP BY product_name,project_name,information_access_system,dataset_name';
    return l_sql;
    end;

  • Display values onto a list in a certain way

    Hello,
    I am looking for a way to display values onto a list by having the first value with a forward slash and the rest with an indentation.
    In other words this way:
                                       /value
                                           value1
                                           value2
                                           value3
                                           etc.....
     Please see the attachment for a better reference of where the data is received and then populated to the window list.
    Thanks for your input
    LabVIEW Intermediate I level!
    Solved!
    Go to Solution.
    Attachments:
    string from the server.txt ‏5 KB

    Hello Al,
    This section of the code is where I am guessing that I need to include a function to have a kind of tree structure display for the list,
    // Extract File name and index
                          for(i=0;i<=UL_1_Header_Block.block_size-HEADER_SZ​;i++)
                              cnfg_database_array[i]=*ptr_mem_index++;
                        Delay(.2);   
                        // determine file name by search for ";" filename delimiter
                        for(i=0;i<UL_2_Header_Block.number_file;i++)
                            cnfg_file_comma_index = FindPattern (cnfg_database_array, cnfg_file_comma_index+1,
                                                          SEARCH_ENTIRE_STRING, ",", FALSE, FALSE);
                            cnfg_file_colon_index = FindPattern (cnfg_database_array, cnfg_file_colon_index+1,
                                                             SEARCH_ENTIRE_STRING,":", FALSE, FALSE);
                            if(i>=MAX_FILE_LIST)
                                fprintf(log_file.Open_fp_main,"%.2d:%.2d:%.2d    DIR DATABASE LIST TOO LONG!\n",
                                ts.tm_hour,ts.tm_min,ts.tm_sec);
                                sprintf(current_log_view,"%.2d:%.2d:%.2d    DIR DATABASE LIST TOO LONG!\n",
                                        ts.tm_hour,ts.tm_min,ts.tm_sec);
                                SetCtrlVal(log_panel, LOG_LOG_TB,current_log_view);
                                break;
                            CopyString (cnfg_display_db[i], 0, cnfg_database_array, cnfg_file_comma_index+1,
                                        (cnfg_file_colon_index-cnfg_file_comma_index)-1);
                            InsertListItem(dir_list_panel,DIR_LIST_RETR_LIST,​i,cnfg_display_db[i],0);
                break;
    as you may see on the highlighted lines, is where I am thinking I need to do changes, but not sure how...
    LabVIEW Intermediate I level!

  • How to display struts form list values?

    HI,
    How to display struts form list values?
    I am having master and child data.
    I can set list values master and child in action class.
    How to display the master and child data in struts jsp form.
    <logic:iterate id="result" name="listofEmployees" >
    <td ><bean:write name="result" property="id"/></td>
    <td ><bean:write name="result" property="name"/></td>
    <td > <bean:write name="result" property="list"/>  </td>
    </tr>
    </logic:iterate>Here I am displaying master data succesfully.
    How to iterate values of <td ><bean:write name="result" property="list"/></td>in action class i added bean class to this list.
    how to iterate this list with java bean and display my child data
    Thanks
    sai

    Struts 1 or 2?
    I guess 2 'cause you're just talking about Action, without mentioning the Form.
    In STRUTS 1 it goes like this: forward to the page and use logic:iterate tag. Don't know about STRUTS 2, but It shouldn't be too different.
    bye.

  • Select List Display Value

    Hello All,
    Does anyone know how to make a Select List ReadOnly and display the Display Value not the Return Value when modifying the data? I have made the Select List a Text Field, Text Area, etc.. but then the Return Value is diplayed and not the Display Value. I do not want my end-users to modify the Item but I do want to show them the Display Value. Any ideas and help is appreciated, thanks.

    Hi,
    I kept getting the [] no matter what I did.
    Just realised, though, that the styling would hide valid values as well. D'oh!
    I've been testing something here: [http://apex.oracle.com/pls/otn/f?p=33642:9] Click on a link for an employee on the right to see the data on the left - try ones with and without an entry in the MGR column.
    Originally, P9_MGR was a normal select list, but I have now set it to "Hidden and Protected" and immediately followed it with a new "Display as Text (does not save state") item called P9_MGR_DISPLAY.
    The source of this new item is a SQL query of:
    SELECT NVL(MIN(ENAME),'Unselected')
    FROM EMP
    WHERE EMPNO = :P9_MGRThis will either return an ENAME value if one exists for P9_MGR or 'Unselected'
    Andy

Maybe you are looking for