Paste from spreadsheet searchbox


Problem: Users needed to be able to copy the values in a column in a spreadsheet, paste them into a text box and search for these values without having to format the data.

For my tabular presentation in my application, I currently have a search box (Type of List Manager) that users can enter multiple values for a column and the search for them. However, they sure have to be added to the search box 1 by 1, by clicking "add" every time. OR they may stick several values at a given time, but must cross and insert a comma between each value.

Users want to be able to simply copy the values of our spreadsheet and paste instead of insterting them one by one.

Y at - it a way to allow users to paste the information into a text box and when "search" is clicked, it looks for line-by-line? (as shown below)

1

2

3

4

5

I think something in the sense of a text box to stick in, but I'm not sure of the code to search line by line without going through the user insert commas after each of them, or the code to establish links with the search button / tabular report.

Steven

Demo App

Take a look at this example page:

https://Apex.Oracle.com/pls/Apex/f?p=70399:14

name/password: demo/demo

The text box limits the search in the table EMP ENAME

So, if you copy paste:

SCOTT

TURNER

In the text box and click "REFRESH", you will get only the lines for SCOTT and TURNER.

If you he erase and click "REFRESH", you will get back all the data.

If this is what you want, the details are below.

If not, create your own account on http://apex.oracle.com/ with example layout and then describe in detail.

(please create a "developer" account so you don't have to give your email address to all the spam-bots that read this forum)

Details of implementation

The SQL statement you posted is the one you use for the report.

However, you need to make a few minor changes to it.

  • Change the bind variables to match the name of your text box item (for example: txt-->: P14_SEARCH_INPUT)
  • a slight modification in the ' select * data "to delete the"carriage return"character of the entry.  (that is, replace (token, Chr (13), "))
  • added a ' OR: P14_SEARCH_INPUT IS NULL "to the WHERE clause - this causes the WHERE clause as the equivalent of ' WHERE 1 = 1" when the text box is empty.
  • (oh... almost forgot) I added an upper() function to search "case insensitive".  If you're dealing with numbers, you to_number() function.

The actual SQL statement, that I used for the report in the demo application is:

with data
  as
  (
  select    trim( substr (txt,
  instr (txt, chr(10), 1, level  ) + 1,
  instr (txt, chr(10), 1, level+1)
  - instr (txt, chr(10), 1, level) -1 ) )
  as token
  from (select chr(10)||:P14_SEARCH_INPUT||chr(10) txt
  from dual)
  connect by level <=
  length(:P14_SEARCH_INPUT)-length(replace(:P14_SEARCH_INPUT,chr(10),''))+1
  )
  select *
  from emp
  where ename in (select upper( replace( token, chr(13), '') ) from data)
     or :P14_SEARCH_INPUT is null

MK

Tags: Database

Similar Questions

  • Control that supports copy - paste from Excel?

    Hello!

    Is there a control that supports the cell simple copy - paste from Excel?  I make a program and a large amount of data I can imagine my user copy - paste from Excel spreadsheets.

    The tables do not work and the Table controls do not work...

    I found an ActiveX control called "Microsoft Office Spreadsheet 11.0."  It works, but I don't like the idea of my code to be subordinate to a particular version of Office being installed.

    Any help is appreciated!

    -nic

    Hello

    You can use a node called App.Clipboard Read to get the data to the format delimited by tabs. You can then manipulate these string data in your table or a table.

    see you soon

    David

  • HP 15A 103tx: deleted unconsciously thermal paste from surface of cpu and gpu.

    Hello
    Last Sunday I accidentally poured alcohol on my laptop I went and cleaned my laptop. While cleaning I have unconsciously remove thermal paste from surface of cpu and gpu and now my laptop shows lines and points as a TV screen when it is a bad sign. I went to a local store of den the guys checked my laptop and the screen is fine, but something's wrong with the video card. I googled and just to know that I removed the thermal paste that must have been stuck back after cleaning.
    Please help what should I do now?
    After starting the laptop starts "auto den, but nothing happens then."
    Help, please.

    The guarantee has disappeared while they charge you for it and fat. Of course, you know how to get there because you did once before.

    Use things like:

    http://www.Amazon.com/Arctic-Silver-high-density-polysynthetic-compound/DP/B000OGX5AM/ref=sr_1_1?ie=UTF8&QID=1454709376&SR=8-1&keywords=Arctic+Silver

    Apply it on the heart of processor and the flat surface of any piece that comes in contact with a metal part of the radiator, not the parts affecting flexible. Apply a point the size of a BB in a gun to air. You can send it with a spatula as thin as possible plastic until it covers. A little goes a long way, as long as get you coverage.

    If it's 'the Answer' please click on 'Accept as Solution' to help others find it.

  • Computer died. Past from Windows XP to Vista. Lost Outlook Express mail folders. Not in Windows Mail. (Got 3 months of e-mail entering the transfer.) I can't the old Outlook Express files?

    This is my first posting. Don't know how much has appeared in the "title". Computer died. Past from Windows XP to Vista. Lost Outlook Express mail folders. Not in Windows Mail. (Got 3 months of e-mail entering the transfer.) I can't the old Outlook Express files?

    Have I lost the files of Outlook Express completely or is there a way that I can import them in the same way that e-mail came? My old computer died (power source grilled or something like that). I still have it, but no way to turn it on.

    If you can access the old hard drive PC you can get the data of Outlook Express store.  See this: http://www.oehelp.com/backup.aspx or this: http://www.insideoe.com/backup/ Brian Tillman [MVP-Outlook]

  • I'm trying to reinstall CS2 on an XP that has never been installed. The download works fine, but will not accept my serial number to activate. I copy and paste from my account to ensure accuracy. Continue to receive the serial number incorrect error. What

    I'm trying to reinstall CS2 on an XP that has never been installed. The download works fine, but will not accept my serial number to activate. I copy and paste from my account to ensure accuracy. Continue to receive the serial number incorrect error. What would be my next step to get this race?

    CS2 (or earlier version) activation server has disappeared, then read below

    You MUST use the special number on the page, not your original serial number

    l http://helpx.adobe.com/x-productkb/Policy-Pricing/Creative-Suite-2-activation-end-Life.htm

  • Why can't I paste from Illustrator directly into Edge 2014?

    I tried to copy and paste from Illustrator (Mac CS5.1) directly on the edge, but without success. The version of Illustrator I use is a problem?

    Hi, Illustrator CS6 and below is not taken in charge of Clipboard for SVG. The Clipboard support SVG has been added in Illustrator only in the version of Illustrator CC. The function copy / paste has been added in version Edge animate CC 2014.

    • For all non-text content vector: you can copy the work of Ilustrator CC and superior and stick to the CC 2014 (June release) edge.
    • To have the text of content: you can copy the text from Illustrator CC 2014 work (June release) and stick to the CC 2014 (June release) edge.

    Hope this helps

    -Reynaud

  • Copy/paste from Microsoft outlook crashes CS5?

    Note: This is not a new error, this happened for several months, but did not initially. I don't know when the change came, but since the addition of cloud, it seems to happen more often.

    When copying and pasting the text from Microsoft Office Outlook 2007, if she is not pasted into an existing text box, Illustrator crashes everytime.

    When I copy and paste images from Microsoft Outlook 2007, Illustrator blocking 90% of the time, except when the program is first opened its doors after crashing.

    The current solution in screenshots and paste from tool cutting and trying to always make sure that there is an available text box, but it is frustrating to lose work when does not save a copy/paste in the program and the last thing on the Clipboard is from Outlook.

    No one knows why this happens? It is only from Outlook, if I copy and paste from any online source, Word, excel is no problem.

    Is there anything overwhelming in the wer error log?

    Application name: Illustrator.exe

    Application version: 15.1.0.39

    Application timestamp: 4d76c9e3

    Fault Module name: StackHash_e8ad

    Fault Module Version: 0.0.0.0

    Fault Module Timestamp: 00000000

    Exception code: c0000005

    Exception offset: 00000001

    DynamicSig [1]. Name = OS Version

    DynamicSig [1]. Value=6.1.7601.2.1.0.256.48

    DynamicSig [2]. Name = locale ID

    DynamicSig [2]. Value = 1033

    DynamicSig [22]. Name = additional Information 1

    DynamicSig [22]. Value = e8ad

    DynamicSig [23]. Name = additional Information 2

    DynamicSig [23]. Value = e8adce1c2b9e7be834b4063ac3c53863

    DynamicSig [24]. Name = additional Information 3

    DynamicSig [24]. Value = e8ad

    DynamicSig [25]. Name = additional Information 4

    DynamicSig [25]. Value = e8adce1c2b9e7be834b4063ac3c53863

    UI [2] = c: Program Files files (x 86) \Adobe\Adobe Illustrator CS5.1\Support Files\Contents\Windows\Illustrator.exe

    UI [3] = Adobe Illustrator CS5.1 has stopped working

    Thank you!

    I can't imagine (the reasons of) a workflow where you are systematically copy/paste text from Outlook Illustrator. Paste text directly from a program potentially applies to any amount of markup hidden is misguided and that includes all of Microsoft Office. When it works, you're just lucky, I think. Is not the answer you want, but for what it's worth, I never would consider even copy/paste from any desktop application in any Adobe application without an intermediate step to stick to and copied-from a text editor.

  • Problem copying and pasting from a Web site

    Hi, I'm under InDesign CS6 on Win 7 64 bit. < browser: Chrome 31 >

    I usually need to copy the elements of a Web site and keep them or print them out later, but in any case, my problem is that I need to copy what I have to get stuck as it is in InDesign with all fonts and styles of title intact. In addition, the images are not glued at all when there are two a mix of text and images on a Web site that gets the text pasted not the image, the image should be copied separately.

    Help, please...

    If you have MS Office installed on your system, you can copy the web page and then paste into MS (make sure you're selected Paste from other programs: Keep Source Formatting (by default) on the Advance of the Word Options tab.)

    What place the word document in indesign, select The show Import Options, MS word import options check to preserve Styles and formatting of the text and inserted graphics tales & Import.

  • As Illustrator vector pen tool or allows copy and paste from Adobe Illustrator.

    In Muse design tools are very, very limited (can't even do the triangles).

    Adding that a pen tool would allow the curved lines and be vector would speed up load time vs png or JPEG.

    Please, please, please add a vector as Illustrator pen tool or allows copy and paste from Adobe Illustrator (vector lines keeping intact).

    Yes... I know it's possible, but what I would like is the ability to simply copy and paste a curvy line (as say a wave vector) directly from Illustrator in Muse and keep a path editable vector with attributes like thinknesses different line and maybe even anchor that can still be moved.

    Once the site is finished and designed, it must then only need to be transformed and optimized raster image/s (png or jpeg) to export (depending on the output (computer or Tablet). Apple's IWeb, used to have something like years ago, so I know it isn't an impossible coding exercise.

    In addition, Flash (UGH) use flash and the most recent Adobe Edge animate not vector capabilities?

  • Black out in picture (Metafile, Word) pasted from Excel

    Hello

    All the images in the PDF result black rectangles. The original document is the word, and pictures are pasted from Excel to Word like photo (Windows or Enhanced Metafile). Word and Excel are 2007 and Acrobat 9Pro. All I know how to get the photos directly in the PDF?

    Thanks in advance,
    Herman

    I'm guessing here.

    Do not copy and paste; I think that the path to the source image is disappearing.

    In Word, you can insert the picture in the menu.

  • Paste from Microsoft Word into Adobe Illustrator... problem

    Hello gang, I am a professional Letterer drawn and I recently decided to upgrade using TextEdit to use Microsoft Word for all of my copy paste script that I have to do.

    In TextEdit, when I copy a page from a comic script it will be then paste into Adobe Illustrator beautifully. Retains formatting very well and line breaks (can't remember makes bold or in italics, but good). However, when I paste from the Word version of the same script, all line breaks disapear, leaving me with a big block of text, making it difficult for me to easily find the dialogue used in the page.

    Does anyone have a solution for this? Is this a known problem with Word? I can't find anything on the net.

    I'm using Word 11 for Mac version 14.2.1 I think it's and Adobe Illustrator CS3 for Mac.

    Under Snow Leopard on a MacBook Pro for what it is worth. 10.6.8 verion

    Thank you

    --J

    When I tried to place a 12-page Word doc in Illustrator CS5, similarly said John_Danek, I could see a small sign on the bottom right of the text box. If you double-click this text box, you can see page 2 of the doc. Similarly, you can view all the pages of your Word document in Illie.

    OR

    Register your content in a PDF and then place the PDF in Illustrtaor. This will help you retain formatting as well as allows you to select the page numbers in your document that you want to place.

  • -Pasting from the Clipboard

    Let me preface this by saying I installed Snow Leopard, but I can't honestly remember if this problem started before or after the installation. I have not had any problems to do this before.

    My problem seems to stick my Clipboard from a source outside of Acrobat 9.1.3. I change the work of other artists done in Illustrator and introduced to me in Acrobat. I sometimes attracted an example of work in Illustrator, copy (usually using command/shift/4 then control/click-drag) to the Clipboard, then just order a v in Acrobat and all goes well. But lately, the work will not stick. What sticks is the text that was before the Clipboard of the work.

    I tried to use the snapshot tool with the same results. I can paste the Clipboard work in Illustrator very well - even MSWord, but not Acrobat. I tried copying and pasting from Acrobat, Acrobat and it won't work. I can copy of Acrobat, Illustrator successfully. Just not in Acrobat.

    With success, I can't copy / paste of text and lines and points and arrows in the markup menu in Acrobat. At I have accidentally trips a switch, that I'm not aware? Or is it a thing of Snow Leopard?

    My (not the best) solution is to save the Illustrator any example in PDF format page, then slide in after the page I am annotating in Acrobat. It works a little, but clumsy. As I said, everything was fine until recently. It has always worked fine before.

    Suggestions?

    No problem. I inherited this very particular character of my father. We might as well say or write something innocent for us and it means go, and he came to another sounding like they were insulting.

    It happens to the best of us.

    (Please note the information is given by an experienced user of Acrobat.) I'm not an Adobe employee).

  • creating a list of copy and pasted from Notepad text...

    Hi, I am trying to create a list (with the delimiter set for space)... but it seems that when the text that I work with (cut and pasted from Notepad)... it seems that ColdFusion is not recognize as legitimate spaces spaces... probably control characters or line of brakes etc...

    How could set the delimiters to look for these things?

    For example, I try to import a cut and pasted list of notebook that looks like this...

    [email protected]
    [email protected]
    [email protected]
    [email protected]
    [email protected]

    But yet when I do a listlen I get a result of 1 with defined separator on «»

    One thing you could do is a REREPLACE who zapped yields before the implementation of your list. For example, for the variable "email"...

    #REReplace ('#EMails #',' #chr (13) #',', ',' ALL') #.

    replace line breaks - Chr (13) - by commas. You then have to zap the trailing comma. The whole thing would look like the code below. Not the most elegant way to do it, but it should work. :-)

  • Bug? Quote simple copy and paste from MS Word

    I don't know if this is a bug or not. Whenever I have a copy of MS Word with single quotes (for example, it is just a 'test') and put it inside an af:inputText field, save the value in a Java bean and then retrieve it for editing, single quotes become a reversed question mark (i.e., it's just a ¿test¿) this is only the case every time I have copy the text from MS Word. Copy from Notepad or Wordpad, but also enter manually the text not produce the bug said.

    Does anyone have an idea about this problem?

    Thank you.

    -rolly

    ... and no, I don'think it's a bug because you are facing a character conversion, which for example also happens when copying and pasting from Word to Powerpoint

    Frank

  • Cell that contains the formula paste between spreadsheets

    How do I paste the value of a cell that contains the result of a spreadsheet formula has, in a worksheet cell B and still have the operation of the formula? OS 10.11.14, numbers 3.6.1.

    Hi dad,

    It depends on what you mean by "still have the operation of the formula."

    If simply paste you it into a new table in another document, the formula will be stuck more or less intact, but it will not reference all the cells on the original table. If he refers only the cells on the table where he came from, he can refer to these same cells or cells in the same position relative to the new location on the table to which it is glued. You will have probably the best success with her work on the new table, if you copy and then paste the formula itself, rather than the containing cell.

    Repeat what I have not quite clear in the first line: the numbers documents cannot reference cells in other documents of numbers.

    Kind regards

    Barry

Maybe you are looking for