LOV display & return

Hi Everyone:
I created a dynamic LOV multi-select list.
Here is the query:
select NAME d, ID r
from LIST
order by 1When I summit this page I go to a report to check for the all the IDs selected in the previous page. When I go back to the page to make another selection the multi-select list doesn't have the names selected highlighted anymore. I know this is because I have the ID returned.
Is there a way that I can use the above query and when I go back to that page the names are still selected? I don't want to be selecting the name all over again.
Thanks,
Bino

Bino:
Does the branch specify that any items of the LOV page have their cache values reset ?
What is the session state value of the LOV item when on the report page ?
Varad

Similar Messages

  • Multi valued LOV - Display vs return

    APEX 4.2.1
    On a form view, when there is a multi-valued LOV (checkbox, shuttle, multi-select list, etc), APEX item value in session state is a colon-delimited list and this is what gets saved to the varchar2 column in the database table. Assuming there is a simple lookup table to translate display/return values, on the report view for this data, how can this value (e.g. 1:2:3) be shown using the display values (e.g. One:Two:Three) instead?
    Thanks

    VANJ wrote:
    Paul - I do agree and most of the time I am a stickler for proper database design. But for simple data-gathering exercises (think a typical customer satisfaction form with a bunch of questions, some of which are Choose all that apply ), creating itty-bitty tables (one per such column) for just this purpose seems like overkill.Would websheets be any use in that space? (Not something I've really looked into.)
    Alternatively, one could simply setup the LOV to have the same display/return values and then the column could store One:Two:Three so the problem goes away.That was going to be my next suggestion.
    But that would preclude the use of a user-editable LOV table where the user can change the display value(s) but keep the (stored) return value(s) unchanged.User-modifiable look-ups would be getting away from my definition of "simple data-gathering exercises" involving "itty-bitty tables".
    Even if the data were to be stored in normal form, the report view would need to show 1 row regardless of the number of LOV choices, so the report query would have to use scalar sub-queries using string aggregation (e.g. LISTAGG function in Oracle 11gR2) of the form
    select
    (select stragg(m1.display_val) from detail1 d1, mapping1 m1 where d1.code=m1.code and d1.pk = m.pk) detail1,
    (select stragg(m2.display_val) from detail2 d2, mapping2 m2 where d2.code=m2.code and d2.pk = m.pk) detail2,
    from master mNot exactly elegant SQL, so then why be a stickler for normal form, just continue with the dirty hacks :-) Or am I missing something?And even less elegant when you add the code required to un-nest the delimited list. The last major APEX project I worked on use this [anti]pattern a lot (albeit using tables in proper normal form). I'm not keen on the resulting HTML structures either (unless they're nested lists). I was involved there too late to convince them to use some other presentation in the reports, but did manage to change the display value aggregation from using custom PL/SQL functions with cursor loops to inline SQL using <tt>xmlagg</tt>. (Since most of the time these display values were links some inelegant SQL and violation of separated concerns was involved. <tt>xmlagg</tt> has some benefits over <tt>listagg</tt> in this use case: works on 10g; semantic HTML for the aggregated values (e.g. lists) can easily be produced using SQL/XML; aggregates larger than 4000 byte VARCHAR2s can be returned using <tt>xmlserialize</tt>. The report break formatting enhancements detailed in Feature Request ABPF are badly needed to enable this kind of thing to be done declaratively.)
    So....is there a way to have my cake and eat it too? Off-the-wall, unhinged, untested, and almost certainly very inefficient brainstorm: create a view consisting of a column with every possible combination of the value columns and another with the corresponding display value combination, and perform an outer join on the aggregated values...

  • Dynamic select list with display,return val & join condition issue.

    hello,
    I am having a dynamic select list with display, return value
    say for example my select statement is
    select distinct dname d, deptno r
    from dept dt
    right join emp e on (e.deptno=dt.deptno)
    where (condition)
    when i tried this query for my select list, it is not working. It saying that
    " 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. "
    I am not able to understand the problem. Can anyone help me out with this issue?
    thanks.

    Shouldn't your join have dept as the driving table?
    select distinct dname d, deptno r
    from dept dt
    right join emp e on (dt.deptno = e.deptno)
    where (condition)
    Or using older Oracle standard join
    select distinct dname d, deptno r
    from dept dt, emp e
    where (dt.deptno (+) = e.deptno) AND (OTHER WHERE condition)
    OR
    (Since a right join is just getting the values from the driving table that are NOT in the associated table)
    select distinct dname d, deptno r
    from dept dt
    WHERE dt deptno NOT IN (SELECT deptno FROM emp) AND (OTHER where condition)
    Thank you,
    Tony Miller
    Webster, TX

  • How to show the LOV display column in a field of type ''popup''

    Hi All,
    I've defined a form (no matter table/master-details/procedure) with a text item of type "popup", and have chosen a specific LOV.
    At runtime, after the user chooses a value within that field, He sees the return column, (not the display column) of the LOV.
    This behavior is different in field type combobox,
    where the user sees the display column, ( this is the expected behavior when dealing with LOVs ).
    How can I, in a popup type field, show the user the LOV display column rather than its code ?
    Any help will be appreciated !

    I had a Tar on this a while ago. Oracle's response is that's the way it is, but :
    The problem is that form is storing the ID in the table but when customer queries the form, the ID is displayed, which means nothing to the user.
    This is working as it should by design.
    An alternative is to add a non-database field to the form to display the name based on the ID fetched from the table or to build the form in a manner that it will query
    from both tables, the one storing the ID and the one storing the name, as a loookup table.
    Suggested review Notes: 125272.1, 124072.1, 263923.1.
    I believe Note:125272.1 would work for you if you have a primary LoV displaying the name but populating the ID from the first table. The second LoV can query from the table storing the name (instead of making it a non-database column). When the first LoV is used, the second will be refreshed, displaying the actual name on the for
    m on your non-database field, just for display purposes.

  • LOV Display Problem

    Hi,
    I have created a page that will be used for create and update. One of the fields shown on this page is a lov displaying the employee name however only the personId is on the Database table, EO and VO. When I create the record and pull the data in using the lov everything displays correctly, however when I query back the record for an update the employee name will not show, it will just show the personId that was saved to the table.
    Is there a way of forcing the employee name to show using the value found in the lov using the person_id when going back in to update or will I have to create an employeeName colomn on the table,EO and VO. If the later is the case then the name will not be dynamic to what is stored in the database.
    I hope I have explained myself clearly, if not I can hopefully clarify.
    Any advise on what my options are would be very much appreciated.
    Thanks, Mike.

    Hi all,
    I dig up this old post because I am facing the same issue and fixed it with the same trick.
    But In my case, once the transaction is committed, the transient attribute is emptied.
    Let me explain:
    Using a lov, I return the id in a "based" attribute of my VO and return the meaning in a transient attribute of the VO.
    This transient attribute is a sql function returning the meaning.
    So everything works fine when the page is loaded and everything works fine when the lov is used to populate my record, in both case the meaning is displayed.
    BUT, in this page, once I use the "Apply" button (which perform a commit in the AM), the meaning attribute (the transient one) is emptied. And I really wonder why.... :-(
    Any idea?
    Thanks in advance!
    Olivier

  • 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

  • How to populate right side of Shuttle with display/return values?

    Hello,
    I know, that the proper way to populate the right side of shuttle is that:
    declare
         v_list     apex_application_global.vc_arr2;
    begin
         select profile_name return_value
           bulk     collect
           into     v_list
           from     user_profiles
          where     user_id = :p61_user_id;
         return (apex_util.table_to_string (v_list));
    end;It is comfortable for the user to see the name of the profile.
    However, I need a profile_id as a return value, like I have it on the left side of the shuttle.
    The left side of the shuttle is populated with a select list with display/return values, as you know.
    I need both sides of the shuttle to return profile_id in order to create a merge.
    How is it possible to populate the right side of the Shuttle with display/return values?

    All you have to do is to use the subset of shuttle query to assign value to the right side shuttle.
    http://apex.oracle.com/pls/apex/f?p=50942:95
    I have created a dummy page with shuttle query
    SELECT ename, empno FROM emp ORDER by 1then I have defined a pl-sql before header process to assign values to shuttle variable
    using the code
    begin
    :P95_SHUTTLE := '7566:219:7900:7782:90';
    end;since 90 is not one the result set of the shuttle query it is getting displayed as number, and for others it is displaying the text. Thanks.
    --Manish                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                   

  • LOV Display - "Do you want to save changes?"

    Hello,
    I setup and simple LOV with just a few fields. When the user enters runs the form they can click on a button "View List", then the LOV displays nicely. They can choose a record from the list and it displays just fine in my form.
    The problem is that when they click on the "View List" button again, then chose a differnent record, I keep getting the message "Do you want to save the changes you have made?". Even when you say "NO" it doesn't even bring up the record that I clicked on.
    My "View List" whe-pressed trigger looks like this:
    IF Show_lov('LOV_NEWSLETTER') THEN     
         execute_query;
    END IF;
    Do I need to clear the form or something like that ?
    Please help,
    Bob

    Hi Bob,
    the reason is your execute_query statement in the trigger. The user picks up a value out of the LOV, the record get marked for insert/update inside forms. The next time the user picks up a value, forms have to ask for saving the changes because you wan't to progress a execute_query against the same table again. Why do you use execute_query after showing the LOV ?
    Hans

  • LOV Display Issue

    Hi,
          We are using jDeveloper 11.1.1.7.0 .
          We had a very long LOV displayed in the page. Under the resolution 1280*768, it goes out to the right of the page, and becomes really ugly.
          We have 6 fields as the LOV's display attributes. In the VO, each field has a display size of 30.
          Now My question is, can I have a scroll bar in the LOV, or we had a compact mode for the LOV? As decrease the display size is unacceptable.
    Any suggestions are appreciated.
    Thanks,
    Daniel

    Hi Timo and Subramanian,Thanks for replying.
    We used inputComboboxListOfValues for the LOV component.
    Actually problem is, the LOV's width is too big. (when I mentioned too long, it means horizontally). We are hoping to get a Horizontal scroll bar.
    However, we can not change it from inputComboboxListOfValues to inputListOfValues. We need the most recent viewed from the inputComboboxListOfValues.
    Thanks.

  • Using Lov display name but save id

    problem: using Lov display name but save id

    solution: put the LOV on the name and use formValue item for the ID with the viewInstance and viewAttribute, and make a mapping for the form value

  • Adobe Interactive Forms displaying returned tables

    can anyone help me display returned tables in adobe
    interactive forms
    i have an 2 adobe interactive forms, one for input
    the other for output on 2 different views
    the input form takes a few parameters, calls the
    back end RFC and the
    output form displays okay, but i just get the last
    row from the table
    i've tried binding 1 of the output table parameters to a drop down box and subform,the drop down box displays
    one of the return parameters but will not drop down
    whenever i include a subform i get a java error on
    the output form with no display
    i know there are several rows returned from testing the rfc inside abap workbench

    Hi Dennis,
    To display table in Adobe forms.
    Follow these steps :
    1. Insert one sub furm.
    2. make its type to flow content and flow direction to Table in object property.
    3. Insert another subform in above sub form and makes its type to flow content and flow direction  to Table row.
    4.In binding tab for this subform check the checkbox for "Repeat subform for each Data Item" and in min count you can specify at a time how much rows you want to display.
    5. Now place your UI Elements for Data view into this sub form.
    6. format these ui elements as you required.
    Run application now u can see multiple rows in adobe forms, if you have multiple elements in your table node.
    Let me know the status.
    Regards,
    Bhavik

  • Problem in LOV display length

    i am facing a problem in a LOV display, one of the columns had a length of 4 earlier from the base table used in the LOV but after changing the base table to 10, actual column length is 5 but the fifth character is not showing in the LOV.
    I hope, my question is clear. Please help in solving the doubt.
    regards.

    width=5 doesn't mean, that you see 5 characters !
    e.g. you can see three "m" or you can see twelve "i" when using a non-proportional font
    try to increase the size, so that you see enough

  • Static LOV displays in Sorted order

    Hi
    Did anyone have come across using Static LOVs displays the display value in the Alphabetical sorted order for a radio button? Any resolution for this problem, I can change to Dynamic SQL using union with the dual table, just curious to know
    Cheers

    Suresh,
    Did anyone have come across using Static LOVs displays the display value in the Alphabetical sorted order for a radio button?I don't understand that question. What are you doing now and what are the results?
    Scott

  • LOV not return values more than certain limit

    Hi Guys,
    I have created 2 search fields (State, Area) in report page. Both of them are LOVs based. User select first field value, next field's LOV return values based on the first field( AJAX call). First field is states like 'VIC', 'NSW', 'SA' etc..., next field is 'Area'. when I select state other than 'NSW' in state field then next field is populated successfully. But when I select state as 'NSW' then next field is blank. 'NSW' state has records more than 100 in the table(LOV based on), but all other states have even less than 10 records. when I remove (more than 50) records of 'NSW' in the table then It works.
    Can anybody know if there is a limit of LOV that can be supported?

    Thanks Varad for reply.
    As you suggested to change gReturn = get.get('XML') to gReturn = get.get() for text values, But it is not simple as you said.
    I have found the problem. Actualy, there are some special characters in database column that suppose to return in LOV. But LOV is returned as xml object that may not support special characters (&,$, % etc...). I have put the 'replace' function in query. My query is like
    select replace(name,'&','and') d, id r
    from table1
    where val1 = :P2_val
    order by 1
    This query works in SQL WORKSHOP but not in AJAX. Any Idea? If I have to replace get.get('XML') to get.get() then what other steps I have to perform?

  • Text item mapped against more than one LOVs for returning value

    hi to all,
    is it possible to have two LOVs (LOV1 & LOV2) that return value to a same text item (:LOV_VAL )on a form.
    i.e.
    on selecting LOV1 row, value is returned to :LOV_VAL item.
    On selecting LOV2 row, value is returned to :LOV_VAL item.
    on the basis of valued retured to :LOV_VAL the data block is queried.
    If yes how , if now please provide me alternative way.
    Thanks in advance.
    plz do it fast.

    Hello,
    Why don't you try ?
    You can define a return item for each column of each LOV.
    If you want, you could have one hundred LOVs that return the same column in the same item.
    Francois

Maybe you are looking for

  • Best for Web viewing

    Hello All, I was wondering if anyone out there had any suggestions on which is the best way to export my video for web viewing. Currently I have a project that was only 1.9MB big but when I exported it to a .mov file it came out to be over 350MB larg

  • Changing weekday order

    I hate that kind of default ordering of the calendar the way the week starts with Sunday. I like to change it like it is default in Europe/Germany beginning with Monday. How can I change that? Is it possible?

  • Importing scheme objects

    Hello Forum members, I have euser/euser@rdb on remote server.I have taken export of it.Can I import them into scott/tiger@orcl [local pc] and access them?? or should I create rdb database and euser in local pc and access them?? Please advise me. Than

  • ALV : How to activate List - Export - Spreadsheet

    Hi all, I have tried to search this forum n google regarding on the above problem but couldn't find any answer. Therefore, i have decided to post this question here. I have ALV report but somehow i couldn't Export -> spreadsheet directly. It was disa

  • Safari keeps showing the same windows asking to confirm my age on a forum

    Hello. Does anyone knows how to settle this. I mean I'm chatting over several forum : psychology, sexuality... and there's a pop-up which asks you to confirm that you are over 15yo. On Firefox I answered once then it has never reappeared but on safar