How to make a report based on a search box containg IDs for multiple lines

Hi all

I use APEX to create a database application. My users want to Search a table by submitting multiple IDS in a search box. They want to identify the row ID for all of the lines they want to search in a text entry field, and after clicking on the Submit botton, all lines should be copied. An idea to make it with APEX. I appreciate your help.

Guang

So what you have are two questions: string formatting and variable substitution.

#1. Formatting of search string. I strongly advise to make mandatory the use of the standard comma as separator between search items. This will help them to translate directly into in clause of an SQL statement.

#2. Substitution of variables. Assuming you are using a text box as: PXX_SEARCH in your query, you should be able to make a direct substitution like

Select the ID of the TABLEX where ID IN (: PXX_SEARCH);

Of course, it is very simple and provides no error handling, but you'll have to work that in when you process the string. I would recommend an after submit - by validation of processes to manage it.

Tags: Database

Similar Questions

  • How to create a report based on the item selected from the list of selection?

    Hello

    I created a tables_LOV based on:

    Select table_name table_name user_tab_cols r, d

    where column_name like '% _type % '.

    Then I created a ListOfTables page element, display in a selection list and pointing to tables_LOV.

    I run the page, and I can choose the table I want in the drop-down list.

    How to create a report based on the selected element? (ex: select * from selected_table)

    Thanks in advance

    Salah

    Hi Salah,

    Allright, take a look at this page: http://apex.oracle.com/pls/apex/f?p=vincentdeelen:collection_report

    I think that simulates what you are trying to accomplish. I've implemented the simplest method I could think of.

    The report is based on a collection of apex. If you are not familiar with this, you should study the documentation: APEX_COLLECTION

    To recreate my example, you should:

    (1) create a report (interactive) on your collection

    SELECT *
       FROM APEX_collections
     WHERE collection_name = 'MY_COLLECTION'
    

    (2) create a selection list page_item for the tables that you want to display (in my case, this is called "P38_TABLES")

    (3) create a dynamic action that triggers on the evolution of your selection list page_item. Dynamic action must be a parade of PL/SQL procedure the following code:

    declare
      l_query varchar2(4000);
    begin
      l_query := 'select * from '||:P38_TABLES;
      if apex_collection.collection_exists
            ( p_collection_name => 'MY_COLLECTION' )
      then
        apex_collection.delete_collection
          ( p_collection_name => 'MY_COLLECTION' );
      end if;
    
      apex_collection.create_collection_from_query
        ( p_collection_name => 'MY_COLLECTION'
        , p_query           => l_query
        );
    end;
    

    Make sure that you add your page_item 'Page to send items' section.

    (4) add a real extra action that makes an update of the report area.

    Here are two photos describing the da:

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA1.PNG

    http://www.vincentdeelen.com/images/OTN/OTN_COLLECTION_REPORT_DA2.PNG

    Good luck and greetings,

    Vincent

    http://vincentdeelen.blogspot.com

  • How to make bing my computer as a search engine

    How to make bing my computer as a search engine

    Try changing your search engine. Open the Safari browser. Click the Safari menu at the top / select Preferences. In preferences, click the Search tab, select other than Bing search engine. Also, under the general tab / change the homepage.

  • How to make a video DVD of myself I use the webcam for laptop?

    How to make a video DVD of myself I use the webcam for laptop? I never did a video before, and I am a teacher who wants to put my sessions on DVD now. How and what do I do?
    Thanks in advance.

    Hi Sdashe,

    You need to browse for some third-party applications that could support the web cam video, and you can use windows media center media player to burn DVD.

    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-CD-or-DVD-in-Windows-Media-Center

    http://Windows.Microsoft.com/en-us/Windows-Vista/burn-a-CD-or-DVD-in-Windows-Media-Player

    Bindu S - Microsoft Support
    Visit our Microsoft answers feedback Forum and let us know what you think

  • How to make the color of the sky, exactly the same thing in multiple images?

    How to make the color of the sky, exactly the same thing in multiple images?

    Bengt Nyman wrote:

    I'm not trying to replace the sky. I want to talk to a group of photos BIF where the percentages of red, green and blue in the sky varies from a few percent, but enough to disrupt continuity within the group. I like t would be able to use the percentages of color to one of the pictures and replicated in others.

    Because the brightness of the sky probably varies from image to image using percentages RGB will not work. What you can use are the values of a and b the laboratory values . Right-click in the inside of the develop module histogram and tick 'Show Lab Color values.' You can ignore the value of L, which is the value of Luminance or brightness. Adjust the blue sky s a b valueusing the Temp WB and sliders dyed until they are the same as your first reference image file. The value determines the color red/green balance if you use the Tint slider to correct the value. The b value determines the color yellow/blue balance if you use the slider Temp to correct its value.

    Remember that setting the base Panel WB with 'fixed' values of b for photos taken under lighting conditions different sky will be the color of the other objects in the image look incorrect (birds, trees, buildings, etc.). In this case, you will need to use the brush setting to paint in the region of the sky and then use its temperature sliders and tinted to change just the color of the sky.

    To be honest I don't know why you feel it's necessary. Maybe you can post two screenshots: 1) with the sky that they way you want to and 2) an image that you want to resolve to match.

  • How to change the report based on users?

    Hi all

    I've created a report based on a table. Based on the users (Administrator, user), I want to change my appearance of report. But users are not available in this table. Users are not available in this area table.Common available.

    Req: If I enter as a user I want to not see that my documents.

    If I enter an admin I want to see all users folders.

    How to solve this problem.

    Please explain in detail.

    Thank you and best regards,

    Rambeau

    Hai raghu, pls mark closed this issue.its as a response!

  • How to create a report based on the selection of a node of a tree

    Hello

    I am new to Oracle Apex and tried to build a tree and also an interactive report based on column empno from emp table.

    I created a tree based on the emp table. Now, I want to see the records in the employee selected in the tree.

    This is the query of the tree:

    Select case when connect_by_isleaf = 1 then 0
    When level = 1 then 1
    of another-1
    end the status,
    level,
    'ENAME' as the title,
    NULL as an icon,
    'EMPNO' as value,
    NULL as ToolTip,
    NULL as link
    of ' #OWNER # '. " EMP.
    Start by "MGR" is nothing
    connect prior "EMPNO" = "MGR".
    siblings arrested by 'ENAME '.

    Can someone tell me step by step how to go from here?

    I tried to follow the thread Re: question of tree but could not understand a lot of it.

    The approach to reload the page and display the report is fairly simple.

  • You start by creating a new page element that will be used to store the selected node ID, for example. P100_SELECTED_NODE (you can do atext element and change hidden once everything works as expected)
  • Change the query of the tree and the link column in the SQL of tree definition to a link to the same
    for example if your page is 100, you'd do the tree node a link to the same page but the value of the P100SELECTED_NODE with id_ of the node selected
    This is done here
    {message: id = 4410987}
    In this case, it would be

    ' f ? p = & APP_ID.: 100 :'|| : APP_SESSION |': P100_SELECTED_NODE :'|| EMPNO as link

    Now when you click on a link to tree node, it would be back to the same page, but set the P100_SELECTED_NODE with the empno of the clicked node.

  • All that's left to do, change your report so that it refers to the new point inorder to filter records for this employee empno i.e

    SELECT ...
      ..
    WHERE empno= :P100_SELECTED_NODE
    
  • How to make an album based on places?

    How would a photo album based on the specific locations of metatag of the photo?

    I miss how iPhoto would let you sort by location, as well as to customize the name of the location.

    Search for photos by typing the name of the location in the field of research, exactly as it is written in the title of the moment.

    Then select all the photos that were found and enter ⌘N to create a new album in the photos. Name of the album as you would call the location.

  • How to change the default text in the search box ("Search")?

    Hello

    I would like that the text that appears by default in my search box to say "How do I...?" instead of the default '- search -'.  I think that this can be done by changing some text tagged in the HTML code the background/context/that aid system for either, but I don't know where to find that. How I would get this text to change?

    Thank you!

    Tim Huddleston

    The idol of Millions,

    Friend to None

    (Except the person who answers my question)

    Happy that you guessed it sorted!

    For anyone who finds this thread on the road, here's another way to do it.

    RoboHelp (2015 Release) click the project tab in the Ribbon, and then click the project settings. (you can also easily open the project settings by pressing Ctrl + Shift +?)

    This should open the project settings dialog box.

    Make sure the general tab is to the point and click on the button "Advanced".

    This should open the advanced settings of the localization dialog box.

    Scroll down to the section titled: [ResponsiveHelp] and find the setting that reads: search = search.

    Click on this line to give it focus, then click Edit.

    Change the line as follows search = (Type what you want to see here)

    Click OK Click OK to dismiss the dialog boxes, and then generate the output again.

    See you soon... Rick

  • How to make a report of two cubes

    Hi, guys.

    I am creating a report using data from two different cubes, but it is a problem. what I want to do, it is like this:
    A cube, I get the total number of the machine for every type of machine:
    Type of machine. Total machine
    Type a 10000
    15000 type B
    Type C 40000
    And Cube b, I want to get the amount of the machine that has an error, as the group by type of machine:
    Type of machine. Amount of machine breakdown
    Type a 50
    Type B 15
    Type C 100

    So, what can I do to create a report as below:
    Type of machine. Broken amount machine | Broken machine ratio (%)
    Type a 50 0.5
    150 1 B type
    Type C 100 0.25

    Thank you very much

    Hello

    Add the PivotTable view
    Adding a type on the lines
    Add the cube on columns
    on cube, click menu and add 'items calculated again.
    then, use you "b cube" / 'cube one' * 100 (or what formula you need)...

    change the captions as he feet of you and he did...

    Concerning
    Nicolae

  • How to make the address bar behaving like search bar? I mean SMART search, as it implemented in Chrome (very comfortable for users).

    For example when I type a word in the search bar, it begins to give search engine suggestions, so don't HAVE TO TYPE THE ENTIRE SEARCH PHRASE!
    The same behavior is in the address bar of Google Chrome. So in Chrome address bar and search bar are combined into one that is very comfortable for users.
    In Firefox, you have here two different bars, which makes no sense. I used Chrome before and usually by type of force of habit in the address bar to search for something and have to type the whole expression there to begin the search. It is very stupid and using the address bar to the fruitless search.
    Screenshots attached.
    So, do we not have any add-on or option to merge or combine the bars or to implement smart search in the address bar?
    Thank you.

    You can look at extensions such as these:

  • How to make the improved version of my Quick cam-9, 5 for a new computer lenoova?

    I just bought a Lenova with Windows 7 computer.    How can I get the improved version of my Quick cam-9, 5?

    Drivers are provided by the manufacturer of the hardware (Logitech).  I don't know if 9.5 was the version of the software you used previously or the model of the webcam so I can not able to provide more specific help that to give you the link to the site to download Logitech webcam drivers: http://www.logitech.com/en-us/support/webcams

  • How to make the virtual machine starts automatically after power is declining for all ESX host?

    We meet just power down and lost electricity ESX host.

    When we start the ESX host, we can on each individual virtual machine.

    Y at - it a setting that we can put in place for these VMs critics may start se?

    Your opinion is requested.

    Thanks for your advice. He agrees with your saying that the start / stop sems to be buggy.

    It's only disable it every time that you enable VMware HA.

    But it works (if enabled) and may be useful to define how the system starts up.

    André

  • How to make a dvd with 3 clips separated with a chapter for each

    I have 3 separate clips - 3 or 4 minutes and want to make a dvd with 3 chapters from the menu. What I tried was to bring each clip as an active timeline and then bind the menu Chapter 1 to scenario 1, then 2 ml to scenario 2, ch 3 to scenario 3,-when I tested any of the chapters would be to highlight or work.

    Should I just put all 3 clips back on the chronology of the PR and export as 1 video or is there a better way?

    Don't think that chapter, think playlist.  Create a playlist.  Add videos (delay) in order that your choice.  Take action at the end of the playlist.  The 'play' button a link to the playlist.  If you want the timelines to also play alone, you can make buttons for each timeline.

    .

  • How can I stop Firefox autocompleting results in search boxes

    I am currently using Firefox v26.0 and can not turn off AutoComplete in the Google query box. I found the process once before, but I'm looking for 3 days and can't seem to now, anyone... Please, I beg you!

    Thanks for the reply but which may change the url autocomplete, but does not autocompleting search Quiries. I just found the solution of the homepage that will do what I need.

    If you use Google as your home page enter " https://www.google.com/webhp?complete=0 " without the quotes

Maybe you are looking for

  • I can share my library for the money

    I was wondering if I can share my library for pennies? songs that I bought and my own collection as well

  • Error code 80070006. whatever it is?

    Can someone help please, I have vista home edition installed, and that's all just allow me to install service pack 2, comes up with the error code 80070006.What is and how do I sort this problem please, to allow the service Pack2 to be installed. Tha

  • Increase the size of the font in the menu bar, the Favorites menu drop-down.

    I saw the answers online to increase the size of the font in the menu and Favorites list drop down but your recommendation also increases the font size in all the web pages, hotmail etc. I want only the menu bar is larger, the Favorites drop-down lis

  • Cisco Jabber for Windows - Added new friend

    Hello When I try to add a buddy to our internal directory, it does not work. For a short time the new boyfriend is in the buddies and then rinse... never again. In the presence of CUP Viewer, you don't see also no boyfriend. When open UPC 8.5.x then,

  • Jabra Halo 2 driver not available in Windows 7

    I tried to pair my headset Jabra Halo 2 to my PC running Windows 7. Matching ends, but Windows shows the helmet as works do not and gave the reason that no driver available. Can you let me know where I can get the correct bluetooth driver to make it