List manager displaying view value and not return value

Hello,
I'm using a list manager based on pop-up LOV. When I click on an item on the pop-up window, the window is closed and the return value is inserted in the page textbox. I would like to have (as expected) the view value, and have the return value used just as field value during form submit.
I'm using Application Express 2.1.0.00.39
Thanks.
Eugenio

Unfortunately, you can't. The way to do it is to return the display value into the List Manger item and then use the APEX_UTIL.STRING_TO_TABLE function to loop through the values and fetch the IDs. You will need to make sure the LOV items are unique and don't contain any colons.
I hope that helps
Shunt

Similar Messages

  • LOV problem ... returning display-value and not key-value

    Hi. Sorry for my broken English.
    I have a problem with pop-up dynamic LOV.
    I have a simple form called Form A containing item_code and item_name. Users can create, update and delete new item by using this form.
    Another form called Form B has a field called item_code, and the item_code field is a dynamic pop-up LOV field and a query for this LOV is like this;
    select item_name d, item_code r from item_master order by item_code;
    When i create the new record in Form B and use LOV to find and get the item code, LOV works fine
    and it returns key-value to the item_code field.
    But when i try to update the record (I have a link from report page to Form B), value of the item_code field is not the key-value from LOV, but is a
    display-value from LOV.
    Any ideas?
    Thank you.

    Well, from what you have described, this is working exactly as it should. Form B's LOV is intended to retrun the key value but should show the dispaly value. When you go from the report to the form, the key value is being passed (or should be depending on your code) and Form B ought to show the display value.
    So, in short, I would say that Apex is doing what it should. Unless I misunderstand something.
    Bruce

  • How to create a display value and a return value for an item

    Hi! I have an item on a form. I want the default value for my item to be :":APP_USER", but the return value, to be the id of my user. I tried to create a PL/SQL Expression for the default item, but it doesn't work. What do I miss?
    It should be something like this, but it's not.
    begin
    select first_name || ',' ||last_name as "Employee",
    id_employee -- display value,return value
    from employees
    where id_employee = :APP_USER;
    end;
    Does anyone know?
    Thanks!
    Vitaly

    Hi VItaly,
    Display value and return value concept applies very well in case of a Combo box if i am correct, I don't know what type of item is your's.
    But any way, you can have a workaround like,
    Create a hidden item such that it's default value should be ID of the user which can be get from db by using :APP_USER.
    Use the this item for your references.
    I think this will meet your requirement.
    Thanks
    Kumaraswamy.

  • Pop-up list manager displaying "return value" instead of "display value"

    Hello,
    I'm using a list manager based on pop-up LOV. When I click on an item on the pop-up window, the window is closed and the return value is displayed in the page list. I would like to have (as expected) the display value otherwise a user who accesses the detail of a record can just see codes (no meaning) and can't understand nothing. The return values should be used just for database storage as expected in a database application environment.
    The behaviour should be like the one of "POPUP Key LOV (display descriptions, return key values)"...where in the textbox I can see the description but I send the key to the database.
    I could use a multislect list too (which allows to display descriptions instead of codes) but in this case another problem arises: if I have lots of items the user has to scroll the list to see which items have been selected.
    Any other solution to allow a user to see (and print) the content of "multiple" fields (descriptions, not codes)?
    I'm using Application Express 2.1.0.00.39
    Thanks a lot for your help.
    Eugenio

    Anyone? Which is the best practice in these cases? Is it not possible to get the value selected displayed in a proper manner when using a "select multiple" fields?
    Thanks for your help.
    Eugenio

  • Select List with Submit : a display and a return value are needed...error

    Hi,
    Why the next SELECT returns error in Select list with submit ?
    List of values definition:
    SELECT b.nom nom_bannniere,
    b.no_banniere no_bann
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY nom_bannniere;
    1 error has occurred
    * 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.

    gfrancoeur,
    Try this SQL:
    SELECT b.nom d,
    b.no_banniere r
    FROM banniere@my_source b
    WHERE b.statut = 0
    ORDER BY 1Thanks,
    - Scott -

  • LOV query is invalid, a display and a return value are needed

    hello - i am having this issue and can't get around this when creating a popup LOV based on sql.
    below is LOV query. as you see the view has only two columns. I tried various ways by giving alias to columns in query but nothing works. What did I miss here?
    select description,inventory_item_id from xx_apex_inv_v
    1 error has occurred
    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.

    Did you try it like this?
    select description d, inventory_item_id v from xx_apex_inv_v

  • The LOV modal window could not return value to the base page

    when practicing the "create1" task in tutorial, met an issue.
    when create an employee, manageName is a messageLovInput and managerID is a messageTextInput.
    The issue is the LOV modal window could not return value to the mangerName, but can return to managerID .
    If I remove the data boud porperties of the managerName (the bc4j porperties of view name-EmpFullVO and view attribute-MgrName), the lov works fine.
    What is the reason?

    James I would suggest to read the LOV topic in OAF developers' guide. Lov mappings are responsible for bringing pop up values to base page in LOV.
    --Mukul                                                                                                                                                                                                                                                                                                                                                   

  • How to get values and not index in case of SOC?

    I have created a SOC and i need the values in the bean on valuechange event which are present in the dropdown(i.e 20,50,100). But in this case instead of value me getting the index value(i.e 0,1,2)
    How can i get the values and not the index value.
    Query which returns the value is as follow:
    SELECT Id,CODE FROM table_name WHERE TYPE = 'ROWS' AND NVL(DISABLED_FLAG,'N') !='Y' ORDER BY TO_NUMBER(CODE)
    <af:selectOneChoice value="#{bindings.Row.inputValue}"
    label="#{uiBundle.ROWS}"
    required="#{bindings.Row.hints.mandatory}"
    shortDesc="#{bindings.Row.hints.tooltip}"
    id="soc5" autoSubmit="true"
    valueChangeListener="#{pageFlowScope.Bean.rangeChanged}"
    binding="#{pageFlowScope.Bean.row}">
    <f:selectItems value="#{bindings.Row.items}" id="si5"/>
    </af:selectOneChoice>
    Thanks in advance.

    See if it helps:
    http://mjabr.wordpress.com/2011/03/19/reading-the-selected-value-of-a-select-list-in-java/

  • Who to use "xfa.event.newText" for value and not text

    Hello,
    What is the righr method for returning the value from a "list".
    xfa.event.newText return's the texte value i want le value.
    exemple :
    Text = USA  Value=us
    Text=France Value=fr
    Thanks

    Hi,
    A sample is here: https://acrobat.com/#d=eBF-l8sBTVN6-jqDUDw6lA
    It shows how to access the display value and the bound value.
    Good luck,
    Niall

  • Display Report Level Filter value and Input Controls Value

    Hi,
    Please let me know how to display Report Level Filter value and Input COntrol values in the report.
    I have 2 tabs in the WebI Report. The first tab has the summary details about the other tabs like reprot desc, prompt values, reprot filter values,etc.
    In the 2nd tab I have the actual report which has input controls defined, prompt values and global level report filters.
    Can anyone please tell me how to display the Report level filter values and the Input Control values in the first tab report.
    For ex: Tab 2 has a Report level filter: Region = NA
    I need to display in Tab 1 in as Region: NA
    I used the function ReportFilterSummary but that is giving me other details, I want only the object name and the value.
    Also how to dispaly the Input Control values in the tab 1.
    Please let me know if you have any suggestions for this issue.
    Thanks

    did you try
    =ReportFilter([Year])
    if you are making report filter over the year, it will return the value of the filter
    by the way, the filter should be applied over all the report not to a specific block to be able to get the correct value
    the Input control also considered as report filter, only if you're applying them on the level of the report, if you applying an input contron over a specific block or chart, you will not get the values for ReportFilter
    good luck

  • Strange issue in ListBox - Showing the 'id' contents and not from 'Values'.

    Hi,
    I have created a custom table control that looks exactly like in 'Partner Tab' of Sales Order. It has Partner type, Partner, Name etc columns. For 'Partner type' column, I am calling function module 'VRM_SET_VALUES' so it shows as 'Sold-to party' , Ship-to Party' instead of SP, WE etc. This works fine.
    However, before I display this table control, in PBO,  I am populating Partner Type and partner # and passing it to table control columns. It should show like 'Sold-To party' in 'Partner type' column and '0000014' in 'Partner' column. I see Partner # populated correctly, however, instead of showing 'Sold-To party' in 'Partner type' column , it is showing like SP, which is the 'id' value from function module 'VRM_SET_VALUES' . What should I do so it shows the description(content from 'Values' and
    not from 'id' ) ?
    Niranjan

    Thanks for the response.
    I had tried converting to text and pass from Internal table to Table control on screen in PBO, however, the width of the column is only 2 characters, so it will display just 2 characters text.
    I am wondering how SAP is able to code to show TEXT in 'Partner tab' in Sales Order. I have pasted the contents below from 'Partner tab' of sales order. I debugged the code in program SAPLV09C and screen 1000 and somehow they are populating the text as shown in 'PARTNER FUNCTION' below instead of codes like SH, SP. If I press F1 on field, I see SDPARTNERLIST-PARVW as the field name and the width is 2 characters.
    PARTNER FUNCTION        PARTNER #      NAME
    Sold-to party                         79269     XYZ CONSTRUCTION
    Foreman1                          2023     KURT
    Bill-to party                          79269     XYZ CONSTRUCTION
    Payer                          79269     XYZ CONSTRUCTION
    Regional Salesman            430     MARK
    Ship-to party                          219763     S.A.G. PROPERTIES
    Cont Person >Bill-To     80296     DENNIS
    Cont Person >Sold-To     80296     DENNIS
    Cont Person >Payer     80296     DENNIS
    Cont Person >Ship-To     261628     DENNIS

  • My MacBook Pro with Retina display displays power point and not other windows when connected to a projector

    My MacBook Pro with Retina display displays power point and not other windows when connected to a projector. Can anyone help out please?

    You should also ask this in the MacBook Pro forum. This is the forum for the white and black plastic MacBooks that were discontinued in 2010. You should also post this question there to increase your chances of getting an answer.
    https://discussions.apple.com/community/notebooks/macbook_pro

  • Using the text and not the value of a filed

    Hi there,
    I'm programming a pdf form using life cycle, I'm using the following script in a "SEND TO" button in order to email an XML file with the data extracted from the form:
    var emailAddress = F.P1.Line.rawValue;
    var veicle = F.P1.Vehicle.rawValue;
    var shipper = F.P1.Shipper.rawValue;
    var date = F.P1.Date.rawValue;
    event.target.submitForm({cURL:"mailto:"+emailAddress+"?subject=Booking request from "+shipper+" date:"+date+" &body=Dear Sirs,Please find attached the completed PDF booking form for the following "+veicle+".",cSubmitAs:"XML",cCharset:"utf-8"});
    The problem is that I would like to use in a variable the text and not the value of the F.P1.Line.raw field.
    Thanks in advance

    Hi,
    This is not the appropriate forum to post this type of question. Please post all designer related queries in LiveCYcle Designer Forum to receive better response.
    From you query I understand you have a dropdown box with name as "Line". And you want to the "text" part of the selected item and not the "value" part. If it is so then do the following -
    1. Write the below code in onCHange event of your dropdown box.
    var ddValue = this.boundItem(xfa.event.newText);
    var nodeList = this.resolveNode("#items").nodes;
    var ddText = null;
    for (var i = 0; i < nodeList.length; i++)
    if (this.boundItem(nodeList.item(i).value) == ddValue)
    ddText = nodeList.item(i).value;
    break;
    global.selectedtxt = ddText;
    In the above code I am basically getting the "text" part of the item selected and then I am storing it in a global variable.
    2.
    Write the below code on click event of your button -
    var emailAddress = global.selectedtxt;
    Hope this helps.
    Thanks,
    Shivajiv.

  • Second selectOneMenu updates values, but not selected value

    I have a drop down box that when a value is selected the second drop down box queries the database and is filled in. This works fine, but if I change the value in the second drop down box so the selected value is now something different. And then change the first drop down box, which updates the second. The second box will continue to show the previously selected value and not the default value that I want.
    Sorry for that being confusing. It seems that the getter is not called in the bean for the second drop down box after it is updated a second time.
    Here is some of the code:
                   <h:selectOneMenu id="firstDropDown" style="width:85px" value="#{firstDropDownBean.clientSelected}" immediate="true"
                                 onchange="this.form.submit();" valueChangeListener="#{firstDropDownBean.requerySecond}">
                        <f:selectItems value="#{firstDropDownBean.clientCodeList}" />
                    </h:selectOneMenu>
                    <br>
                    <h:selectOneMenu id="secondDropDown" style="width:85px" value="#{firstDropDownBean.secondSelected}" immediate="true">
                        <f:selectItems value="#{firstDropDownBean.secondList}" />
                    </h:selectOneMenu>
        public void requerySecond(ValueChangeEvent event)
            fillSecondList((String)event.getNewValue());
            FacesContext.getCurrentInstance().renderResponse();
        }The "fillSecondList" sets the secondSelected value

    Hi,
    using JSF Reference Implementation requires you to redirect the page (refresh the page) to show changes. It has no notion of partial refresh (which is available in ADF Faces). So the problem you face appears to be in the page refresh not happening
    Frank

  • How to retrieve the procedure value and pass the value to a form field

    How to retrieve the procedure value and pass the value to a form field?

    Set property for the field and the value is the actual procedure/function.
    Cheers

Maybe you are looking for

  • [iphone app store] releasing "trial" version app

    i'm sure others have this need, but i can't seem to find info on it. we are releasing an app in which we could make two versions one for free and one that costs money. thing is, we would need people with the free version to "upgrade" to the full vers

  • Template for Customized Reports

    Where will I find templates for customizing forms and reports in OraApps11i.

  • Setting transaction isolation level rises ORA-02089 error

    Hello We have configured a distributed transaction in our application server and we are using openjpa 1.2.1 and Glassfish application server and Oracle 11g as DB server. Although the default behavior of transaction locking must be optimistic, it seem

  • (How) Can I change vi execution priority at runtime

    Hi all, I am using Daemons (free running VI's) and I communicate to them through Queues. They are part of my device driver architecture and use a producer architecture (For Acquisition) or a consumer Architecture (For Control) I have a single Daemon

  • Performance issues LiveOffice

    Hi I am working with LiveOffice in PowerPoint, and are using WEBI report parts in it. Our BO is in version R2, and we have Windows XP, so we have to use Compatibility mode. My problem is that I am facing performance issues, that my coworkers don't ha