Search for multiple items in one text field

Hi all,
I am new to ApEx, I have a request from one of our users to ask if there is a way we can allow them to enter more than one search items delimited by a comma. For instance, we have a text item field for user to enter some values as emp names, when he key in like PETER,SMITH,ALLEN,WARD, once he submit the page he will see the result as:
select t.empno, t.ename, t.job, t.mgr, t.hiredate, t.sal
from scott.emp t
where t.ename in('PETER','SMITH','ALLEN','WARD')
Many thanks.
Message was edited by:
lcpx

You can create a multiselect list named P1_REPORT_SEARCH based on a List of Values (LOV) with those employee names and use this code.
select t.empno, t.ename, t.job, t.mgr, t.hiredate, t.sal
from emp t
where
(instr(':'||:P1_REPORT_SEARCH ||':',':'||ENAME||':') > 0 or :P1_REPORT_SEARCH is null) /**for multiselect**/
)

Similar Messages

  • Search for a space within a text field

    Hi All
    I am trying to search for a sapce within a text field but sofar not being very successful. I have used:
    FIND search_str
               IN text_str
               MATCH COUNT  lv_mcnt
               MATCH OFFSET lv_moff.
    where search_str = TYPE c VALUE ' '.
    I am looking a way of searching a character within the string using ABAP (like INSTRING in other languages). If you have similiar codes - Could you please post me a copy - Thanks

    HI
    Check this..
    DATA string7(30) TYPE c VALUE 'This is a little sentence.'.
    WRITE: / 'Searched', 'SY-SUBRC', 'SY-FDPOS'.
    ULINE /1(26).
    SEARCH string7 FOR 'X'.
    WRITE: / 'X', sy-subrc UNDER 'SY-SUBRC',
                   sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR 'itt   '.
    WRITE: / 'itt   ', sy-subrc UNDER 'SY-SUBRC',
                       sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR '.e .'.
    WRITE: / '.e .', sy-subrc UNDER 'SY-SUBRC',
                      sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR '*e'.
    WRITE: / '*e ', sy-subrc UNDER 'SY-SUBRC',
                    sy-fdpos UNDER 'SY-FDPOS'.
    SEARCH string7 FOR 's*'.
    WRITE: / 's* ', sy-subrc UNDER 'SY-SUBRC',
                    sy-fdpos UNDER 'SY-FDPOS'.
    Thanks ,
    Praveen

  • Searching for numeric values in a text field / SQL Server

    Hi all,
    here's a problem that I've been trying to solve for several days: I try to select rows from an MS SQL Server via JDBC that contain a certain numeric value at a certain position in a long varchar field.
    I'm using queries like
    select * from table where substring(field_1, 37, 7) like '1011234';Those queries always return an empty ResultSet. If I use the same queries in WinSQL, I get correct results (several rows).
    The application code is working in principle; if I search for a text instead of a numeric value, for example select * from table where substring(field_1, 4, 5) like 'Paper'; , I get a complete ResultSet.
    I've tried many variations (= instead of like, search in the entire field (without substring but with like '%1011234%'), with or without ', and more), but that didn't change anything.
    It's also most probably not caused by the JDBC driver; I have tried JTDS first, and then the MS driver (newest versions) - no difference.
    One idea was that the sort order is not correct, tried some COLLATE settings, but that didn't help so far. In this context I'd like to know how to determine the collation sequence of a certain column.
    Another thing I tried was using CAST, for example SELECT * FROM table WHERE CAST(SUBSTRING(field_1, 37, 7) as bigint) = CAST('1011234' as bigint); or SELECT * FROM table WHERE CAST(SUBSTRING(field_1, 37, 7) as bigint) = CAST(1011234 as bigint);, but that didn't help either.
    Some facts:
    Server: Microsoft SQL Server, version 09.00.2047
    Driver in WinSQL: SQLSRV32.DLL, version 03.85.1117
    JDBC-Driver:
    - JTDS, version 1.2
    - Microsoft SQL Server 2005 JDBC Driver, Version 1.2
    JVM: jre1.5.0_11
    I didn't find anything on Google, or in this forum, or other forums. I really hope someone here can help me. Thanks in advance!
    Best regards,
    Uica

    Your note suggests to me that this is a coding problem, not a JDBC or SQL problem unless you are hitting a bug in the SQL Server JDBC driver. Others may have ideas from what you have written, but I think it would be helpful to see the actual code that you are executing that does not bring back the results that you are expecting (don't forgot to use code tags to format your code correctly).
    It might also be helpful to execute a query (from within your Java code) to ensure that you are connecting to the right database, accessing the correct table and that your substring is using the correct offset. The query would look something like this (and then of course display the list of results):
    SELECT substring(field_1, 37, 7) from table

  • Search for multiple items

    Hi all,
         I have a list of around 8000 files names I would like to search for, and move to the trash.
         I have been doing this in spotlight (using "OR" to separate them) and it has been working well, but I find I can only search for about 70 at a time - i.e., I have to perform over 100 individual searches to find them all (I have them listed in a spreadsheet and I just copy and paste into the search field). OSX doesn't seem to like it if there are more search terms than this (I'm not complaining - it seems to be just how it is)
         I was wondering if there was a way (maybe in terminal?) to do the full search on all 8,000 items at the same time?
    Thanks
    Hendrix

    You can try this.
    EasyFind – Spotlight Replacement

  • Using Tags, Can i Search for Multiple Tags in One Search Folder?

    Hi forum,
    i would like to set a Search Folder and search using Tags. I would liek to use one such folder and search for everythign i haver tagged last week. How cna i search for 'TAG A' and 'TAG B' in one Search Folder?

    Hi mumbles2701,
    All you need to do is to briefly type in your tag in the search bar and in the drop down menu, you should be able to select a tag, press enter and just repeat this process for as many tags as you like
    Hope I helped!

  • 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.

  • How do I update grouping or description for multiple items?

    As the question implies, I would like to update information in the Grouping and Description fields for multiple items as a way to keep things organized. What I have discovered is that there are some quirks in the new Get Info window that were not in past implementations, which are completely inexplicable and nonsensical to me.
    For instance, when you open the Get Info window for an item that has no information in, for instance, the Grouping field, you will not see a Grouping input field, as in this screenshot. The Grouping field should be where the bottom arrow is. Notice also that the Description field is available. I will get back to that in a minute.
    If you manually double-click into the Grouping field on the main iTunes screen, you can enter the information there. Then, when you open the Get Info window, ta-dah! The field magically reappears, as in the screenshot below.
    The trouble comes when you want to edit this field for multiple tracks. If you select multiple tracks, and they do not all have the Grouping field already populated, the field does not appear. What this means is that you are forced to manually enter the information for every track! This is completely unacceptable when you need to edit information for, as in my case, 122 tracks. The following image shows the Get Info window that appears after selecting two items, one with the Grouping field manually populated, and one with no info in the Grouping field.
    Not only has the Grouping field disappeared, but the Description field, as well. Thanks, Apple, but I think I can decide for myself whether or not to populate these fields for multiple items. Let's get 'em back, huh?
    SO… does anyone know of any valid method for accomplishing this task? Without manually entering the same information in hundreds of fields? This is the future; computers are supposed to do these monotonous tasks for us, aren't they?
    Oh, please don't suggest Option-clicking to open the older, better, Get Info window, as Apple has decided that we should not have that option any longer. We apparently have to organize our music their way. Think different!

    The Add Field button was in the editors of 12.0.1 (where the new-style editors had a very "half-finished" feel)  - it is not there in 12.1.  Apple have determined which metadata fields should be available for each kind of media, with no option for the user to modify this.  In Apple's own words: "Get Info has been completely redesigned in iTunes 12 to focus your attention only on what’s necessary for the selected item."
    The only options are:
    temporarily change the media kind (Options tab) to one that includes the field you want to add values to, enter those values, and then change the media kind back again
    make the relevant fields visible in an appropriate list view and edit values there - the big limitation being that you can only do this one item at a time
    I can see - to a degree - why Apple may have made some limitations so that metadata elements are available based on their relevance to different media kinds.  However, one of the issues mentioned above seems like a bug - if a single audiobook file can have a Description tab, I see no reason at all for that not to be available for multiple items of the same kind.
    If not already done so, report these issues and dissatisfaction with the "new" metadata editors in 12.1 (and the absence of a "back door" for the old-style ones) using Apple's iTunes feedback page.

  • Is it possible to combine multiple Pur Reqs for multiple materials to one vendor into one PO through MD07?

    We have material planners who use MD07 (traffic signal screen) Stock/Requirements List, Collective Access tab to review material requirements by MRP Controller.  Once the list is created, they select individual materials and review them in MD04.  In a lot of cases, Purchase Reqs (PRs) are reviewed and adopted into POs individually for each material.  Sometimes they will combine multiple PRs for one material into one PO.  This is a good practice.  However, from what I have found, it is not possible to combine multiple PRs for multiple materials into one PO.  If this was done it would dramatically reduce the number of POs that we are issuing to suppliers.  Problem statement:  We issue too many POs which causes additional influxes down the line (receiving dock/goods receipts processing, receiving issues, invoices, invoice issues, etc.).  Does anyone know of a way to address this problem without a major overhaul in approach or customization of the system?  Thank you in advance!   

    Hello Michael
    As far as I know, this is not possible directly from MD07, only from the MM transactions.
    The following thread suggests the following procedure to convert several PRs into one PO:
    Conversion of multiple PR into single P.O
    Drag and drop the first PR from the item overview to the shopping card on top of ME21N,
    then open the PO detail delivery schedule tab and drag  and drop all other PR to the shopping card shown  in the schedule tab
    You can use the same procedure, calling the order conversion from MD07 and then drag and drop another PRs into this PO.
    BR
    Caetano

  • 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

  • MRP - Single Purchase requisition for multiple Items

    Hi
    We have recently introduced MRP module in SAP .In some specific scaeanrios , we want to create a single Purchase Requisition for multiple items .Standard SAP generate different Purchase requisition for each item
    Is there any way out

    Sandeep,
    This topic has been covered numerous times in this forum and in the MM forum.  You evidently have not used the search feature.  There are thousands of posts in these forums, and the search function will be very helpful for you in future questions.
    To answer your question, No, nothing is available to make standard SAP MRP create Purchase requisitions for multiple items.
    Most companies address this issue during the conversion of Purchase Requisitions to Purchase orders.  During this process, you can add many items to a single purchase order.
    Rgds,
    DB49

  • Get Info..for multiple items where's THaT preference ?

    The 1st few times I'd try to Get Info for multiple items , I'd get one window opened, and could make , say , 12 .aiffs open w/ iTunes rather then QuickTime. [ and even THaT seemed to change at the point of the latest iTunes/QTime upgrades...now QTime Pro is in charge ! ]
    My point is : I like to get that one window for multiples, which used to come randomly, and not 12 seperate windows. Where DoeS one control that ?
    -=TIA=-
    ~~~=Dave

    Actually it's a function not a bug.... If you do GetInfo on more than 10 items it opens a "group" pane, otherwise it opens individual windows. Unless you want to count items the reliable way is to use Show Inspector instead (add the option key). I find Inspector more useful anyway, so changed the Keyboard shortcut to make Inspector the default of Command-I.
    Francine
    Francine
    Schwieder

  • Report error when using combo box and one text field is empty

    I'm building an interactive pdf in adobe pro 9. My problem is the following: I have one text field where you can enter a numeric code and that is used to populate another text field when I choose an option on one combo box.For example: suppose I write the code 123 in the text field "A" and that the combo box has two options ("data" and "-"). When I select "-", another text field "B" is empty, while when I select "data" i populate the text field "B" using the code entered "A" with the text "data_123". In order to do this I use the standard javascript code in the Format>Custom tab of the combo-box.
    My questions are:
    - how can I prevent the pdf to proceed selecting an option in the combo box when the field "A" is empty?
    - how can I update the field "B" every time that I change the text in "A"? I found that the text is "B" is updated only when I press the selection in the combo box.

    You can set the combo box to read-only in the Validate event of the A field:
    // Validate script for text field
    getField("combo1").readonly = !event.value;
    To update the value of B when A changes, you can expand the script above to something like:
    // Validate script for text field
    var f1 = getField("combo1");
    var f2 = getField("B");
    // If there is an entry in the A field...
    if (event.value) {
        f1.readonly = false;  // Make sure the combo box is activated
        f2.value = f1.value === "-" ? "" : "fa.value + event.value;  // Update the value of field B
    } else {
        f1.readonly = true;  // Deactivate the combo box
        f2.value = f2.defaultValue;  // Reset field B
    You might also want to reset the combo box somewhere in there, but it's not clear to me when you would want to do that.

  • Form Size with one text field 442kb

    I started work on a new version of a three page dynamic form because the old version was 1,537kb.
         After setting up my new blank master pages (3), I placed a text field on the blank "cover page". The from size went from 12kb to 442kb with one text field. How can one small text field with no caption increase the file size so tremondously. That's a factor of 36! Any suggestions? I am using:
    Microsoft Windows 7
    Adobe Acrobat Pro X 10.1.6
    Livecycle Designer ES2 Version 9.0
    FYI: I have read that there exists some tools out there to inspect your pdf/xml and see what objects are increasing your file size. This would be very helpful, however I work for a company that gives very little freedom in downloading unapproved software. So unless there is an Adobe way to inspect for an object and its impact on size, I am in a tough situation. Thank you for your time.
    https://workspaces.acrobat.com/?d=H06NjDMAiTS79khuQCoKKw

    Remove the embed fonts feature to reduce your file size:
    File > Form Properties > Save Options
    Old version file size went from 1,537kb down to 132kb

  • 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.

  • Deleting multiple items in one click

    Hi Guys
    My iTunes has been reset and has for some reason added all the songs on my computer twice = about 120GB when it should only be 60GB.
    I'm sure there used to be a way to delete multiple items in one click but the only way I can seem to do it is by doing it individually after click view duplicates, this clearly isn't practical for over 5500 songs.
    Thanks for the help!

    Thanks for the answer.
    If I understand it correct, If I have an invoice of 10+ items, there is no possibility to delete 5 items for example with one click?
    I have to the delete the 5 items one by one or delete the whole invoice and start again?
    Thanks.

Maybe you are looking for

  • What's the authorization to run function CSAP_MAT_BOM_OPEN

    let's say, i wrote a report to change the structure of a BOM, using function CSAP_MAT_BOM_OPEN to open the bom, followed by function CSAP_BOM_ITEM_MAINTAIN and CSAP_MAT_BOM_CLOSE to change the bom and close the bom. well, I could use this report whil

  • Dynamic fields in select statement

    Hi all,    In selection screen we are having period as select option.The values for period are 01 to 16. Based on        the values entered in selection screen for period we need to select HSLXX from FAGLFLEXT.    For example if we enter 01 to 03 in

  • Clearing in foreign currnency and local currency and F13E

    Hello, I have a GL account whose Balance in Local Currency Only (BILCO) and Open Item Management (OI) flags are set. The line items posted to this account are always in foreign currency say EUR. In the month end, we use F13E (Automatic clearing with

  • ICR Process 002 Exchange Rate

    Hi, Can somebody tell me what exchange rate is used to in ICR process 002 to display the difference? Thanks Martin

  • Error check activaton message

    When I try to add an e-book I get an "error check activation" message and the book wont add why?