PL/SQL anonymous block - try to call the function within cursor

Hello-

I need to create an anonymous block that contains a cursor and function. I want to call the function from the cursor and function will essentially have an ID as parameter and will return a list of values comma separated.

However, when I try to do it I get the error 'function 'GET_PAYMENT_DATES' is not usable in SQL.

Does anyone know of a workaround? I'm trying to avoid having to store this function.

Thank you
Christine

Well you can't do this using an sql not stored function.
What you could do is to increase your sort_area_size which can help you to overcome the performance Bug.

for example: alter session set sort_area_size = 64000;

other than that, it seems that you need a stored function

Tags: Database

Similar Questions

  • I exported a must of the site in HTML format and get the following error - MuseJSAssert: error calling the function switch: SecurityError: cannot read property 'documentLes' of 'HTMLIFrameElement': blocked a frame with original 'null '.

    I exported a must of the site in HTML format and get the following error - MuseJSAssert: error calling the function switch: SecurityError: cannot read property 'documentLes' of 'HTMLIFrameElement': blocked a frame with original 'null '.

    Does Anyon know what to do - how to fix this?

    Hello

    could you please take a look at this and see if that helps

    Java Script alert: MuseJSAssert: error calling the function switch: security error?

  • MuseJSAssert: Error calling the function switch: TypeError: undefined is not an object (evaluation of "a.rules")

    I have this error on my Web site every time that I go. It disappears when I refresh three times.

    "MuseJSAssert: error calling the function switch: TypeError: undefined is not an object (evaluation of"a.rules").

    I downloaded the site with Filezila.

    Please help, what's wrong here?

    Thank you

    Hi Barbara,

    The question began to happen after you downloaded using the latest version of Muse?

    If so, can you try to remove the old files of the web server and re-upload using Muse?

    Kind regards

    Akshay

  • That is producing this error: MuseJSAssert: error calling the function switch: Error: Invalid argument

    Website: http://lovehopemercy.org/

    In my navigation header by clicking on the option "VISIT US", that is to say generates this error: MuseJSAssert: error calling the function switch: error: invalid argument

    The other options do not work correctly. I get an error on export as HTML of MUSE, but the link works fine in other browsers. I download using Dreamweaver CC 2014. Reversal function works fine; it's the direct click of the menu item at the top that causes the problem.

    Did I miss a bad link or something that I can fix?

    Thanks in advance.

    Hello

    Could you please try some suggestions given here and see if it works for you.

    Error after update today: MuseJSAssert:Error call function argument: Error: Invalid selector

    Let me know if you have any question.

    Concerning

    Vivek

  • {Error: MuseJSAssert: error calling the function switch: SyntaxError: unexpected token}

    I built my site for the last days, and that 30 minutes, I click on the "Preview in browser" option to check my progress. {On one of these controls, as soon as the page loaded, I got the MuseJSAssert error message: error calling the function switch: SyntaxError: unexpected token} in a pop-up window and all my viewers stopped working. I tried to restart the browser, muse, my computer and even tried to save as a new website to use instead, and none of these options worked. Any ideas on how I can fix?

    Screen Shot 2014-11-10 at 2.12.21 PM.png

    If you have added a custom HTML/CSS/JS code using Page Properties > section Metadata or by using the function insert HTML code, try to remove and then preview.

    If the problem persists after removing all of the custom code, please send your .muse file (saved after removing all custom code) at [email protected]. Make sure that you mention the link to this topic in the subject of the e-mail.

    See you soon,.

    Vikas

  • MuseJSAssert: Error calling the function switch: TypeError: $(...). toBrowserWidth is not a function

    Hey,.

    I made a site with Muse on April 2014 and now (September 2014) I got the latest version of Adobe Muse, updated the site, send to an external FTP client directly from Muse, and now my client told me that he cannot see the site of Mozilla Firefox from his PC. It is said that MuseJSAssert: error calling the function switch: TypeError: $(...). toBrowserWidth is not a function. He can see the site in Internet Explorer. And it works with my Firefox, Chrome and Safari browsers on mac.

    I have found some answers and tried: I added / of the museutils.js of the file so that it looks like this: {url:"/scripts/pie.js... and (" / MuseJSassert:... instead of: {url: "scripts/pie.js... and (' MuseJSassert:...") "}")}

    Done with the code in parentheses editor and send the files to a remote server with Filezilla.

    Now, it displays error on my browsers as well, he said: some of the files on the server may be missing or incorrect. After you click OK, the site seems normal.

    I also deleted the site distance and exported directly from Muse again. Now it looks fine on my browser again, but not customers.

    Any help?

    It's frustrating because I'm not a coder (I chose the Muse of reason) and now I don't know what to do...

    I checked out the site on my end, but can't reproduce the same error:

    http://take.Ms/dAPJ0

    Please try to delete browser cookies or try to reset the preferences.

    Thank you

    Sanjit

  • MuseJSAssert: Error calling the function switch: TypeError: 'undefined' is not a function (assessment '$('.browser_width').toBrowserWidth ()')

    Hello!!

    I m having this alert in my exploring when I try to open my site:

    MuseJSAssert: Error calling the function switch: TypeError: 'undefined' is not a function (assessment '$('.browser_width').toBrowserWidth ()')

    the site is www.tmed-mexico.com

    and opening belongs to another site that I designed too.

    What can I do? The peak of the shipment.

    screenshot.png

    I think you should contact your FTP/Web hosting provider and get more clarity on how your installation sites (they are both with the same hosting provider). You have two sites hosted on the same server - probably in two different files - that could be cause of all this confusion.

    In addition to the FTP server, username and password, you must also have a folder location to load your site content.

    See you soon,.

    Vikas

  • Java Script alert: MuseJSAssert: error calling the function switch: security error?

    Hello

    I built a site of Muse and place a dashboard project animate the site. Here's the problem I have. When I saw in the browser through Muse all seem to work well. The problem is when I export to HTML. When I view the HTML file in Firefox, everything works fine. But when I discover the HTML in Chrome or Opera, I get the following error appears on the top of the browser: Java Script Alert: MuseJSAssert: error calling the function switch: security error: blocked a frame with original "null" access to a framework of cross-origin.

    Any ideas what is the cause? I noticed one thing, but if I click the button refresn the animation playback. The other thing I noticed, is that my full screen lide show is also affected by this error. He plays as the first image and the rest of the images are not displayed.

    Thank you for any suggestions to fix this.

    Hey all!

    I finally found how to solve this problem! At only took about 3 hours!

    Therefore, to do with the iframe code muse did for the lively edge file.

    If we take things from the outset, if everyone includes:

    1 publish a 'edge Animate Deployment Package (.oam)' dashboard animate

    2. in muse, file > Place > {exported .oem)

    3. put the file where you want

    4 muse export as HTML (file > export as HTML)

    5. your browser will open and display the error message, as shown above

    6 locate the HTML files and find "index.hml", or the page that your file hosted dashboard is on

    7. open it in Notepad, or editing program code. I use Adobe Edge Code CC

    8 remove the text: class = "animationContainer an_invi" (press ctrl + f and type to find the line)

    9 be sure to save and then reopen the Web page!

    10 smile for yourself and be raised

  • Transfer while calling the function of a trigger

    Hello

    I would appreciate if someone can point me in the right direction. So I have a trigger (TableAR_BU) on a table table. This trigger, I have a logic to call the function, and inside this function, I'm just a select statement of a few other tables that the table table.
    Function is supposed to return me 'Y' and it done correctly returns me 'Y' if I select the double feature. -Select the Function1 (100) twice;

    But when I call the trigger function, it returns me 'n'. So after investigation, I found that the select statement (selection of table) inside the function returns NULL when called from trigger.
     
    DROP TRIGGER TableAR_BU;
    
    CREATE OR REPLACE TRIGGER TableAR_BU
    BEFORE UPDATE
    ON TableAR_BU REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    declare
     localcontext varchar2(32000) := '; Context : ';
     sqlstmt varchar2 (2000);
    
     Status varchar2(1);
    
    Status := Function1(:new.Id);
    
    
    End;
    /
    
    
    function Function1(al_Id in TableAR.Id%type)
    RETURN  varchar2 is
    
    lsItemId TableAR.itemId%type;
    
    Begin
    
    Select itemId into lsItemId
    from TableAR
    where id = al_Id;
    
    
    
    Exception
    
    End Function1;
    Suggestions or comments appreciated.

    Edited by: Eclipse01 may 1, 2012 11:29

    The problem is that a level trigger line on table cannot query table or whatever it is that questions table call. In the middle of a SQL statement, the table is potentially in an invalid intermediate state if Oracle cannot guarantee that queries on the table return consistent or reasonable results so it does not allow queries of this type.

    99 + % of the time, it's a good thing because it means that you are trying to use triggers for something they are not designed for (in addition to creating applications that are terribly difficult to manage because an action like update a line will eventually create a huge cascade of effects). Most of the time, you are much better to reconsider the architecture and the displacement of the function call out of the trigger and in a sort of API that wraps the UPDATE statement (that is a stored procedure that made the UPDATE and calls the procedure).

    In the <1% of="" the="" cases="" where="" you=""> really want to do in a trigger, you would need a combination of objects (or a trigger composed containing several sections in 11 g). You would need
    -A package with a collection of table primary keys
    -A before the declaration that clears this collection
    -A level trigger line which inserts the: new. ID in the collection
    -A trigger statement that iterates over the collection and calls the function after.

    That, however, is a lot of moving parts to deal with, so it dramatically increases the complexity. If you only want to consider if you are really convinced that you must use triggers in the first place.

    Justin

  • MuseJSAssert: Error calling the function switch: ReferenceError: Spry is undefined.

    I started Muse today and he said there was an update available. I installed and then made a few small changes on my 5 page site. Then I exported the HTML code and uploaded to my server.

    But now when I try to navigate the site in Chrome, I get the following error message:

    MuseJSAssert: Error calling the function switch: ReferenceError: Spry is undefined.

    The only changes I made were adding text to a few pages and adding metadata to each page information and displaying HTML exported locally (before transfer) everything behaves as it should... an error message.

    Any ideas why its doing this? or, more importantly, any suggestions on how to stop it from doing this? He did not have that yesterday before get me these small changes.

    Here's the URL: www.gardensbytheseaursery.com

    Thanks in advance.

    Jake

    This error occurs if all of the files for the site that we downloaded.

    The 2.0 update includes numerous improvements in the generated HTML, CSS and JavaScript, so while you can directly changing only some pages, if you are using an external FTP client all the exported files, and the files must be downloaded. (The new built-in FTP support automatically only generates and download the files that have changed since the previous download.)

  • Is it possible to call the function in the module through function of interface component

    Hello

    I see this in the livedocs.

    "In general, if you want to set properties on controls in the module using external values, you must create the variables that may be related. Then, you set the values of these variables in the methods implemented in the interface. If you try to set properties of the controls of the module directly using the external values, controls may not be instantiated by the time the module is loaded and the attempt to set the properties may fail. »

    I have a component in a module. I have to call this component of the interface function funcion. That is to say my main application call the function of interface, and that interface funcion must call funcion of the component. Is this possible. I get error that the element is null, if I try this. Is it possible to do so.

    Thanks in advance.

    Hi, yes I got your problem now when I have your code.

    See it here:

    MOD = modInfo.factory.create (like TestInterface);
    var el: IVisualElement = modInfo.factory.create () as IVisualElement;
    this.addElement (el);

    It won't - you create 2 separate instances of the module, which you create - 'el' and the other a not - "mod".

    It should look like this:

    var el: IVisualElement = modInfo.factory.create () as IVisualElement;
    Note: I usually use var el: Module = modInfo.factory.create () like Module; Does not need at least for the moment to cast as IVisualElement but I know that it is not bad, I read in some articles before getting if I remember correct it does not give access to some methods, but not sure.

    MOD = el like TestInterface;

    addElement (el);

    First, you create the instance of the module with the factory.create (), and then cast you to the interface.

    F

  • How to call the function (function Build-in user) in Pro * C program

    We have developed the application Pro * C program.
    TimesTen version is "TimesTen release 11.2.1.5.0 (64-bit, Linux/x86_64) (tt112150:53308) 2010-03 - 04 T 20: 39:30Z.

    We would like to develop Pro * C program you are using PL/SQL.

    We have a few questions.
    How to call the function (function Build-in user) in Pro * C program?

    #########
    TEST
    #########

    ttisql:
    Command > create or replace FUNCTION F_SAMPLE (i_str IN VARCHAR2)
    > BACK NUMBER
    > o_number NUMBER;
    > START
    > select i_str
    > in o_number
    > double;
    >
    > O_number RETURN;
    >
    > EXCEPTION
    > Others THEN
    > RETURN 0;
    > END;
    > /.
    display errors
    The function is created.
    Order > show errors
    No errors.
    Command >
    Command > set serveroutput on;
    Command > declare
    > number of num1;
    > start
    > num1: = F_SAMPLE ('A');
    > DBMS_OUTPUT. PUT_LINE ("F_SAMPLE" |) ' ' || NUM1);
    > end;
    > /.
    F_SAMPLE 0

    PL/SQL procedure successfully completed.

    Command >


    Pro * C case:

    EXEC SQL BEGIN DECLARE SECTION;
    number of num1;
    EXEC SQL END DECLARE SECTION;

    EXEC SQL EXECUTE
    Start
    : num1: = F_SAMPLE ('A');
    end;
    END-EXEC;

    Make sure to install:
    Error on line 146, column 3, file plsqlPROC.pc:
    Error on line 146, column 3 in file plsqlPROC.pc
    number of num1;
    .. 1
    PCC-S-02201, encountered the symbol "num1" when expecting one of the following conditions:


    Thank you.

    GooGyum

    There are two problems with your variable declaration:

    1. the name of the variable and type are thew misplacement autour.

    2. you may not use a host variable type.

    If you change this to:

    EXEC SQL BEGIN DECLARE SECTION;
    int num1;
    EXEC SQL END DECLARE SECTION;

    Then it will work very well.

    Chris

  • Call a function within the same CFC component

    Hello
    / * Niewbie Question * /.
    I have a strange problem. When I try to call one function on the other in the same CFC component, I get an error named: "Entity has incorrect type to be called as a function."
    I looked on many forums and searched in Google groups. I have yet found a work around for this problem.
    I thought I did caution o not use twice the same name...
    Can someone tell me what I did wrong?

    My sample code to reproduce this error is included

    The full error message is:
    Entity is of the wrong type to be called as a function.
    The symbol you provided superfunction is not the name of a function.

    The error occurred in C:\ColdFusion8\wwwroot\admin\_components\test.cfc: line 6

    4: < cfinvoke
    5: method = "superfunction".
    6: returnVariable = "myReturn" >
    7: < / cfinvoke >
    8: < cfset some_text = myReturn >

    OK, solved with all your advice!

    A big thank you to everyone

    Here is the final code for others...

  • Call the function in LabView from a DLL, and then access the global variable of DLL

    I've created a DLL in LabWindows with a function and structure.  I want to call the function from LabView and then access the overall structure.  I am able to call the function in the DLL with a "call library function node" and has access to the return value, but I can't understand how to access the overall structure.  The structure is declared in the header DLL with __declspec (dllimport) struct parameters file.

    Is it possible to access this structure without using the library of network variables?

    My guess is that you need two bytes of padding after "in_out" and another to two bytes of padding after "anin."  The reason being that ints are 4 bytes, and most of them C compilers will align on 4-byte boundaries.  The struct will naturally start to such a limit (in fact, in Windows, it will probably start to an 8 byte boundary).  If you then count bytes in your structure, you are 70 byte after "in_out."  70 is not divisible by 4, so you need 2 bytes more to reach the next 4 byte boundary.  You can also you could reorganize your struct so that "anin" follows "in_out" and this is probably the best option if it won't cause you other problems.

    Unlike most C compilers, LabVIEW compressed structures as closely as possible, without filling.  I don't know enough about the history of LabVIEW and internal parts to explain the reasons and to do this performance penalty, but, as choice of LabVIEW "endianness", it is probably a remnant of the first versions of LabVIEW that were running on the Mac.

    If for some reason you want to force your C struct to match package LabVIEW, you can use the #pragma pack (x) directive, but I wouldn't recommend that here because you can control the C and LabVIEW.

    EDIT: in the cases where it was not clear, add padding to your cluster of LabVIEW, insert appropriate size or items at the place desired in the cluster.

  • How to identify which switch in the Panel called the function?

    Here I have some 192 switches and 192 leds corresponding to each switch,

    If a switch is on(say 10th) consequence (10th) led should light up.

    I want to use the same function for all pairs of led switch.

    all I could do was to check the switch in a loop and then set the individual leads, but I find it very little effective way to do it.

    int switchOnOff (int, int int event control panel CVICALLBACK,
    void * callbackData, int eventData1, int eventData2) is the function.

    None of these arguments I can use it to extract what (the unique id for this turnout) switch called the function so that I can pass corresponding led glow?

    It occurred to me now that the table is not necessary at all: you can simply assign to each switch the corresponding ID led the callbackData, so that the code is even simpler than my previous:

    // At panel load:
    SetCtrlAttribute (panelHandle, PANEL_SWITCH1, ATTR_CALLBACK_DATA, (void *)PANEL_LED1);
    ...
    SetCtrlAttribute (panelHandle, PANEL_SWITCH192, ATTR_CALLBACK_DATA, (void *)PANEL_LED192);
    
    // In the control callback
    GetCtrlVal (panel, control, &sts);
    SetCtrlVal (panel, (int)callbackData, sts);
    

    To answer your last question, "Management Board" means immediately after the call to LoadPanel.

Maybe you are looking for