Multi selection

Hello
Earlier I used item type selection with select unique values, list according to my condition in where clause that I wrote the condition like that
NVL (publish_id,: P91_PUBLISH_ID) = NVL(:P91_PUBLISH_ID,publish_id) but my requirement is multi selection. How could I write same condition for multi selection.

Please guide me to write the same condtion for multi selection.



Concerning
Veronica B

Hello

Try

AND (instr(':' || NVL(:P1_DEPTNO, e.deptno) || ':', ':' || e.deptno || ':') > 0 OR e.deptno IS NULL)

Kind regards
Jari

-----
My Blog: http://dbswh.webhop.net/dbswh/f?p=BLOG:HOME:0
Twitter: http://www.twitter.com/jariolai

Tags: Database

Similar Questions

  • Prevention of ListView, select the element for multi select

    How do you keep a user to select specific items during a statement select multi. You can use the MultiSelectHandler to do?

    I have essentially two types of elements. Setting caching and QUERIES.  When the user performs a Multi Select on a cached item... I want only their selection to other cached items.  Even if the user is running a Multi Select statement on an item not cached... I want only their selection of other items not cached.

    Is anyway to do this?  Been Googling for half an hour and can't find that everything about this use case.

    Since I use an element of custom list, I went to this subject a little differently. My CustomListItem implements a ListItemListener. I've implemented the select method as such.

    void CustomStandardListItem::select(bool select) {
        bb::cascades::ListItemListener* lil = static_cast(m_sli);
        bb::cascades::ListView * view = qobject_cast(this->parent());
    
        if (view->multiSelectHandler()->isActive()) {
            bool isCached = view->property("isMultiSelectTypeCached").toBool();
    
            if (m_cachedImageView->isVisible() && isCached) { // is cached.. allow selection of other cached objects only
                lil->select(select);
            }
            else if (!m_cachedImageView->isVisible() && !isCached) { // is not cached.. allow selection other cached objects only
                lil->select(select);
            }
        }
        else {
            lil->select(select);
        }
    }
    

    The dynamic property 'isMultiSelectTypeCached' is just a bool on ListView value that gets defined the type of ListItemComponent. It could have just as well been the type of ListItemComponent.

  • I need a box multi select drop-down list or list of selection with image or icon faclitliy

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    Thank you

    pauljohny100 wrote:

    Hello

    I tried to find a plugin or a jquery plugin that allows to perform the task of

    have a list of selection with images and there should be a facility such as multi select.

    How this can be accomplished. One have they implemented it in any of their application

    Any information will be greatly appreciated.

    When ask questions user interface-related still State (at least) the full version of APEX, the theme and the version of browser compatibility / required.

    See the plugin jQuery Select2 , for which there is a plug in APEX .

    Pre-plugin when we have implemented requirements like this using a model report, CSS and personal...

  • Table multi-selection disabled the check boxes in ADF 10 g

    I think I met an obstacle when you work with a multi-selection table in 10 ADF.

    The selection itself works very well. However, my problem is to try to disable some of these boxes several selections. These boxes are disabled using the expression language. Once disabled, I can always choose these rows in the table using the button 'Select all' created by multiple selection facet. On the page sent, the disabled lines are not recognized as being selected, which is good. However, they always seem to be selected on the front-end server, which would be confusing for users.

    <af:table emptyText="No roles were found"
              binding="#{backing_userRoles.tableRoles}"
              id="tableRoles"
              value="#{backing_userRoles.userRoleList}"
              var="userRole">
                            <f:facet name="actions">
                              <af:commandButton text="Copy Roles"
                                                binding="#{backing_userRoles.cmdCopy}"
                                                id="cmdCopy"
                                                action="#{backing_userRoles.cmdCopy_action}"/>
                            </f:facet>
                            <f:facet name="selection">
                              <af:tableSelectMany text="Select items and ..."
                                                  binding="#{backing_userRoles.tableSelectMany1}"
                                                  id="tableSelectMany1"
                                                  rendered="#{backing_userRoles.managerFlag}"
                                                  disabled="#{userRole.role.autoGrantedFlag eq 'Y'}"/>
                            </f:facet>
    

    multiselecttable.PNG

    So as you can see, the disabled check box has been selected even when disabled. Any ideas on how to change this behavior? Or maybe just get rid of the default generated 'select all ' | 'Select none' orders?

    Thank you

    Cody

    Or, remove selection facet and make sure you have a selection logic - that is to say, some transient Boolean attribute of VO enabled/disabled state, and you have Select All/Select none

  • How multi select documents out for signature and remove them?

    During the test a form, I sent many forms for signature. Now they clutter the page manage. Is there a way multi SELECT and delete them without doing them one by one?

    Hello Balusha,

    From now on, we do not have bulk option remove documents on the tab manage in E-Sign. But, I probably took this as a feedback.

    Kind regards

    -Usman

  • How to compare 2 lists of box-multi-select/shuttle APEX (e.g.1:2:3 and 3:1:2) for equality?

    I want to validate 2 selections of list of shuttle for equality. for example

    1:2:5:7:18:3

    and

    1:5:7:2:3:18

    should be treated as equals and therefore valid (i.e. same selections but in different order)

    While

    1:2:5:7:18:3

    and

    1:2:18:9 are not equal and would fail validation.

    If I use the function string_to_table() on the two lists, then I need sort the associative arrays and then compare them for equality.  Any suggestions on the best way to do it?

    Thanks in advance

    PaulP

    Thanks for all help you, but I decided to stay with string_to_table APEX tables and keep things simple.  I decided to return Varchar2 ('TRUE', 'FALSE') instead of boolean (TRUE, FALSE) so I could use the function in a SQL WHERE clause.

    Here's my working solution

    create or replace FUNCTION CheckMultiSelectStringsEqual(
          p_string1    IN VARCHAR2 ,
          p_string2    IN VARCHAR2 ,
          p_separator IN VARCHAR2)
        RETURN varchar2
    ------------------------------------------------------------------------------------------------------------------
    -- This function accepts 2 multi-select/shuttle box strings in the format '1:2:3:5:12:4'
    -- and a string separator i.e.':' and irrespective of the order of individual selections within
    -- the string, returns 'TRUE' if the strings are equal else returns 'FALSE'.
    -----------------------------------------------------------------------------------------------------------------
      IS
        l_table1 apex_application_global.vc_arr2;
        l_table2 apex_application_global.vc_arr2;
        v_return varchar2(8);
      BEGIN
        if p_string1 is null or p_string2 is null or p_separator is null then
          raise_application_error(-20001,'USAGE: CheckMultiSelectStrings() function requires 2 not null strings and a separator character' );
        end if;
        l_table1 := apex_util.string_to_table(p_string1, p_separator);
        l_table2 := apex_util.string_to_table(p_string2, p_separator);
        if l_table1.count() <> l_table2.count() then
            return 'FALSE';
        end if;
        <>
        FOR i IN 1..l_table1.count() LOOP
            FOR j IN 1..l_table2.count() LOOP
               if l_table1(i)=l_table2(j) then
                 v_return:='TRUE';
                 continue OUTER_LOOP;
               else
                 v_return:= 'FALSE';
                 continue;
               end if;
            END LOOP; -- FOR j IN 1..l_table2...
            EXIT OUTER_LOOP WHEN v_return = 'FALSE';
        END LOOP; --FOR i IN 1..l_table1.
        RETURN v_return;
      END;
    

    -= == HERE IS THE TEST FOR THE FUNCTION CODE =.

    set serveroutput on
    declare
    v_return varchar2(8);
    begin
    v_return:= CheckMultiSelectStringsEqual('1:2:3:4','2:1:3:4',':');
          if v_return='TRUE' then
              dbms_output.put_line('Strings are equal');
          else
              dbms_output.put_line('Strings are NOT equal');
          end if;
    end;
    

    Hope this helps someone...

    PaulP

  • 10.1.3.4.2 - Multi Select guest - research shows too many results

    Hello

    Someone sees a situation...

    When you use a multiple selection of dash prompt, the prompt has the following clause to return only the code with the status of N = select ID from table where status in (' ' n ') and it works fine

    but in the guest even if we use the code names of search for example Contains "XXX", it will return all codes regardless of status, though even she must return only status = N codes,.

    any ideas...

    Thank you

    Hello

    I assume you are using the available inside the Multi selection prompt search filter?

    If this is the case, then this is how OBIEE multi select work. When you apply the search condition in mutiselect, it generates a new query with the condition provided in exculdes and the search filter no matter what external sql filter.

    If you want to keep the filter at the prompt, use condition you be the guest (fx). It will be useful.

    See you soon

    HN

  • Filtering table using Multi Select choice

    Hello gurus,

    I want to filter a table column that is inspired by LOV using list Multi choice to select the filter option.

    Can I filter the table by using the only choice by following below tutorial in the ADF Code corner:

    016 how to customize the filter ADF Faces Table

    Someone can provide any link or guide to implement Multi Select choice filtering list in the tables.


    Thank you
    Buxant

    Hello

    will tomorrow publish sample 98 ADF Code corner: http://www.oracle.com/technetwork/developer-tools/adf/learnmore/index-101235.html#CodeCornerSamples

    Frank

  • The analysis through the Multi selection of values in a PL/SQL procedure

    Greetings,

    This should be an easy one for either of you, experts of PL/SQL. I'm not, so I'm not sure how to code this upward.

    I have a Multi selection page element and am passing the value of it to a routine of PL/SQL as a parameter. I am able to use the value if I spend only a value of my procedure, so I work. But not with multiple values, I need the code in the procedure to loop through the values. How do I code that a period? The procedure is relatively short and is included below. p_cell is multivalued parameter.

    Oh Yes... Probably, you need to know this. The values are coming like this - 1-3:2-3:3 - 3:5:6

    In addition, values are the coordinates XY of a grid I have a picture on the page. The routine removes certain cells (1-3, etc.) of the grid. The grid is created using HTML, so I have to remove lines of HTML to remove a cell in the grid. Just in case this is useful.

    THX, Tony

    = = = = = = =

    create or replace
    procedure qcis_remove_grid_cell (p_id in NUMBERS, p_cell IN VARCHAR2) as
    number of V_POSITION;
    number of v_position_from_end;
    number of v_line_start;
    number of v_line_end;
    number of V_LENGTH;
    CLOB v_html;

    BEGIN

    BEGIN
    Select imagemap_html in the v_html of qcis_im_template_draft
    where header_id = p_id;
    EXCEPTION
    WHEN NO_DATA_FOUND THEN
    v_html: = NULL;
    END;

    V_LENGTH: = length (v_html);
    V_POSITION: = INSTR (v_html, "alt =" "|") p_cell |' « ') ;
    v_position_from_end: = (v_length - v_position) *-1;
    v_line_start: = INSTR (v_html,' < area shape ', v_position_from_end)-1;
    v_line_end: = INSTR (v_html,'/ > ', v_position) + 2;
    v_html: = substr(v_html,1,v_line_start) | substr (v_html, v_line_end);

    UPDATE qcis_im_template_draft SET imagemap_html is WHERE header_id p_id = v_html;.

    END qcis_remove_grid_cell;

    Published by: hidden November 1, 2011 08:01

    Not sure, I understand your need, but it sounded like you must decrypt a string in a set of rows. If so, I will give you 2 ideas:
    1 function STRING_TO_TABLE: http://www.sloug.org/i/doc/api073.htm
    2. other resources (regular expression or XML): http://apex-at-work.blogspot.com/2011/05/two-ways-using-string-to-table-in-apex.html

  • multi select sql problem - ORA-01722: invalid number

    Hello

    I have a multi select list and when I select only one item it works perfectly, but if I select several items, it gives an error. The sql statement is as below:

    SELECT * VIEW WHERE INSTR (': ' |: P1_ID |': ',' :'||) ID: ': ') > 0

    and I get the following error:

    ORA-01722: invalid number


    Here is some information on the display:
    Name of the column
    Data Type (NUMBER)
    Nullable (No.)

    Hello

    I just try this in my own sandbox application to sand...

    Create report area with

    SELECT t_id, t_code
    FROM t_table
    WHERE INSTR(':'||TO_CHAR(:P1_ID)||':', ':'||TO_CHAR(t_id)||':') > 0
    

    as the source.

    Create multiple selection list

    SELECT t_code, t_id
    FROM t_table
    

    as the source.

    Create a button with application of GO, subordinate the region report on request = GB.

    Now, I run the page, select a value in the list, click on go - region displays with the correct result.

    Now I run the page, select several values in the list, click on go - region displays with good results.

    What is your scenario? If so, it works for me...

    See you soon

    Ben
    http://www.munkyben.WordPress.com
    Don't forget to mark the answers useful or correct ;)

  • Region of report filters by using Multi Select lists

    Could someone please advise me accordingly.

    I want to use several multi selection lists to allow a user filter data in a report. I have a button for the user to send the page and apply their selected criteria. In my application I have want to reference the items select direct multi.

    for example

    Select studentid, studentname
    of student_table
    where of course in(:p1_course)
    and the Department (: p1_dept)
    and in the year (: p1_year)
    and... etc etc.

    My attempts to do so to this day, have been in pallets. I was hoping that one of you experts may be able to advise how to do this step by step.

    Thank you

    Steve C

    Hi Steve,.

    The results of the selections multiple lists would be in the format has: b: c (that is to say, the values separated by semicolons), so your WHERE clause must use something like:

    OÙ ' :' || : P1_COURSE | ':' AS ' %:' | COURSE | ':%'

    or

    WHERE INSTR (': ' |: P1_COURSE |) ':', ':' || COURSE | ':') > 0

    Andy

  • Multi Select generates a report

    Hi all

    Please help me on the following.

    I have multi column select on the basis I need to generate the report in the Apex please suggest me on this.

    Thank you

    Hello

    The SQL statement for the report on my page is:

    SELECT EMPNO, ENAME, SAL
    FROM EMP
    WHERE ':' || :P16_SAL || ':' LIKE '%:' || TO_CHAR(SAL) || ':%'
    ORDER BY SAL
    

    As previously mentioned, a multiple-selection list will return a list delimited by a colon of values when the page is submitted - example 1:3:5. If these data are transmitted in a URL, only the first value will be considered as everything after the first colon is ignored - this is because the parameters in the URL are divided by the colon as well. The end of a typical URL will be something like:

    ...P1_ITEMNAME:itemvalue
    

    Apex assigns Valeurelement to P1_ITEMNAME. If you need to pass values in several fields:

    ...P1_ITEMNAME1,P1_ITEMNAME2:itemvalue1,itemvalue2
    

    When you pass a list to multiple selection via the URL, you get:

    ...P1_ITEMNAME:1:3:5
    

    What Apex will perform as "set P1_ITEMNAME to 1"-the ": 3:5" is ignored because it is not part of the parameter 'values '.

    I suspect that it is actually what is happening in your case - if you look at the URL when you have passed to the report page, you will probably see all the values have been adopted but those after the first: are ignored.

    As long as you submit the page containing the selection list and do not clear the cache of the page you can still use the name of the item in the list to your report filter. For example, if you have the list on page 1 called P1_LIST and the report is on page 2, you can use the SQL for your report:

    SELECT EMPNO, ENAME, SAL
    FROM EMP
    WHERE ':' || :P1_LIST || ':' LIKE '%:' || TO_CHAR(SAL) || ':%'
    ORDER BY SAL
    

    Value of P1_LIST will be in session, the value is always available on page 2.

    Andy

  • Multi selection to layers

    Hi, I have a file with about 300 different items in different sizes scattered on the same layer.

    I have for each of them to export to a single PNG file...

    Do it manually really is a pain! Help me please

    Any way to analyze intact objects / selection & convert to layers automatically or so away.

    Thank you very much

    Maybe this script.

    Works best if objects are on a transparent layer.

    Divide into layers | Photoshop scripts

  • Multi-selects search form break when the screen is Exact = true

    I came across a problem where selecting 'Vascular' in a drop-down list in my webapp search form also returned results 'Non-vasculaire '.

    After some research, I found adding "& Exact = true" at the end of the form action has solved this problem.

    I have then proceeded to re - test the selection of several elements of the multiple selection and submit the form. I got exactly zero results. I chose the two elements of the multiple selection separately and returned the results twice. I took the & Exact = true back out and retested select multiple items and received my results once more.

    Does anyone know how build the search engine so that I can prevent the search within words and allow also my multiple selection dropdowns to work properly?

    Also, I think that this behavior that I'm experiencing is a bug. Could an Adobe employee submit a bug report if yes please?

    Thank you!

    Well you do but you select two things for 2 custom fields, he'll get both, neither, or in this case. It's simply not how does the search in British Colombia. Maybe they will bring improvements to the search, but which will correspond to the server load etc which is probably why it was not the door.

  • Checkbox multi-selection as point cascade

    Hello

    I have a box where if I select more than one check box, based on this multiple selection of values, I tried the following item values is displayed.

    I have set up an example to http://apex.oracle.com/pls/apex/f?p=71510:14 (test/apex14gm)

    On this page, if I select more than one "place" check box I wanted to 'departments' to are displayed according to the multiple selection above.

    If I do a single select statement box, I get the corresponding departments, but I don't get while I select several checkboxes.

    How can I achieve this?

    Pls help me...

    Thanks in advance

    Hi Kanishkaa,

    OK, I guess that your department table is looking like this:

    id_city

    Department

    If your request is

    SELECT...

    OF departments

    WHERE id_city =: PX_MY_CHECKBOX

    The values of your check box, when you select several look like this in a session of the APEX:

    1:5:6

    Then of course, your query will fail.

    First of all, there is a way in oracle, you can treat a list separated by commas as a table. We convert your string to that.

    Add a variable:

    v_MyVals: = REPLACE (: PX_MY_CHECKBOX,': ',',');

    This way, you get a list separated by commas.

    Then you have to rewrite your original query where to

    IF v_MyVals IS NOT NULL THEN

    ...

    SELECT...
    Of...

    WHERE id_city IN (SELECT TO_NUMBER (xt.column_value)

    The XT XMLTABLE (v_MyVals));

    END IF;

    Kind regards

    Joni

Maybe you are looking for

  • Fonts change more content.

    Today I found that nothing I do changes in the police. I changed the police before, but now I can't.

  • CQ305A: ink expiration

    Hi all, I'm new to this forum and I would like to help with my designjet T770HD printer. The expiration of the ink, the printer stays off until I have replace the cartridge. Research using hp customers (http://support.hp.com/us-en/document/c01764161)

  • Saltellite A200-1J0 - display is not clear

    I have the latest version of the driver for my ATI display everything it works well, but there is a problem: in MSN messenger or some programs, the screen is not clear and the letters are not as clear. I tried to install the last update, but there is

  • Settings of bias in the HP b2600 workstation.

    PL. tell is all battery CMOS hp b2600? If not, how the offset value stored in worksation? Thank you Rajiv Garg.

  • We will seek answers carnt engage power sleep mode despite the ok value settings

    new computer operating system loaded ok, but usually indulge dipite sleep mode all the power setting of say everying is ok. boots emediatley after selection sleep it's not mouse or everything I know help becomes very noisy