Dynamic multi-row SQL :: doesn't work in Forms?

I need to use a dynamic SQL statement and was at first trying to
use the DBMS_SQL, which is overly complex. So I read up on NDS
and thought that it would be much better to use.
Unfortunately, Forms (6i) refuses to accept the correct syntax.
ie:
OPEN plr_cv FOR 'select foo from bar';
returns an error:
"Encountered the symbol 'select foo from bar'
when expecting one of the following:
select"
plr_cv has been defined as per the examples in the Oracle
documentation (as a ref cursor). Even a cut-and-paste of code
from the Oracle Docs won't work. Why won't forms let me use NDS
here? Is there a workaround?

Did you ever get this to work. I tried using dynamic sql but this does not work in FORMS 6i.

Similar Messages

  • CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there

    CS 4 Dynamic Link to Encore doesn't work most of the time.  Encore stops operating after opening and periodically Premier Pro stops working.  I'm told that there has been a problem with CS4 when using Dynamic Link to go to Encore and build CD's.  Is there a way around this?  Is there a patch to correct it?

    To build CD's???
    What problem does Encore have with DL?
    If DL is not working properly for you the way around this is to export from Premiere to either mpeg2-dvd for DVD or BluRay H.264 for BD-disks and import the files in Encore.

  • Reset_image_prefix.sql doesn't work

    Hello,
    My DB has two instances with two different versions of apex loaded. One is version 4.1.1 (working fine) and I decided to upgrade the other from 4.1.1 to 4.2. I created a new location entry in the httpd.conf file in my ohs instance to point to the new 4.2 instance referencing a new image Alias on the server. When I installed APEX 4.2 I pointed the images directory parameter to the new Alias 'i42' but it doesn't work. All of the applications are still referencing /i/
    I did run the script reset_image_prefix.sql with /i42/ as input parameter, but the applications are still referencing /i/.
    There was a similar discussion in October 2012 and Patrick Wolf wrote about a bug# 14785456.
    But the BUG seems not to be fixed?
    After executeing the script Iget:
    SQL> select text from dba_source where owner='APEX_040200' and lower (name) ='wwv_flow_image_prefix';
    TEXT
    package wwv_flow_image_prefix
    is
        g_image_prefix       constant varchar2(255) := '/i42/';
    end wwv_flow_image_prefix;
    4 rows selected.
    Is there any workaround?
    regards,
    Carola

    Hi Carola,
    which exact version of APEX 4.2 are you using? Are you using the last 4.2.2? Because that includes the fix you referenced. After installing that version or the patch set, we will automatically clear all application level image prefixes if they are identical to the current instance image prefix. So in your case you should set the image prefix back to /i/, install the patch set and then call reset_image_prefix again to set the instance setting to /i42/.
    Joel has some useful information on this blog (YABAOAE) Yet Another Blog About Oracle Application Express: Image Prefix changes in Oracle Application Express 4.2.2
    Some background information about reset_image_prefix.sql. That never changed the image prefix used in applications, only the image prefix for our Builder application.
    Regards
    Patrick
    Member of the APEX development team
    My Blog: http://www.inside-oracle-apex.com
    APEX Plug-Ins: http://apex.oracle.com/plugins
    Twitter: http://www.twitter.com/patrickwolf
    Message was edited by: PatrickWolf

  • Dynamic adding of components (doesn't work when programmatically)

    Hi, I don't understand, why this doesn't work. I'll explain it on this example:
    import java.util.concurrent.ScheduledThreadPoolExecutor;
    import java.util.concurrent.TimeUnit;
    import javafx.application.Application;
    import javafx.event.ActionEvent;
    import javafx.event.EventHandler;
    import javafx.scene.Group;
    import javafx.scene.Scene;
    import javafx.scene.control.Button;
    import javafx.scene.paint.Color;
    import javafx.stage.Stage;
    public class NewFXMain extends Application {
        Group root;
        public static void main(String[] args) {
            Application.launch(NewFXMain.class, args);
        @Override
        public void start(Stage primaryStage) {
            primaryStage.setTitle("Hello World");
            root = new Group();
            Scene scene = new Scene(root, 300, 250, Color.LIGHTGREEN);
            Button btn = new Button();
            btn.setLayoutX(100);
            btn.setLayoutY(80);
            btn.setText("Add button now");
            btn.setOnAction(new EventHandler<ActionEvent>() {
                public void handle(ActionEvent event) {
                    addButton();
            root.getChildren().add(btn);  
            primaryStage.setScene(scene);
            primaryStage.setVisible(true);
            System.err.println("Number of buttons before: "+root.getChildren().size());
            ScheduledThreadPoolExecutor executor = new ScheduledThreadPoolExecutor(1);
            executor.schedule(new MyTask(), 5, TimeUnit.SECONDS);
        private void addButton() {
            System.err.println("Button adding");
            root.getChildren().add(new Button("YEAH"));
            System.err.println("Number of buttons after: "+root.getChildren().size());
        class MyTask implements Runnable {
            public void run() {
                addButton();
    }There are two ways how a new button can be added. Either by clicking on existing button or programmatically by the program itself after 5 seconds.
    If you add it by button, there is no problem. The error print is:
    Number of buttons before: 1
    Button adding
    Number of buttons after: 2
    But if you just wait, then the error print is:
    Number of buttons before: 1
    Button adding
    and no button is added. In fact, the error printing after the adding isn't performed either.
    I'd like to ask if there is some solution for this because I'd love to do some changes by schedulers. Thx
    Edited by: 876949 on 14.8.2011 9:09
    Edited by: 876949 on 14.8.2011 9:11

    No, these are not error messages, they are just for purpose of example. Here it doesn't matter whether err or out... (yes, 'out' would be better ;)
    But thanx, it's working. By the way, I am creating scheduler for task lists. They are supposed to be printed dynamically in specific time (or periodically). For example: at 5 o'clock I need to print 5 items of some list and every 3 hours I need to print 3 items of another list etc. - so it's quite dynamic with regard to component adding (No, I don't want to use some sort of ListView, I want interactive printing: one item on screen at a moment). I'll try to work your solution into my code.
    Edit: So either it's not possible to use this for the purpose of my app or it will be really cumbersome. Maybe it would be easier to draw some rectangles with mouse listeners...
    Edit: So I finally got around it. In the end, I won't use dynamic adding as intended. It's working and that's important.
    Edited by: 876949 on 14.8.2011 12:48
    Edited by: 876949 on 15.8.2011 5:21

  • Hover table row style doesn't work in IE

    I found a great way to create a rollover effect when you
    hover over a table row, by giving the row a class of "resultsRow"
    and using the following rules in my stylesheet:
    .resultsRow {
    background-color: #EAEEB1;
    .resultsRow:hover {
    background-color: #D2DE56;
    This works perfectly in Firefox, but doesn't work at all in
    Internet Explorer, which is what most of our audience will be
    using. Does anyone know a fix for this in Internet Explorer?

    On Thu, 20 Jul 2006 08:21:43 +0000 (UTC), "Claire S"
    <[email protected]> wrote:
    > .resultsRow {
    > background-color: #EAEEB1;
    > }
    > .resultsRow:hover {
    > background-color: #D2DE56;
    > }
    >
    > This works perfectly in Firefox, but doesn't work at all
    in Internet Explorer,
    >which is what most of our audience will be using. Does
    anyone know a fix for
    >this in Internet Explorer?
    As you've seen, IE is ancient and doesn't support it. You can
    do it
    pretty easily with JavaScript:
    <style type="text/css">
    .resultsRow {
    background-color: #EAEEB1;
    .resultsHover {
    background-color: #D2DE56;
    </style>
    <tr class="resultsRow"
    onMouseOver="this.className='resultsHover'"
    onMouseOut="this.className='resultsRow'">
    Gary

  • Multi-Select LOV doesn't work where 1

    I have a form with 1 master & 2 detail blocks. Each of the detail blocks has an LOV, & I'd like both to use the multi-select LOV facility within Headstart. However, this doesn't work if there's > 1 multi-select LOV within the form, for these reasons -
    1. If there's > 1 multi-select LOV, you have to include reusable module component qms_msel_lov_buttons for each. As this is reusable, you can't edit the name. Therefore you have duplicate block names, therefore generator discards the names specified in Des2K & uses default block names of MC0, MC1 etc.
    2. Headstart code in qms$init_application sets the lov block prefix to ML_. At runtime, the form fails with FRM-40104: No such block: ML_MC1.
    I can't see any way of influencing Des2k's choice of block name, short of copying the reusable component into a specific component. Is there any workaround in Headstart you can suggest, to make this facility work?

    Cheryl,
    You are correct, you must make a specific copy of the reusable module component to work around this. I will record this as an enhancement request for future releases. Thanks for the info.
    Regards,
    Lauri

  • Dynamic versioning plugin tag doesn't work for Netscape using 1.4.1_01?

    When I use dynamic versioning for plugin, for example:
    <EMBED
    type="application/x-java-applet;version=1.4.1_01"
    >
    It doesn't work for netscape 7. Although 1.4.1_01 was installed on the machine, the applet was not able to be loaded. Plugin was not found.
    Anything wrong with the tag? It is OK for 1.4.1
    Thanks

    When I use dynamic versioning for plugin, for
    example:
    <EMBED
    type="application/x-java-applet;version=1.4.1_01"
    >
    It doesn't work for netscape 7. Although 1.4.1_01 was
    installed on the machine, the applet was not able to
    be loaded. Plugin was not found.
    Anything wrong with the tag? It is OK for 1.4.1
    ThanksI lost alot of sleep over this!
    I finally got it to "seemingly" work
    but by NOT using 1.4.1 attribute..
    See my HTML example
    http://hyperbyte.ab.ca/JavaZone/
    While it doesn't work with the 1.4.1
    attribute it does work with Netscape
    Good Luck!
    Sincerely:
    Tony Swain
    Senior V.P. of Software Development Hyperbyte inc.
    http://www.hyperbyte.ab.ca
    Netscape DevEdge Champion Devs-Java Newsgroup
    snews://secnews.netscape.com/netscape.devs-java

  • Financial Reporting with supporting details row suppression doesn't work

    Hi,
    I've a report on Planning data with a conditional suppression on Row (Advance Set-up ) and it works exactly as I want. When I activate the supporting details and run the report... the suppression does NOT WORK ANY MORE.
    Can somebody help me ????
    Esample of the report (I have 3 dimension in the row):
    BUDGET Year
    Account 1 ActivityTot WorkTot 20
    Account 1 Activity1 Work1 10
    Account 1 Activity1 WorkTot 10
    Account 1 Activity2 Work1 10
    Account 1 Activity2 WorkTot 10
    Account 2 ActivityTot WorkTot 200
    Account 2 Activity1 Work1 100
    Account 2 Activity1 WorkTot 100
    Account 2 Activity2 Work1 100
    Account 2 Activity2 WorkTot 100
    Account TOT ActivityTot WorkTot 220
    Account TOT Activity1 Work1 110 <-- I want to suppress this
    Account TOT Activity1 WorkTot 110 <-- I want to suppress this
    Account TOT Activity2 Work1 110 <-- I want to suppress this
    Account TOT Activity2 WorkTot 110 <-- I want to suppress this
    I want to suppress in the Total Account all the rows with Activity and Work on leaf level.
    Condition of suppression:
    Level ACCOUNT > 0 and
    ( Generation ACTIVITY > 2 or Generation WORK > 2 )
    Without supporting detail it works, with supporting detail not. What's wrong ?????

    Another BB known issue 
    Users may not to able to take and restore data of the BB10 devices using BlackBerry Link if these ar...
    Scenario 2:
    While taking a backup using BlackBerry Link the following error is displayed:
    Note: This error appears if the device is activated on BES12 using Work Space onlyActivation profile. 
    Backup did not complete
    Verify that your device is turned on and connected to BlackBerry Link, and try again.

  • SQL Code not working in Forms Developer?

    Hi all,
    I'm using Oracle 10g and I have th following code running on iSQL+ but not working on Forms and I got the following erro
    The SQL code:
         select returningreason
            from (
                     select returningreason,
                     dense_rank() over (partition by 1 order by count(*) desc) as drnk
                     from returned_goods
                     group by returningreason)
           where drnk = 1;And the error happens near the word over to the right and the error statement is:
    Error 103 at line 18, column 19
       Encountered the symbol "(" when expecting one of the following:
             , formThanks in advance :)

    Triggers are compiled in forms so need to use only the features available to forms, which doesn't include all the new stuff in the database.
    select over partition
    NVL2They don't work in forms and reports too.
    Also if you use them in record Group
    Forms/SQL Compiler was not lined up to the database(10G).
    Meanwhile,for example. Pipelined TABLE and relative Select work in Reports AND Forms.

  • Submit button doesn't work when form is uploaded to website

    I created a form with a submit button that works well when I open the form from my documents.  However, once I upload that same form to my website, the submit button doesn't work.  Any ideas how this can be fixed?

    If the form is opened in the browser, it is probably using the browser's built-in PDF viewer (e.g., Chrome and Firefox), which likely does not support the submit action. It's possible to disable the built-in viewer and configure it so Adobe Reader is used to view the PDF and the submit button should work. This will be something each user would have to set up, so providing instructions is a good idea.

  • Multi-select LOV does not work in forms

    the multi select LOV does not work in the form.
    the LOV works individually but in the form it does not work. it does not allow multiple selection from the list.
    is there a workaround for this or is this a bug ...?
    any ideas ...?
    thanx a lot.
    null

    Right, we cannot store more than one value in a single column in a table :), we were getting a lot of requests to support multiple select LOVs but requirements were contradictory if not mutually exclusive.
    The only sense it makes is when used together with user-defined object types (nested tables for example) but the current [application building]infrastructure we have does not support this. However, we are looking into this and this feature maybe implemented in a future release.

  • Binding dynamic variable in XQuery doesn't work: ORA-00932

    I have a table with several columns. One of those columns is a XMLType.
    My goal is to have a query which selects rows from the table of which the XML column matches certain criteria.
    I'm trying following example (JDBC) : http://download.oracle.com/docs/cd/B28359_01/appdev.111/b28369/xdb_xquery.htm#insertedID11
    First, I created my own query, which looks like:
    select * from MyTable t, XMLTABLE( xmlnamespaces (DEFAULT 'http://test), 'for $i in /RootElement where $i/SubElement[contains(Element, "someValue")] return "true"' passing t.xmlColumn)This works as expected. Next, as done in the example, I'm trying to replace the "someValue" with a dynamic variable.
    Query then looks like:
    select * from MyTable t, XMLTABLE( xmlnamespaces (DEFAULT 'http://test), 'for $i in /RootElement where $i/SubElement[contains(Element, $val)] return "true"' passing t.xmlColumn, :1 as "val")This does not seem to work, neither in SQLDeveloper nor in java.
    I always get the :
    java.sql.SQLException: ORA-00932: inconsistent datatypes: expected - got CHAR(SQLDeveloper just gives ORA-00932)
    When I put $val between quotes (so "$val") then I get no error, but then I get no results either.
    I think it will not replace $val in that case but just use it as a literal, so thats not what I want
    I also tried to remove "contains" xpath and use the exact same example as on the oracle page
    select * from MyTable t, XMLTABLE( xmlnamespaces (DEFAULT 'http://test), 'for $i in /RootElement where $i/SubElement/Key = $val return "true"' passing t.xmlColumn, :1 as "val")But this doens't help either.
    I'm clueless about this, so any help would be appreciated
    Edited by: user5893566 on Nov 29, 2008 6:24 AM

    Ok, I tested it using the latest enterprise edition (11g) and there it works as expected.
    However, on 10.2.0.1.0 and 10.2.0.3.0 it gives this error.
    Is this a bug which has been fixed or should I do something special on 10g ?
    I installed all of these as normal without any special settings, created the tables and ran the query...

  • Parameter gets reset and Multi-value parameter doesn't work

    Hi
    Two Issues:
    I've set the value of a Date parameter (Start Date) when moving from the home screen (Report 1) to the next screen (Report 2) as the first day of the current year (DateSerial(Year(Today),1,1). In report 2, if I try to change the Start Date to another date,
    it gets reset to the first day of the year. I had the default value set as the first day of the year and even after removing it, the Start Date gets reset.
    I've set a multi-value parameter (Area) in Report 1 that collects four integers. I pass Area to Report 2 (through Join (Parameters!Area.value,",")). I also used SPLIT (Join (Parameters!Area.value,","),",") to get the value.
    Then, in the data set, I call this parameter as "Select A1,A2,A3,B1,B2,B3 FROM TEST_VIEW WHERE ID IN (?)". But this query throws an error that the query could not be executed. I ran the same query on the server side and it runs fine.
    Note:
    We cannot reference parameter names as @area for example because the Composite Server doesn't allow that.
    Split and Join operate on strings but my parameters are of integer type. Is this an issue?
    Please help.

    1. Are setting an expression for available values of parameter in report 2? Is the value you pass a valid among the set of values?
    2. IN wont work with comma separated values. You need to parse the individual values out using a string parsing udf as a table and then join to that
    so in your case you would be like
    Select A1,A2,A3,B1,B2,B3 FROM TEST_VIEW t
    INNER JOIN dbo.ParseValues (@Area,',')f
    ON t.ID = f.Val
    ParseValues UDF can be found in below link
    http://visakhm.blogspot.in/2010/02/parsing-delimited-string.html
    Please Mark This As Answer if it solved your issue
    Please Vote This As Helpful if it helps to solve your issue
    Visakh
    My Wiki User Page
    My MSDN Page
    My Personal Blog
    My Facebook Page

  • Multi-row "Drag and Drop" works for some users, not others

          Background: We are working on Win7 SP1 clients, Project Prof. 2010, SP2
          A couple of users have reported that they cannot move ("drag") multiple selected rows in a task sheet, only a single row at a time. Other MS Project users around them (and myself) can move multiple rows with the "Drag"
    feature. "Drag and Drop" is selected in the "Options/Advanced" section of both their local global template and the Enterprise Global.
         To my knowledge, the multiple row selections contain no collapsed summary tasks, in case that might be an issue.
         I'm suspecting some Windows setting is amiss on the offending clients, but wanted to see if anyone else had seen this behavior before in Project Prof. 2010.
         Thanks!
    JTC
    JAckson T. Cole, PMP, MCITP

        Thanks for the response, Shiva!
        User community is on MS Project 2010 (14.0.7011.1000) SP2, MSO (14.0.7128.1000)
        To reproduce the problem, MS Project user will select multiple task rows by selecting first row, then holding MB1, and "sliding" to the last row desired. The problem manifests itself by NOT turning the cursor into the "four-arrow cross"
    after selection is accomplished. If only one row is selected, the ability to move that row alone is available.
         Again, only a couple of users (that have called me!) are seeing it. Their officemates are not having an issue.
         FYI ...
    JTC
    JAckson T. Cole, PMP, MCITP

  • Dynamically setting column width doesn't work all the time

    I wanted to dynamically set the width of a column in a JTable to be half of the width of a another column. This should happen whenever the frame is resized. But somehow I need to tell this twice to Java. If I don't then sometimes the column width isn't set new.
    Is this a Java bug or what?
    public void componentResized(ComponentEvent ce)
         try
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              // Again, or it won't work:
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
              ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
         catch(SQLException e)
    }

    Is it possible that your call to
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMinWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    is altering the response created by
    ref.table.getColumn(ref.rsmd.getColumnLabel(5)).setMaxWidth(ref.table.getColumn(ref.rsmd.getColumnLabel(1)).getWidth() / 2);
    ? Have you tried calling them once but in the other order? Or just calling the "setMaxWidth" call twice and leaving out the second "setMinWidth"?
    Good luck... :)

Maybe you are looking for

  • How to add a single song plays to an album?

    Hi I have a single song in my itunes and i played it 18 times... my artist album is already come and i buy the CD and import it to the itunes library, The album is already have that single song but with different tags (name of album in single is "nam

  • Help me find an App! Please

    Hi. I am looking for a "calendar" type iPhone app that will function as both an attendance schedule as well as a payment received/due. I run a private teaching studio and want to eliminate multiple calendars for my records. I looked through several a

  • RMAN-06010: error while looking up datafile: 82

    Iam building dataguard - Physical Standby database by using the RMAN duplicate command and we are not using the recovery catalog but control file. Iam getting the following error while running the duplicate command. set newname for datafile 82 to "/d

  • 4x4 window around one pixel? how?

    5. The processing procedure works as follows. For each pixel of an image, the procedure considers an (n x n) window centered on that pixel, computes the mean/median of gray-level values in the window, and the mean/median becomes the new gray-level va

  • "WIB init failed!" sign.

    Sometimes my iphone 4 (iOS 6.0.1) goes into black screen with sign "WIB init failed!". What is this and what should I do to remove it.