Handling cascading LOV (having Multi-Select parent LOV)

Hi,
I am using cascading LOV.
P1_PARENT - Parent LOV (which is multi-select)
P1_CHILD - Child LOV
since Parent LOV is multi-select, so it will have the following vallues... P1_PARENT = AA:BB:CC
and the where clause in the cascading LOV should be like
       where col1 in (:P1_PARENT)
   - So how to convert item value for P1_PARENT from AA:BB:CC to 'AA','BB','CC'
- Is there is any other way to handle cascading LOV (for Multi-Select parent LOV).
select list for P1_CHILD
    select d, r
  from test
where col1 = :P1_PARENT
where col1 in (:P1_PARENT) Thanks,
Deepak

Hi Deepak,
In the where clause for the child LOV, you can use instr function as:
(instr(':'||:P1_PARENT||':',':'||col1||':',1) > 0 ) To access the individual elements in the multi-select :P1_PARENT, you can use:
DECLARE
l_selected HTMLDB_APPLICATION_GLOBAL.VC_ARR2;
BEGIN
  l_selected := HTMLDB_UTIL.STRING_TO_TABLE(:P1_PARENT);
  FOR i IN 1..l_selected.count
  LOOP
        //  your code here...access individual elements using  l_selected(i)
  END LOOP;
END;Thanks,
Rohit

Similar Messages

  • Multi selection in LOV

    Hi all,
    Is it possible multi selection in LOV (or) List Item ?
    If it is, how do passs the multi selection values in query ?
    thanks in advance

    Hello,
    You cannot have multi-section with LOVs but you can have it with poplists.
    <p>see the Forms 10gR2 demo, especially the Multi-select T-List demo.</p>
    Francois

  • How  to Create Multi select  Popup LOV

    Hi,
    I have a requirment in my application like Below scenario.
    I created one page like compose mail. In that i have used popup lov for selecting the user.
    But the problem is, it is allowing only one user to be select.In my case i want to select multiple users to send the
    mail.
    Please help me.
    NR

    Hi,
    How many users do you have in total? If it is a small number (a few dozen) you could use a multi select list or a shuttle item.
    However if there are hundreds of users to choose from, you may need to write your own pop up LOV to select them (probably using an Apex collection to store the temporary list).
    Or if you are really cool you could do something web 2.0-style using ajax (like those boxes in facebook where you just type the names of the persons and it shows a autocomplete list).
    Luis

  • Is it possible to do Multi selection in LOV

    Hi,
    Is it possible to do multi selection of values from the LOV (List of Values) drop down list in Oracle Reports or Oracle apps.
    Thanks,
    Rohit

    Google for things like "selective coloring lightroom" or "spot coloring lightroom" and you'll find plenty of tutorials to choose from.

  • How to display Lov as Multi select dropdown

    Hi
    I am using 11.1.1.6 version.
    I have created a LOV for one attribute, I want to display it as multiselect dropdown.
    Could you please help me how to achieve this ?
    Best Regards,
    Jagadeesh Badri

    @KT there is no such a thing. All the options are related to single selection.
    @JagadeeshBadri as Vinay said, you need to create something by yourself. You can use selectManyChoice component to iterate over the view you want. Then write a selectionListener or something like that that will copy the selected items to your variable. What is your use case anyway?
    Regards

  • Jheadstart 10.1.3.1 multi-select lov

    Hi friends;
    I use jheadstart 10.1.3.1 with jdeveloper 10.1.3.1 production version.
    I have a problem about lovs "allow multiple selection in lov" checkbox..It doesnt works.I want to select multiple rows in lov and copy values to my tables return values...When I select it my lov pages table is created with tableselectone component.I change this component to tableselectmany but result is same.What can I do??Thanks for all....

    I assume you are an Oracle employee since 10.1.3.1 has not been publicly released yet.
    If so, please post your question on the JHeadstart internal mailing list [email protected]
    Steven Davelaar,
    JHeadstart Team.

  • APEX 4.0.2 Multi-selection on a cascade LOV select list only pass 1 value

    Hello everyone,
    I am struggling to make a cascading LOV select list has multi-selection.
    On one report page.
    I have 2 select list
    The first one lists the court name (P4_COURT_NAME), the second one (P4_DEFENDANT) list all defendants who currently engaged in the court.
    The problem is when I allow the defendant select list become multi-select, when it submit it only pass the first selected value.
    So I create just a simple select list based one list of value, and make it allow multi-selection. When it submit, the normal select list can pass selected values properly, while the cascade LOV select list pass only the first selected value.
    Please help if any of you have an idea why.
    We use APEX 4.0.2.00.07, Oracle data version iis 11g
    The some configuration settings I set for the P4_DEFENDANT IS
    Value required: Yes
    Page Action When value changed: None
    Allow Multi Selection: Yes
    Named LOV: --Select Named LOV-
    Display Extra value : Yes
    Display Null Value: Yes
    Null Display Value: --Select—
    Null return value:
    Cascading LOV Parents Items: P4_COURT_NAME
    Page Items to Submit: P4_DEFENDANT
    Optimize refresh: YES
    List of value definition
    SELECT def.first_name || ' ' || def.surname || ' (PRN: ' || def.prn || ' )' as d, def.def_id as r
    FROM defendant def INNER JOIN court_engagement ce
      ON def.def_id = ce.defendant_id
    WHERE (ce.date_joined_aodt_court IS NOT NULL
      AND (ce.date_terminated IS NULL OR to_date(ce.date_terminated,'dd/mm/yyyy') > to_date(sysdate,'dd/mm/yyyy'))
      AND UPPER(ce.court_name) LIKE UPPER(:P4_COURT_NAME)
      AND ce.active = 1)Source Used: Only when current value in session state is null
    Source Type: Static Assignment
    Maintain session state: Per session
    The rest is default.
    Thanks in advance.
    Ann

    Hi Chintan,
    The "Source used" for those items are "Always, replacing any value in the session state". To set them to "Only when current value in session state null" sounds a good solution to me.
    However, a strange thing just happened - now I will not lose the values of the items after the page reloading, although I have changed nothing in the page in my application since I asked the question. I don't understand why all of a sudden the reloading doesn't make me lose changed values any more. Let me dig it tomorrow to see what I'll find.
    Thanks so much for your help.
    Christine

  • Cascading LOV does not work when setting the value of the parent LOV with DA

    Hello All,
    Using APEX 4.2.2.
    I have tow LOVs
    Parent LOV item is: P50_TYPE
    Child LOV item is :  P50_PROJECT_ID
    In other words in the attributes of the item P50_PROJECT_ID we have :
    > Cascading LOV Parent Item(s): P50_TYPE
    > Page Items to Submit: P50_TYPE
    > List of values definition: something similar to:
    Select * from mytable where type = :P50_TYPE
    I use DA that execute JS code to set the value of the P50_TYPE item
    something similar to:
    > $('#P50_TYPE').val(2);
    Having done this, the P50_PROJECT_ID item does not get refreshed, when the value of P50_TYPE is changed. Namely, P50_PROJECT_ID remains empty, unless end user manually changes the value of P50_TYPE.
    Any help please ?
    Regards,

    Thanks Scott,
    By the way, I remember reading a thread posted by you about  Sumneva Drag & Drop Report Region plugin that was answered by Tom . But, I cannot find this plugin anywhere. Does not it supported in APEX 4.2 ? Is there any alternative out there ?
    If you use it, and it works find with you, can you please send it to me on [email protected] ?
    Regards,
    Fateh

  • Multiple Default Values in a Multi-Select LOV Parameter?

    Hi,
    I have a report in BI Publisher standalone version 10.1.3.4. The report has a list of values called org_lov. This lov is attached to a multi-selection p_org_code parameter from which it is desirable to also have multiple default values.
    For example, if org_lov has the following values:
    100
    101
    102
    103
    104
    105
    106
    I would like to have 3 default values and have 100, 101,105 as the defaults if the user doesn't specifically select anything from the LOV. So far my testing has only allowed a single default value.
    Here are my settings:
    Data type = string
    Multiple Selection = checked
    Can select All = checked (all values passed)
    On the Default Value field, I have tried the following:
    1. 100, 101,105
    2. [100, 101,105]
    3. '100', '101','105'
    4. (100, 101,105)
    5. ['100', '101','105']
    6. ('100', '101','105')
    I don't need these default values highlighted in the LOV, I just need it passed correctly to the query (a data template).
    Thank you in advance for any input.

    Hi,
    Sorry for the delayed reply. I tried what you suggested but the problem is that by having the "Multiple Selection" property of the parameter unchecked, the result is that it allows the user to only have a single value passed. The user wants the option to select multiple values AND also have the multiple default values.
    Thanks anyway.

  • Multi selection LOV in forms9i

    Dear All,
    Does anyone having Sample code/solutions for "How to do Multiselect from the LOV popup window"???
    Regards,
    Ibrahim.

    Download the Forms9i Demos. There is a full example of a multi-select PJC that you can plunder for your own devices.

  • How to create multiple rows in a child table from the multi select Lov

    Hi
    We have Departments and EmployDept and Persons tables and each employee can associate multiple departments and vice versa.While creating a Department page there should be a Multi Select LOV(values from Persons table) with search option for the Persons.From the search panel we can select multiple persons for that department.Suppose we have selected 5 persons and click on submit, then it should create 5 rows in the EmployDept table for 5 persons with that department id.
    Any inputs on how to implement this scenario please..

    Maybe you can get some ideas from here -
    http://adfdeveloper.blogspot.com/2011/07/simple-implementation-of-af.html

  • Multi Select LOV Gives CDI-21600

    Have discovered that the Multi Select LOV facility is causing error CDI-21600 in some circumstances.
    We have 2 tables -
    Instance_Type_Owners
    ito_int_id
    ito_owner_org_id
    ito_owner_ort_id
    ito_created_by
    ito_created_date
    pk is the first 3 columns
    Instance_Type_Relations
    itr_ito_int_id1
    itr_ito_owner_org_id1
    itr_ito_owner_ort_id1
    itr_ito_int_id2
    itr_ito_owner_org_id2
    itr_ito_owner_ort_id2
    pk is all 6 columns, with 2 fk's pointing back to Instance_Type_Owners.
    I'm creating a 2 block form, master block has base table of Instance_Type_Owners, detail block has base table of Instance_Type_Relations, using a key link based on the fk pointing back to id1's. I also want a multi-select LOV using the fk pointing back to id2's. This is giving me CDI-21600; the error goes away if I take the Template/Library Object qmsso$msel_lov_item off the leading element of the fk used by the LOV (i.e. itr_ito_int_id2).
    I've double-checked everything about the definitions of these tables/pks/fks, & everything looks ok. I've successfully used multi-select LOV on other tables with a similar fk structure (ie relationship tables, with 2 fks pointing back to the same master table), & with multi-column fks, so it's not being caused by any of these reasons.
    Any ideas on what may be causing this?

    Thanks for the response. I have seen the checklists for causes of this problem, & have checked all tables/fks/pks involved in the form. I can successfully generate forms which maintain these tables, or with lookups to these tables. The problem only happens when I use the Headstart multi-select LOV facility. As I said, the problem goes away immediately I remove the 'qmsso$msel_lov_item' template/library object from the leading element of the fk in the base table.
    If I go to Designer support & tell them this, I'm pretty sure they'll say it's a Headstart problem, since it only happens when Headstart facilities are involved.

  • Multi-select LOV bug and Developer6i R2 Patch7

    Has anyone verified that Patch7 corrects the problem with multi-
    select LOV bug (see below). The Headstart6i Report Launch form
    (QMS0012F) exhibits this bug (when using the demo reports for
    example) and we were unsuccessful applying the workaround (see
    below). We will upgrade to Patch7 if this bug is fixed or we
    could use a little help from the HeadStart team correcting the
    Report Launch form to get around this bug. Thanks, Keith
    We have found one odd quirk with Headstart 6i and Forms
    6i versions 6.0.13 and higher.
    Description ===========
    1. When using a multi-select LOV (which is displayed in a modal
    dialog window), you select the records you want, press OK, and
    the application exits.
    2. When using a shuttle control to move records from left to
    right or vice versa, you select the records you want, press '>'
    to move them, and the application exits. This occurs in Forms
    6.0.8.13.0 and higher. It did NOT occur in prior releases. This
    is some kind of forms bug.
    Workaround ==========
    For some reason the call to procedure 'renumber' in
    qms$msel.process_records in qmslib65.pll causes the application
    to exit. If you copy the code from renumber to all the places
    from which it is called, it works fine.

    So far as I know, this bug has not yet been corrected.
    You will have to apply the fix as described in your email
    message.
    Regards, Lauri

  • Multi-Select LOV for Report Parameters

    I have a LOV defined in Oracle Portal as a Multi-Select LOV. When I assign this to an optional report parameter when defining a reports definiton file and run the parameter screen, it comes up as a combo box. Is a combo box the only type of LOV I can use for an Oracle Reports Parameter.
    Thanks
    Jody

    With whatever i could make out is you are trying to change a discovere report to xml; publisher report isnt it?
    To answe to your question, directly it is not possible to have In clause but you could use some smart logic like lexical parameters etc to achieve similar things.I guess you cannot do in in EBS Reports too.

  • Multi-select LOV's hang form and use 100% CPU power

    Hello,
    We are using Designer 6i (6.5.52.1.0) and Headstart 6.5
    In one of our forms we are using 6 Multi-select LOV's.
    When we click the Cancel or Ok button (included through QMS_MSEL_LOV_BUTTONS), or hit Enter query in one of the ML_... blocks the form hangs and starts using all the CPU-power. I've tested this locally (c/s) and through the web (iAS), same result...
    I already rebuilt the LOV's but the problem isn't solved.
    We've got other forms with one or two multi-select LOV's, and these work fine.
    Has anyone experienced this behaviour before, and what is the cure?
    Thanks in advance!
    Wouter

    Wouter,
    If you are running against Solaris, you could be running into the following:
    Headstart applications that run via webforms on a Sun Solaris application server, suffer again from bug 1985903. This bug was spotted and solved a time ago and seemed to be solved at next
    releases of Forms 6i. Now, on Solaris the bug is introduced again.
    Description
    ===========
    1. When using a multi-select LOV (which is displayed in a modal dialog
    window), you select the records you want, press OK, and the application exits.
    2. When using a shuttle control to move records from left to right or vice
    versa, you select the records you want, press '>' to move them, and the
    application exits.
    This occurs in Forms 6.0.8.13.0 and 6.0.8.14.1. It did NOT occur in prior
    releases. This is some kind of forms bug.
    Workaround
    ==========
    For some reason the call to procedure renumber in qms$msel.process_records
    causes the application to exit. If you copy the code from renumber to all the
    places from which it is called, it works fine.
    - open qmslib65.pll in Form Builder
    - open package body qms$msel
    - find procedure process_records and define a local variable l_recno of type
    number.
    - find local procedure renumber and copy the body of this procedure
    (everything
    after 'begin' and before 'exception').
    - replace each call to 'renumber;' with the copied code.
    A new version of qms$msel package body is available on iXchange for download.
    See Headstart Oracle Designer 6i, Bugs and Fixes.
    Hope this helps,
    Marc Vahsen
    Headstart Team
    Oracle NL

Maybe you are looking for

  • Source system in Virtual Info provider

    Hi!! I am creating an application which is based on virtual infoprovider and which read data from website and produce data for reporting but i am confused about logical system name as cube is not executing in listcube transaction.!!! Regds, Pooja

  • How to automatically update the Expiry Date's number of days

    My web app input form is an event submission form. Users enter the event title, event date and other details, etc. I've figured out how to get the "expiry days" in the form and it be hidden but i can't figure out how to calculate this: (today's date)

  • Hitting deployed weblogic app from a url (weblogic 10.3.4, adf 11.1.1.4)

    Hello, I have an appilcation that I have deployed to weblogic. I test this by logging into the machine where weblogic is installed, opening a browser and entering: http://localhost:7001/incomemax/faces/login (works great) I have an external URL (www.

  • Xserve / internal RAID card / Battery Failed (code 0x#0 = 18)

    Hi, RAID utility is reporting a battery problem. I have rebooted xserve once, the problem went away, the battery was charged but now I have the problem again. The result is a disabled write cache, which reduces performance. Changing the battery is qu

  • 11g (11.2.0.3) : steps to take after reboot of system (asm grid ...)

    Hi all, I'm fairly new to oracle installation and the likes. I have a setup in which Oracle 11g is installed on a virtual machine (vagrant - virtualbox) where i can succesfully install : Grid software Db software Asm disks database installation After