Search for multiple values separated by carriage return and not commas

I have developed a report in BI Publisher that allows a user to enter multiple values that are separated by commas.
Is there any way of entering multiple values that are separated by carriage return and not commas?
Any help would be appreciated.
Thanks

Here below, without function :
SQL> with tbl as
  2  (select 0 c1, 'j' c2 from dual union all
  3   select 1 c1, 'k' c2 from dual union all
  4   select 2 c1, 'l' c2 from dual union all
  5   select 3 c1, 'm' c2 from dual union all
  6   select 4 c1, 'n' c2 from dual )
  7  select *
  8  from   tbl
  9  where   c1 in (select substr(mystring,instr(mystring,',',1,rownum)+1,instr(mystring,',',1,rownum+1)-instr(mystring,',',1,rownum)-1)
10                 from   (select ','||'&str'||',' mystring from dual)
11                 connect by  level <= length(mystring)-length(replace(mystring,','))-1);
Enter value for str: 1,2,3
old  10:                from   (select ','||'&str'||',' mystring from dual)
new  10:                from   (select ','||'1,2,3'||',' mystring from dual)
        C1 C
         1 k
         2 l
         3 m
SQL> /
Enter value for str: 0
old  10:                from   (select ','||'&str'||',' mystring from dual)
new  10:                from   (select ','||'0'||',' mystring from dual)
        C1 C
         0 j
SQL> Nicolas.

Similar Messages

  • How to search for multiple values with Bex Prompts

    Hi,
    I would like to know  if it is possible to search for multiple values at the same time with Bex Prompts instead of searching one value at a time (please see the screen shot below). I searched the forum couldn't find any relevant answers. please let me know  how  to achieve?
    Thanks,
    Charvi.

    Hi Charvi,
    You can use wild card search to ensure you get multiple similar values listed as search output.use * for multiple characters and ? for single character.
    For Example, Ravi * would result you all employees with first name as Ravi
    You can use various search formats such as * Ravi * and * Ravi and Ra?? etc.
    Thanks
    Mallik

  • Is it possible to search for multiple folders with the same name and...

    Is it possible to search for multiple folders with the same name and then select them all and change the permissions on just those folders .i.e. Search for the budget folders in all client folders and lock them down to just the project managers. Without having to go to each folder and apply the permissions.

    user11919409 wrote:
    Is it possible to create a Clone database with the same name of source db using RMAN ...
    yes
    >
    DB version is 11.2.0.2
    Is it possible to clone a 11.2.0.2 database to 11.2.0.3 home location directly on a new server . If it starts in a upgrade mode , it is ok ....yes
    Handle:     user11919409
    Status Level:     Newbie (10)
    Registered:     Dec 7, 2009
    Total Posts:     102
    Total Questions:     28 (22 unresolved)
    why do you waste time here when you rarely get any answers to your questions?

  • Search for multiple values

    Hello,
    I would like to search a table and find all values for each student that have a certain key word in the heading of a column and use all of the values found to calculate different averages.  Is this even possible?  Can i do a vlookup, or something like that, to search out many different values?
    https://www.dropbox.com/s/kiqwl2qg50u2ubz/6th%20Grade%20Math-2012-11-08%20%281%2 9.numbers
    Thanks!
    -Josh

    Josh,
    SUMIF will do the work for you, but the searching for a particular string in the title will have to be done in an auxiliary row, not in the SUMIF expressions.
    So, add a row above the row with the score titles; a new Row 1. In C1 write:
    =IFERROR(FIND("N2", C2), "")
    Fill Rignt
    Now you have a key. Every column with "N2" anywhere in it's row 2 cell will have a "1" in row 1.  You can use SUMIF, COUNTIF or AVERAGEIF to find those stats on a per-student basis. Your example file has only 2 columns with N2 in the score description, so the stats will be rather trivial for that particular set.
    There's another way you can use this key. You can create a second table that mirrors the first table, but has null strings in all columns without the key and the true values for all columns where the key is "1". That would look like this...
    This all seems a bit trivial, so I may be missing the point. It seems that you could just ignore the nonrelevant columns rather than go to the trouble of flagging them and filtering them out of the final table.
    Jerry

  • Library Filters: Filter for multiple values in a single column and Wildcards

    If you have a multi-value column in a library, can you filter to show only results where two (or more) specific values (terms) are applied? E.g. Year 2014 and Month January? Seems this would be particularly useful for Enterprise Keywords columns.
    Similarly, is there any way to filter on one value OR another value in a single column (e.g. Document Type Memo OR Fax)?
    Any way to use wildcards in searches (would be REALLY useful in the Title and Name columns when naming conventions have been followed).
    I'm guessing the answer is going to be 'move to SharePoint 2013' - if that is the case, please confirm whether all the scenarios mentioned above are catered for.

    Thanks for your replies !
    Is there any other way to achieve this ?
    There is 1 InfoObject which has 2 fields Employee and Department.
    Employee     Department
    001                A
    001                B
    001                C
    In the report there should be 1 row for Employee 001 with all the Departments displayed in the same cell separated by commas.
    Can this be done in the backend through a ABAP code?

  • Search for multiple words in a field?

    is there a way to search for multiple words in a field? for example, if i have a metadata field called NOTES that contains the string "Joe and Bob created this version on Sunday" is there a way to search for "Sunday, Joe, Bob" and have it return the asset?

    Search using the "Matches Word" option instead of "Contains". That will limit your results to only assets that have a field value that includes all three of those terms. If they are not all included in the same field value, it will not return a hit. So if "Sunday" were in Keywords and "Joe" & "Bob" are in Notes, you would not get a hit for that search with "Matches Word".
    "Contains" searches for the contiguous string in any field on the assets.
    Further, if you add your Notes field to the Metadata Group "Asset Filter", it will appear in your advanced search options, asset subscription filters, and search expired responses. Then you can specifically limit the search to that field and choose from "Matches Word', "Contains", and several other search filters. Note that when you use "Matches Word" this way, you need to eliminate spaces from your comma delimited list of words or you will not get the search hits you want.

  • Searching for a string in an excel file and return true if found.

    How can I search for a string in an excel file and return true if found, its location and also a value.

    The problem with searching an excel file is that it contains a header. It would be easiest if you just read the file into a LabVIEW array and search the array. This way you can also get the index and the value of the location.

  • SetSelectedValue for multiple values in List Box

    Hi,
    I want to set the selectedValue for multiple values in the List Box. If i use setSelectedValue for all the values, it just highlights the last one.
    Can anyone tell me how do i highlight multiple values in the List Box?
    Scenario:
    I have one screen where the List Box and "Go" button is placed. When i select multiple values in the list box and hit "Go" it should display what i have selected in the List Box.
    Note: List Box is generated dynamically.
    Thanks,
    Naresh V

    setSelectedValue as the name indicates will set one value and in your case since you are using it multiple times it would pick the last value.
    When the user selects multiple values from the list box and clicks on Go you can capture those values in the controller for processing. What are you trying to achieve by resetting all the selected values on the same listbox ?

  • Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc. This is a new problem and was not the case before.

    Windows 8.1 PC, using reader, when searching a folder containing approx 100 doc's. If i search for a word, no results are returned. only the doc names can be found but nothing from within the doc.
    This is a new problem and was not the case before.

    Works perfectly fine for me with the latest Reader version (11.0.09).
    You write that it worked "before"; before what?  An update?  Update from what version to what version?

  • How to search for a value in an iterator in Jdev 10.1.2?

    Hi!
    I need to search an iterator named "PermitYrIterator1" for a year value (e.g. 2009) that is stored in bindings.Yr in my jsp. How do I do this in my jsp's DataForwardAction Code) in Jdev 10.1.2?
    I need this in my "Create page." I need to search for this value because I want to check if I should re-execute the "PermitYrIterator1" so that it shows the newly added year in bindings.Yr or not. If bindings.Yr is found in the iterator then I do not need to re-execute the iterator. But if the newly entered year cannot be found then I need to re-execute the iterator.
    I hope you can help me immediately! Thanks!

    Hi,
    Anyone can help me on this please?

  • How can i search for multiple file names (images) in bridge?

    Hello everyone!
    Does anyone know how to search for multiple file names in bridge?
    That is to copy & paste something like this: _MG_2152, _MG_2177, _MG_2194, _MG_2195, _MG_2202, _MG_2212, _MG_2219, _MG_2261, _MG_2362, _MG_2401
    Not using several criterias in the search box that is. That takes too long.
    Thanks
    Steffen Rikenberg Photographer
    Oslo, Norway.
    www.steffenrikenberg.no

    Try this add-on [https://addons.mozilla.org/it/firefox/addon/find-all/ Find All]

  • Dynamic where clause for MULTIPLE values

    In the following of dynamic where clause?
    i have some somewhat different problem.
    Is a dynamic where clause for multiple values possible?
    If the inputvariable varCode1,varCode2,varCode3,varCode4 are 0 then show all id's otherwise filter the resultset on var1 and/or var2,and/or var3,and/or var4.
    Example table:
    create table t
    (d int,var int);
    insert into t values (1 ,1 );
    insert into t values (2 ,1 );
    insert into t values (3 ,2 );
    insert into t values (4 ,3 );
    insert into t values (5 ,4 );
    insert into t values (6 ,4 );
    insert into t values (7 ,4 );
    insert into t values (8 ,4 );
    insert into t values (9 ,5 );
    insert into t values (10, 6);
    insert into t values (11, 6);
    So what i want to change the where clause upon the value of the varCodes. If var1 and var are not 0 a "AND" should be used otherwise an "OR"
    select id
    from tst
    where var = DECODE( :varCode1, 0, var, :varCode1)
    or/and(?) DECODE( :varCode2, 0, var, :varCode2)
    or DECODE( :varCode3, 0, var, :varCode3)
    or DECODE( :varCode4, 0, var, :varCode4)

    Please turn off your Caps Lock
    and try this link
    Dynamic WHERE clause

  • SQL Command code for multiple value string parameter

    Hi,
    I'm using crystal 2008 and there is a check box for multiple value  SQL Command  I need some help in writing the SQL Command code  for oracle (or sql server) for a multiple value STRING  parameter.
    Thanks in advance,
    Marilyn

    I could be wrong here, but I do not believe you can pass a multiple valued parameter to an SQL Command data source.  How I have gotten around this in the past is to put the "real" report into a subreport.  In the main report, create a formula field (basic syntax):
    formula = join({?parameter}, "|")
    Then, use this to pass the selected values to the subreport's parameter (call it {?sr-parm}).  The SQL Command in the subreport can then use that (MS SQL):
    select *
    from table
    where charindex(table.field, '{?sr-parm}') > 0
    HTH,
    Carl

  • Can I search for multiple images simultaneously in Aperture?

    Can I search for multiple images simultaneously in Aperture?  For example, search for 'Image2.jpg, Image3.jpg, Image5.jpg' by image name, out of different folders? 

    dusan -- your best procedure is likely to be to type the first file name (without extension) in the search field of the Photos View, and then mark that file either with a Flag or a color label.  (You might clear all Flags prior.)  If you have a lot of images or a slow computer (or both ) you may have to wait a few seconds.  Aperture will show "Loading ... " on the left side of the tool strip while it churns through your images.
    Then hit backspace twice, and type "60".  Mark the file found.
    Repeat with variations.
    Then go to Flagged view, or filter the whole Photos view for the color-label you used.

  • Searching for multiple faces in single picture

    Is it possible to search for multiple faces in a single picture. I would e.g. like to search for all pictures containg Person X and Person Y.

    File -> New Smart Album
    Face -> is -> X
    +
    Face -> is -> Y
    To get pics with both, set the condition to Match All, to get either, set the condition to Match Any
    Regards
    TD

Maybe you are looking for

  • BAdI before BBP_REQREQ_TRANSFER?

    Hi all. SRM 4.0, ECS. I need to manipulate some of the values used when transfering the SC data to the purchase order, and without changing standard SAP code in BBP_REQREQ_TRANSFER I need to know if there is a BAdI that is called before this? By debu

  • Share Point Problems

    I have recently cleaned a volume and recreated my share points. The way they worked before, a user of a group could create a directory and others in the group could read and write to it. Pretty straight forward stuff. Now, no matter what I do the fol

  • Schedule line Release with help of release creation profile.

    Hello, Is it possible to create the schedule line release for scehule line automaticaly by heuristcs run with the help of release creation profile of external procurement relationship ? We can release the schedule line in product view. What is other

  • Offsetting the EAN number

    Hello Experts,            iam having the requirement where i need to extract the data from bw server using open hub destination in csv format and the data iam extracting consists of EAN number of a product  which is 13 digit number  and my requiremen

  • Kernel panic at least daily since 10.7.4 update

    Since 12th May when updated to 10.7.4 have at least one kernel panic per day sometimes four per day which means iMac i3 is useless for running a server platform. Multiple entries about this form may users is there a bug in OSX update? My recovery par