Submit Query(SQL) from a text area from a form

Hi,
I have a form that has a big text area, while users can type in the SQL statement/query.
When user click on the button(say Submit). He/She should able to use the SQL query they input to query the tables.
In order to implement this, should I create a new page that will pass the value of the text area (SQL statement) and display it in that new page?
Or Is there a quick/easier way to do this?
Thanks,
Angela

Angela,
You could create a report region of type PL/SQL function returning SQL querry, and then return the value of your text area item, so you region source would be something like this:
return :PX_MY_QUERY;
When creating that report region, you'll have to use generic column names, since at design time, the query isn't known.
Regards,
Marc

Similar Messages

  • I accidentally linked my wife's phone number with mine. Now I am getting MY text messages that I send to her. It even says my texts are from her. How can I fix it?

    I accidentally linked my wife's phone number with mine. Now I am getting MY text messages that I send to her. It even says my texts are from her. How can I fix it?

    You can't "link" phone numbers but you can, and did add her email address to your iMessage send/receive list.  This often happens when you both use the same Apple ID
    Settings > Messages  > Send & Receive > you can be reached by iMessage at >
    Settings > Messages > Send and Receive > start mew conversations from ?
    You are receiving your own messages because the same email address is on both lists

  • Set a value on a  text area from a lookup table and then edit it

    I work in a form of a PO system.
    On the PO_line form, there is a Select list aginst the item table (displays Item.description and returns item.ID).
    On the PO_line, the requirement is to have a text area named PO_Line.LineItemDescription where the moment of item selection will be populated with the Item.description.
    After the selection of the Item, the user must be able to edit the PO_Line.LineItemDescription and save it.
    If the user decides to go back and edit the line, if the PO_Line.LineItemDescription is manually edited it must remain as is, otherwise it must follow any item.id changes.
    Any ideas how to implement?

    Goto the property inspector of table
    in common have rowselect atribute select it as single
    then go to the datacontrol expand your view object there is one node called operation expand operation
    drag 'delete' and drop into your page create as command button.
    run your page select one row and click the button it willbe delete from the view object
    if you want to delete it from database you shoul commit it

  • Remove HTML tags from a text area

    Hi, here is my problem:
    I have a form with a text area item; this item is “Display as Editor HTML standard”. So it is possible to enter formatted text with tags HTML. Then I save the text in a table. In the column the text maintain the HTML tags. Afterwards I can put the text in a report, and I can see the formatted text with the tags HTML interpreted.
    But I need also to use that text for other aims, (i.e. sending it in a mail) with the html tags removed.
    Is there any way to remove HTML tags from a text item?
    Regards
    Dario

    From http://asktom.oracle.com/pls/asktom/f?p=100:11:0::::P11_QUESTION_ID:769425837805
       FUNCTION str_html (line IN VARCHAR2)
          RETURN VARCHAR2
       IS
          x         VARCHAR2 (32767) := NULL;
          in_html   BOOLEAN          := FALSE;
          s         VARCHAR2 (1);
       BEGIN
          IF line IS NULL
          THEN
             RETURN line;
          END IF;
          FOR i IN 1 .. LENGTH (line)
          LOOP
             s := SUBSTR (line, i, 1);
             IF in_html
             THEN
                IF s = '>'
                THEN
                   in_html := FALSE;
                END IF;
             ELSE
                IF s = '<'
                THEN
                   in_html := TRUE;
                END IF;
             END IF;
             IF NOT in_html AND s != '>'
             THEN
                x := x || s;
             END IF;
          END LOOP;
          RETURN x;
       END str_html;There's also a reqular expression approach that I've not tried. Remove HTML Tags and parse the text out of it

  • Writing in a Text Area from a different class.

    Hi,
    I need to write some text in a Text Area which is in a class I've call GUI where I handle all the graphic stuff but I need to do it from another class which handles packets that come through a COM port.
    Is there anyway to do that?
    Thanks!

    Thank you! I'll try that but I think I might have problems with that since an instance of the Gui class was already created. I'm using the NetBeans Gui design form wich already makes the code for the Gui and this is what I have public class Gui extends javax.swing.JFrame {
        Connection connection = new Connection();
        /** Creates new form Gui */
        public Gui() {
            initComponents();
        /** This method is called from within the constructor to
         * initialize the form.
         * WARNING: Do NOT modify this code. The content of this method is
         * always regenerated by the Form Editor.
        @SuppressWarnings("unchecked")
        // <editor-fold defaultstate="collapsed" desc="Generated Code">
        private void initComponents() {
            bnConectar = new javax.swing.JButton();
            cbPuerto = new javax.swing.JComboBox();
            lblPuerto = new javax.swing.JLabel();
            jScrollPane1 = new javax.swing.JScrollPane();
            taPuerto = new javax.swing.JTextArea();
            bnPing = new javax.swing.JButton();
            jMenuBar1 = new javax.swing.JMenuBar();
            mArchivo = new javax.swing.JMenu();
            miNuevoP = new javax.swing.JMenuItem();
            miCargarP = new javax.swing.JMenuItem();
            miGuardarP = new javax.swing.JMenuItem();
            miSalir = new javax.swing.JMenuItem();
            mEdicion = new javax.swing.JMenu();
            mMonitorizacion = new javax.swing.JMenu();
            miMonON = new javax.swing.JMenuItem();
            miMonOFF = new javax.swing.JMenuItem();
            miPing = new javax.swing.JMenuItem();
            miConfig = new javax.swing.JMenuItem();
            mAyuda = new javax.swing.JMenu();
            miAcerca = new javax.swing.JMenuItem();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Monitorizaci?n");
            bnConectar.setFont(new java.awt.Font("Tahoma", 1, 11));
            bnConectar.setText("Conectar");
            bnConectar.setToolTipText("Conecta con el puerto seleccionado.");
            bnConectar.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    bnConectarActionPerformed(evt);
            cbPuerto.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
            lblPuerto.setFont(new java.awt.Font("Tahoma", 1, 14));
            lblPuerto.setText("Puerto");
            taPuerto.setColumns(20);
            taPuerto.setRows(5);
            jScrollPane1.setViewportView(taPuerto);
            bnPing.setFont(new java.awt.Font("Tahoma", 1, 11));
            bnPing.setText("Ping");
            bnPing.addActionListener(new java.awt.event.ActionListener() {
                public void actionPerformed(java.awt.event.ActionEvent evt) {
                    bnPingActionPerformed(evt);
            mArchivo.setText("Archivo");
            miNuevoP.setText("Nuevo Proyecto");
            mArchivo.add(miNuevoP);
            miCargarP.setText("Cargar Proyecto");
            mArchivo.add(miCargarP);
            miGuardarP.setText("Guardar Proyecto");
            mArchivo.add(miGuardarP);
            miSalir.setText("Salir");
            mArchivo.add(miSalir);
            jMenuBar1.add(mArchivo);
            mEdicion.setText("Edici?n");
            jMenuBar1.add(mEdicion);
            mMonitorizacion.setText("Monitorizaci?n");
            miMonON.setText("Monitorizaci?n ON");
            mMonitorizacion.add(miMonON);
            miMonOFF.setText("Monitorizaci?n OFF");
            mMonitorizacion.add(miMonOFF);
            miPing.setText("Ping");
            mMonitorizacion.add(miPing);
            miConfig.setText("Configuraci?n");
            mMonitorizacion.add(miConfig);
            jMenuBar1.add(mMonitorizacion);
            mAyuda.setText("Ayuda");
            miAcerca.setText("Acerca");
            mAyuda.add(miAcerca);
            jMenuBar1.add(mAyuda);
            setJMenuBar(jMenuBar1);
            javax.swing.GroupLayout layout = new javax.swing.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(lblPuerto)
                            .addGap(17, 17, 17)
                            .addComponent(cbPuerto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(bnPing)
                            .addComponent(bnConectar)))
                    .addGap(45, 45, 45)
                    .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, 214, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap(287, Short.MAX_VALUE))
            layout.setVerticalGroup(
                layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addContainerGap()
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                        .addGroup(layout.createSequentialGroup()
                            .addComponent(jScrollPane1, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addContainerGap())
                        .addGroup(layout.createSequentialGroup()
                            .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                .addComponent(cbPuerto, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                .addComponent(lblPuerto))
                            .addGap(18, 18, 18)
                            .addComponent(bnConectar)
                            .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 12, Short.MAX_VALUE)
                            .addComponent(bnPing)
                            .addContainerGap(172, Short.MAX_VALUE))))
            pack();
        }// </editor-fold>
        private void bnConectarActionPerformed(java.awt.event.ActionEvent evt) {                                          
            try{
               connection.connect();
            }catch (XBeeException e){
        private void bnPingActionPerformed(java.awt.event.ActionEvent evt) {                                      
            try{
               connection.ping();
            }catch (XBeeException e){
        * @param args the command line arguments
        public static void main(String args[]) throws Exception, InterruptedException {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                   new Gui().setVisible(true);
        }Would that be a problem?
    Thanks again!

  • Access text area from different video

    So here is what I have. I have a master.swf that loads
    another tester.swf into it. Below is the code for the three swf's.
    Another swf called tester2 is loaded into a higher layer of
    tester.swf. So here is how it looks and what each layer contains:
    master.swf
    loads tester.swf into layer 5
    loads tester2.swf into layer 6

    Thanks, I figured it out after trying what you told me. In
    the master.swf I needed to refer to the loadedInfo box in level 6
    and not 5.
    myLV.onLoad = function (success) {
    if (success) {
    _level6.loadedInfo.htmlText = myLV.info;
    } else {
    _level6.loadedInfo.text = "hhhhhhhng the requested
    information. Please contact the Webmaster and report your error.";
    originally _level6 was _level5. This is my myLV refers
    loadedInfo text area.

  • Error when pasting 1K of text into a text area of tabular form

    This appears to be a bug to me, put please offer suggestions if you have them....
    Using apex with XE, I have created a table with two varchar2(4000) columns in them. The user will paste large blocks of text into one or both of them (e.g paste text copied from e-mail).
    I created a tabular form and set the two fileds to display as "text area". Insert and/or update works fine unless I paste more than about 1 to 1.5 kbytes of text into one of these fileds, in which case I get a page not found error with the following URL:
    http://127.0.0.1:8080/apex/wwv_flow.accept
    After the error page displays, I can hit the back button and then remove just enough text to get it to under the 1 to 1.5 kbytes and then either insert or update works fine.
    One more bit of info. If I create a single row form then it works fine, it is only the multi-row tabular form that seems to have this issue.

    I don't think the character set is the problem. I used a string of numbers 0123456789 and just copied and pasted it repeatedly to build up the text. The database character set is WE8MSWIN1252.
    Regarding the apache log. I have to admit that I don't even know if I'm running apache. I am using a newly installed Oracle XE on a laptop in order to get some experience with application express. This app is the first one I've done. If someone will direct me to the log then I'll be glad to check it and post the relevent contents.
    I signed up for an apex workspace and intend to see if I can recreate the error from there so I can see if the problem is just in the free version of apex that comes with the Oracle Express Edition for windows database.

  • Seeking simple example pl/sql to create text file from table data

    hello,
    I am hoping someone can provide very simple example of creating a file on my local harddrive using a pl/sql program. The basic steps are as follows:
    First, I store some text in a varchar2 variable like this:
    1. select sometext into otextvar from mytable where recordid = 1;
    Second, I want this text to become a file in my data directory:
    2. c:\data\sometext.txt
    The second step is where I need help.
    Any suggestions are greatly appreciated.

    Use this function
    It will create for you a file in your /home/oracle directory with sysdate name and will insert all table names in it
    CREATE OR REPLACE PROCEDURE my_proc AS
    CURSOR cursor1 IS
    SELECT table_name from all_tables;
    CURSOR cursor2 IS
    SELECT sysdate from dual;
    rec1 cursor1%ROWTYPE;
    rec2 cursor2%ROWTYPE;
    created_file_name VARCHAR2(100);
    file_name utl_file.file_type;
    BEGIN
    OPEN cursor2;
    LOOP
    FETCH cursor2 INTO rec2;
    EXIT WHEN cursor2%NOTFOUND;
    created_file_name:=rec2.sysdate;
    file_name := utl_file.fopen('/home/oracle', created_file_name,'W');
    OPEN cursor1;
    LOOP
    FETCH cursor1 INTO rec1;
    EXIT WHEN cursor1%NOTFOUND;
    utl_file.putf(file_name, '%s\n',rec1.TABLE_NAME);
    END LOOP;
    utl_file.fclose(file_name);
    END LOOP;
    END my_proc;
    SQL>exec my_proc;

  • Getting the text from a text area

    I have a application and I wish to take in text typed in from the user into a textArea and then send it into a method however I need to be able to send this information to a static method which accesses a HashTable and then searches for the text inputted by the user word by word. However the getText() wont allow me to access it in a static method and Im not sure of a way around this.
    I know I propably haven't explained this very well but any help you can provide is appreciated

    OK im going to try and explain a little better.
    The main method is currently constructing a HashTable which is then accessed by other methods within the program. Due to this any methods using the HashTable as I understand it must be static. However some of the methods also require input from the user which is entered into a text box in the application. To access this information the method can't be static.
    However when i have a method such as this
    private static void sendMessage(HashTable theTable, String readMessage)
    now as you can see I need to be able to pass it a string and the table.
    Problem: How the hell do I do this its driving me nuts.

  • How do I stop my macbook from receiving text messages from my iPhone?

    After I updated my macbook to Yosemite, I started receiving text messages on it from my iPhone.  I want to turn this off, how do I do this?

    Hi,
    Temporary.
    You could Disable the account on the Mac.
    You can untick the Receive At option for the iPhone Number as "Alias".
    This will cut the number rather stop them completely.
    More permanent.
    Sign Out button on the Mac version.
    Messages will work but the iMessage account will not have an ID to log in with (it will show but will need the password. you change the ID but entering a new one.
    Permanent.
    Remove the Apple ID for the Settings for the iPhone version.
    iOS 8.1 and Yosemite will also allow or can be set up for Text Forwarding as it is called in the settings on the iPhone.
    Effectively the two become paired  (needs a code number that appears on one to be entered on the other device) rather than just "happening".
    This does allow SMS Messages to also be synced between the two.
    I am not sure you are talking about this though.
    If we have missed what you are after you will have to give more details.
    9:22 pm      Thursday; November 6, 2014
    ​  iMac 2.5Ghz i5 2011 (Mavericks 10.9)
     G4/1GhzDual MDD (Leopard 10.5.8)
     MacBookPro 2Gb (Snow Leopard 10.6.8)
     Mac OS X (10.6.8),
     Couple of iPhones and an iPad

  • IOS messages strips URL content from linked text sent from Messages Beta

    My guess is that this is an unexpected edge case in the iOS version of Messages, where pre-Messages beta it didn't have to worry about link embedded in text. But when I copy a URL from an application such as Reeder or drag and drop a URL from the Safari URL field into Messages in pastes in with underlined text of the title of the page the link is for, with the embeded link. When this link is recieved on iOS devices just the text of the page title is recieved, rendered without the embeded link. Which let me tell you left my wife wondering what I was trying to say to her more than once. Maybe this will is already resolved in a version of Messages yet to be released for iOS devices. 

    Ralph, yes, I am not denying if you highlight the url and copy and paste it into the text field in messages, you definitely get the full url, and iOS handles this case properly as it recognizes the URL.
    But if you click and hold on the favicon and drag away you get Blue text underlined like it was a clickable link, which it is. I did verify Firefox behaves the same way if you drag from the favicon.
    If you send the link like that (embeded url) and the reciever is Messages beta on another Mac, or over AIM, likely Gtalk (jabber) as well it is handled properly as a clickable link. If the reciver is on an iOS device, iOS does not handle this properly and strips the embeded url in the link.
    Below are images that illustrate
    Underlined in Red is the ghosted grab from the favicon, built in screen capture unable to grab my mouse pointer but it ends up over "messages" in the ghosted title with the green "+" indicator.
    Apologize for the size of this one, but that dragged URL dropped in a new message.
    How this message shows up on iOS devices.
    I know the workaround of copy and pasting the highlighted URL from the Safari URL field, but not all apps have this option, as I indicated Reeder for one when you are viewing an article there is a toolpar item to access several options for the article, one of them being copy URL - this must use the same method as Dragging and dropping from the Safari faviocn. Also many links that you bring up the contextual menu on in Safari and copy url end up pasting as embeded url links (Firefox does not do this). The workaround extends the workflow to open the article from a news feed in a browser, or click and load a link in Safari before the URL is exposed in the URL field before copy and pasting the url into messages, not very user friendly.
    I hope this helps clarify the case.

  • [SOLVED] yaourt. packages taken from aur that are from core or extra

    Hi! i have a couple of days ago strange yaourt-pacman behaviour, i mean, when i do -Syu --aur, i get strange
    [aleyscha@aleyscha ~]$ yaourt -S screen
    warning: screen-4.0.3-5 is up to date -- reinstalling
    resolving dependencies...
    looking for inter-conflicts...
    Targets: screen-4.0.3-5
    Total Download Size: 0.45 MB
    Proceed with installation? [Y/n]
    :: Retrieving packages from extra...
    error: failed retrieving file 'screen-4.0.3-5-i686.pkg.tar.gz' from ftp.archlinux.org : Connection timed out
    warning: failed to retrieve some files from extra
    error: failed to commit transaction (unexpected error)
    and in yaourt -Syu --aur for example, i get a lot of packages newer in local than in aur, and some packages i know not even are in aur... for example unshield alsa-plugins and tuxcmd
    ==> Searching for new version on AUR
    alsa-plugins: (local=1.0.15-1 aur=1.0.11-1)
    amidi-plug: (local=0.7-3 aur=0.5-1)
    amule-cvs: up to date
    any2dvd: (local=0.34-3 aur=0.30-2)
    archlinux-xdg-menu: not found on AUR
    archmage: up to date
    aria: (local=1.0.0-4 aur=1.0.0_1.fc8-1)
    astromenace: up to date
    audio-convert: (local=0.3.1.1-2 aur=0.3.1.1-1)
    aumix-gtk: (local=2.8-2 aur=2.8-1)
    aurvote: up to date
    avifile: not found on AUR
    bashburn: (local=2.1.2-3 aur=2.1.2-1)
    bfcommander: up to date
    bin2iso: up to date
    bitefusion: up to date
    bkhive2: up to date
    briquolo: up to date
    tuxcmd: not found on AUR
    tuxcube: up to date
    uif2iso: up to date
    unace: (local=2.5-5 aur=2.5-4)
    units: (local=1.87-1 aur=1.85-1)
    unshield: not found on AUR
    uqm: (local=0.6.2-2 aur=0.5.0-1)
    my /etc/pacman.d/core for example:
    # core: Arch Linux core repository
    # United States
    Server = ftp://ftp.archlinux.org/core/os/i686
    Server = ftp://ftp.nethat.com/pub/linux/archlinux/core/os/i686
    Server = ftp://locke.suu.edu/linux/dist/archlinux/core/os/i686
    Server = ftp://mirrors.unixheads.org/archlinux/core/os/i686
    Server = ftp://ftp-linux.cc.gatech.edu/pub/linux/distributions/archlinux/core/o$
    Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/core/os/i686
    Server = http://mirrors.easynews.com/linux/archlinux/core/os/i686
    Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/core/os/i686
    # South America
    # - Brazil
    Server = http://archlinux.c3sl.ufpr.br/core/os/i686
    Last edited by leo2501 (2008-03-09 11:16:17)

    What are the versions of your pacman and yaourt?
    There are some updates to all the pacman, yaourt and AUR web pages,
    so can you try this:
    1. upgrade pacman itself first
    2. upgrade yaourt itself, then
    3. and last, try full system upgrade.
    These errors seem familiar, but I have no idea how it disappeared.

  • How do i remove songs from itunes that are from my computer

    have songs on itunes that i import from my computer and i want to remove them from the list. how do i do that

    Delete them.

  • Can i monitor, or recieve messages from a text app from my childs ipod if we share same apple ID?

    I want to be able to monitor my childs text messages on a text free app, is it possible if we share the same apple ID? or is there a app I can get to do so? both my child and I both have ipod touch and they are under the same apple ID....

    Contacts do not matter. However, if a new email address is added on your child's device and not on yours you will not get those.
    On their device yo can go to Settings>General>Restrictions and set the Restriction that prevents changing accounts.
    iOS: Understanding Restrictions (parental controls)

  • Hi i wanted a query to write a text in a deidentified form.

    So the requirement is if the variable is given as 3 , so for example the text is  "This is a secret message". It should be like 
    T   S  A  C  T  S  G
    H  I   S  R  M  S  E
    I  S   E  E  E  A   J
    So as you see it is written in 3 row form T in the first row then H in another row 
    So the deidentifier text will be "TSACTSGHOSRMSEISEEEAJ"
    Can any one help me out to write a function or a procedure for this i would really appericate it.
    Thanks.

    Hello there,
    Please refer to the below links:
    [http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/solution_in_detail_interactive_forms.pdf|http://wwwimages.adobe.com/www.adobe.com/enterprise/partners/pdfs/solution_in_detail_interactive_forms.pdf]
    [http://www.sdn.sap.com/irj/scn/interactiveforms-elearning|http://www.sdn.sap.com/irj/scn/interactiveforms-elearning]
    Please reply if this helps.
    Best Reagrds,
    Vinarma.

Maybe you are looking for