Dynamic Page that calls DB procedure to update data gets PLS222 or PLS306

This seems a bit odd to me: I'm getting either "procedure no in scope" (when I call a procedure with the right args) or "wrong # or type of arguments" (when I call it with the wrong ones, so it is checking the procedure) in a dynamic page.<P>
I'm trying to build a dynamic page that will display data and checkboxes (basically to get around the multi-select limitations -- management has told me that the "fake" md form is not acceptable)<P>
So I build the page, it displays the data just fine exactly as we want it to:<P>
<HTML><FORM><ORACLE>declare
p_mdoc_user portal.wwv_utl_api_types.vc_arr;
p_mdoc_user_seq portal.wwv_utl_api_types.vc_arr;
p_seg_id portal.wwv_utl_api_types.vc_arr;
p_cb portal.wwv_utl_api_types.vc_arr;
p_action varchar2(20):='Save Changes';
begin
htp.p('Select your segments');
htp.p('< p>');
htp.p('<table border=2 cellpadding=2 cellspacing=0>');
htp.tablerowopen;
htp.tableheader('Seg#');
htp.tableheader('Included');
htp.tablerowclose;
for r1 in (select seg_id, build_seg
from web.mdoc_create_seg
where mdoc_user = :mdoc_user
and mdoc_user_seq = :mdoc_user_seq)
loop
htp.p('<input_type="hidden" name="p_mdoc_user" value='||:mdoc_user||'>');
htp.p('<input_type="hidden" name="p_mdoc_user_seq" value='||:mdoc_user_seq||'>');
htp.p('<input_type="hidden" name="p_seg_id" value='||to_char(r1.seg_id)||'>');
htp.p('<tr><td>');
htp.p(r1.seg_id);
htp.p('</td><td>');
if r1.build_seg='TRUE' then
htp.p('<input type="checkbox" name="p_cb" value="Y" checked>');
else
htp.p('<input type="checkbox" name="p_cb" value="Y">');
end if;
htp.p('</td></tr>');
end loop;
htp.p('</table>');
htp.p('< p>');
/*note, this is where I'm putting in a procedure call to update*/
end;
</ORACLE></FORM></HTML><P>
so then I try to add the procedure call (where the sql*plus comment is above)<P>
htp.p('<input type="button" value="Save Changes" onclick='||
mdoc_seg_create_choice_p(
p_mdoc_user,
p_mdoc_user_seq,
p_seg_id,
p_cb)
||'>');<P>
When I try to run as portlet, I get pls 222 not in scope. <but>
When I take a value out (say remove the last ",p_cb") - I get pls 306 wrong number or type of args to call.<P>
I've granted the procedure and its underlying tables to portal/public/and portal_public, even though I'm building the dynamic page under a DB provider that is the same as the schema I wrote the procedure in.<P>
I've tried specifying the schema, using a public synonym, and putting it in a package: same thing occurs, either I get pls 00222 not in scope when I call it with the right columns, or if I purposefully leave one out I get PLS 00306 wrong # or type of args.<P>
Any ideas?
-Mike

Hi guys
Check out the last 2 posts in this thread for ideas on how to implement 1.
Report on user data from LDAP
Varad

Similar Messages

  • I have several very important school related documents on my iPad in the Pages app. Ever since i updated to iOS5, i can no longer open any documents in Pages that I made before I updated. Please help

    I have several very important school related documents on my iPad in the Pages app. Ever since i updated to iOS5, i can no longer open any documents in Pages that I made before I updated. Please help

    Without the iPad connected, open up iTunes on your computer.  Go to iTunes/Preferences/Devices and delete the backups that you're absolutely certain do not have the documents.  Refer to figure below.
    iTunes, select the iPad and then select the Summary tab.  Follow directions for Restore and be sure to say "NO" to creating a backup.  (You don't want to create a new backup that does not have the docs.)  You will then be warned that all data (apps, music, movies, etc.) will be erased but, as the Restore finishes, you will be asked if you wish the contents of the backup to be copied to the iPad.  This time, say "yes."
    Repeat all of the above as required until you get the docs.

  • How do I get the 'Welcome to Firefox' page that shows up after an update to quit showing up? It's been coming up when ever I start up Firefox for days.

    The ‘Welcome to Firefox’ page that shows up after an update is installed has been coming up when ever I start up Firefox since I did the last update to 18.0.1, several days ago. How do I get it to stop?

    The problem turned out to be an error on the prefs.js file where one or two of the parameters with the current version number were not properly updated, so the browser always thought I was opening it for the first time on a new version. I edited the version number in those parameters to agree with the version number in the Help/About dropdown and the problem went away. It has been a while now and I do not recall which were the faulty parameters, but here are the ones in my current prefs.js file that refer to the browser version (currently 21.0 for me):
    user_pref("browser.startup.homepage_override.mstone", "21.0");
    user_pref("extensions.enabledAddons", "%7Bd40f5e7b-d2cf-4856-b441-cc613eeffbe3%7D:1.68,%7B02450914-cdd9-410f-b1da-db004e18c671%7D:0.97.12c,%7BBBDA0591-3099-440a-AA10-41764D9DB4DB%7D:11.3.0.9%20-%205,%7B2D3F3651-74B9-4795-BDEC-6DA2F431CB62%7D:2013.4.1.2,%7B972ce4c6-7e08-4474-a285-3208198ce6fd%7D:21.0");
    user_pref("extensions.lastAppVersion", "21.0");
    user_pref("extensions.lastPlatformVersion", "21.0");
    user_pref("gecko.mstone", "21.0");
    I have not encountered the same problem with recent version upgrades. Good luck!!

  • Using CRUD procedures to update data and ref cursors to return data

    Hi:
    I am currently evaluating Apex 3.x to replace an existing app that uses lots of procedures to update and return data.
    1. Is it possible to return data from a function that returns a cursor (or from a procedure that has an input/output ref cursor parameter for that matter) ? Example: Let's say I have the following function in a package:
    function get_data return sys_refcursor
    is
    l_cursor sys_refcursor;
    begin
    open l_cursor for select sysdate as field from sys.dual;
    return l_cursor;
    end;
    Can I add a page with a table that is populated based on this function? Based on my research it is not possible, but I want an APEX expert to confirm it
    2. The old application uses CRUD procedures to update date, that is for each table there are 3 procedures, insert update and delete. Question: is it possible to channel all the update, inserts and deletes through these procedures? Furthermore, in lots of cases I use sequences to populate the primary keys, and the new value is returned as output parameter. Can I retrieve the output value and use it maybe in the next page I am branching to?
    In the samples that I've seen the same form is used for insert and update. How do I distinguish between the two modes?
    3. Can you please point me to some samples that show how to do 1 & 2. The standard samples that I've seen use the automatic row processing.
    4. Could you please recommend some good books about Apex or HTML db? I found the documentation unintuitive. It is hard to picture quickly how things tie together by reading this documention. I wish the documentation was more task oriented and presented 'how to...' implement generic patterns used in web apps.
    Thank you in advance

    Hi guys
    Check out the last 2 posts in this thread for ideas on how to implement 1.
    Report on user data from LDAP
    Varad

  • WHAT IS PROCEDURE TO UPDATE DATA INTO DATA TARGETS?

    Hi,
    Experts,
    WHAT IS PROCEDURE TO UPDATE DATA INTO DATA TARGETS?
    FULL and DELTA.
    Thnx&regds,
    prerna

    Hi...........
    For both BW 3.X and BI 7.0........replicate the datasource in the BW side and activate it.............if require create Generic datasource and replicate it........
    In BW 3.X.....
    1) Create infosource
    2) Create transfer rules and update rules
    3) Create an infopackage...............with update mode full update( Update tab),in the Processing tab you can make it PSA and then into data targets........only data targets..........or PSA and data targets parallely...............
    For Delta load..........1),2) is same...........
    3) then you have to create a full Upload IP...........and you have to run it first..........
    4) Then you have run a init IP without data transfer to det the init flag
    5) then run Delta IP........
    Init and delta upload will be always without selection......
    BI 7.0 :
    1) Create an infopackage and load data till PSA..............
    2) create transformation between PSA and data targets.....
    3) The create a DTP and load data to the target.............depending on your requirements you DTP can be full or delta..........
    Check the following links :
    http://help.sap.com/saphelp_nw2004s/helpdata/en/43/02c52ce87e2c9ce10000000a1553f6/frameset.htm
    http://help.sap.com/search/highlightContent.jsp
    http://help.sap.com/search/highlightContent.jsp
    http://help.sap.com/saphelp_nw70/helpdata/EN/b9/2d9778476b11d4b2b40050da4c74dc/frameset.htm
    Hope this helps you......
    Regards,
    Debjani..........
    Edited by: Debjani  Mukherjee on Sep 14, 2008 1:43 PM

  • Basic question: how to submit a dynamic page form to a procedure?

    I am trying to submit a form created in a dynamic page to a procedure in portal. For some reason the procedure doesn't seem to execute. Can anyone give me a hint?
    Here is my code for the form:
    <html>
    <body>
    <oracle>
    begin
    htp.formOpen('portal_public.submit', 'post');
    htp.formText('textbox');
    htp.formSubmit('submit', 'submit');
    htp.formClose;
    end;
    </body>
    </html>
    I have created a procedure called "submit" in the portal_public schema...
    Create or Replace PROCEDURE PORTAL_PUBLIC.SUBMIT
    p_textbox_string IN VARCHAR2 DEFAULT 'default')
    as
    begin
    htp.print(p_textbox_string);
    exception
    when others then
    null;
    end;
    When I submit the form I get a generic IE "cannot be found" page.
    Can someone tell me what I'm doing wrong, I'm kinda new to this.

    I am trying to do the same type of thing. I want to have multiple rows on a form with checkboxes and use a plsql stored procedure to process the rows that are checked. The thing I have found is that is works with form method of 'GET'. I really need to use 'POST' though since I can have many rows to pass. GET attaches the passed variables to the URL. So, in your example, the actual URL would look something like portal_public.submit?p_textbox_string=whateveryoutypedin. Try changing your formOpen to use 'get' and hopefully you'll see what I mean.
    Anyone know anything about the difference on GET vs POST please let us know. Thanks!

  • Dynamic Page that uses javascript to run an executable on the client's pc

    I have an .exe file on a shared network that has to be called and executed from portal. The below code works as standalone but not from a dynamic page or an HTML portlet. Any ideas?
    <html>
    <script language="javascript" type="text/javascript">
    function runApp()
    var shell = new ActiveXObject("WScript.shell");
    shell.run('"c:/CstatsWeeklyreport.exe"',1,true);
    </script>
    <body>
    <input type="button" name="button1" value="Run Notepad" onClick="runApp()" >
    </INPUT>
    </body>
    </html>

    Thanks D, but that's not what I'm looking for. That changes which application a file opens with when you download it. That's not what I need for this situation. Here's a little more detail.
    The clients will have an application on their hard drive; it can be any application, even a custom application that they developed themselves. Then, they open a web page with a listbox full of items. Depending on which item they select, a query will return a file path to the .exe file itself. The .exe file resides on the client's hard drive, not on the server. So they're not downloading anything. Depending on the filepath returned by the query, the browser needs to start the process and open the .exe file for them.
    So let's say I have developed a simple text editor called Tedit. I have a file on my hard drive - "C:\TextEditor\bin\debug\TEdit.exe". When they click the open button, that file path is returned from the database. Then the javascript is called to start the process and open that program.
    Again, nothing is getting downloaded, the application resides on the user's hard drive and there is no file to associate it with.
    This can be done in IE using an ActiveX control. And it used to be possible in Firefox using the nsIFile or nsIProcess objects. But since FF15 that's not available anymore, so the javascript throws an error telling them that their permission is denied.
    What I need, is a javascript that will launch the .exe file from the user's hard drive without downloading anything.

  • How do You set -noverify in an HTML page that calls an applet

    I have an applet which runs fine from inside JBuilder when I specify a
    -noverify switch in the debugger. (java -noverify myapplet.class)
    Without this switch, I get a verification exception.
    So I need to specify the -noverify switch from inside a webpage so that when the client runs it, he does not get the same exception.
    The question is how do you pass -noverify to JVM from an HTML page that uses <applet> tag and javascript?
    Thanks

    Odd, because I work on an applet that gets built with 1.4. We have 30,000+ clients who use it every day, and I'm sure we don't tell them about setting -noverify switches in their plug-in control panel, and we don't (cuz we can't) set it in the applet (object/embed, actually) tag.
    Of course, I suppose it could be a backwards compatibility issue going from compiling in newer version than it's run in.

  • Calling Stored Procedure with a DATE input parameter

    Hi. A question about Date input parameters when calling a stored procedure...
    I have a procedure that takes a DATE parameter as input. I would like that DATE value to include a Time element.
    My Application Module method takes an input parameter as java.util.Date (myParamDate) - which will preserve a time element(?).
    However when I create the CallableStatement, I'm trying to set the parameter using setDate like this (for param 5):
                st = getDBTransaction().createCallableStatement("begin cs_my_pck.request_values(?,?,?,?,?,?,?,?); end;", 0);           
                Connection myConn = st.getConnection();
                ArrayDescriptor myArrDesc  =  ArrayDescriptor.createDescriptor("CS_FIELD_TABT", myConn);
                Array sqlParamNameArray = new oracle.sql.ARRAY(myArrDesc, myConn, paramNames.toArray());
                Array sqlParamValueArray = new oracle.sql.ARRAY(myArrDesc, myConn, paramValues.toArray());
                Array sqlFilterNameArray = new oracle.sql.ARRAY(myArrDesc,myConn,filterNames.toArray());
                st.setString(1, repType);
                st.setObject(2, sqlParamNameArray);
                st.setObject(3,sqlParamValueArray);
                st.setObject(4,sqlFilterNameArray);
                java.sql.Date myRepDate = new java.sql.Date(myParamDate.getTime());
                st.setDate(5,myRepDate);
                System.out.println("Report Date = " + myRepDate.toString());
                st.setString(6,repUser);
                st.setString(7,repAttach);
                // set out param
                st.registerOutParameter(8, Types.NUMERIC);
                st.execute();I understand java.sql.Date does NOT include a Time element. But setDate() accepts only a java.sql.Date so my procedure parameter ends up with a zero time element.
    How do I call this procedure retaining the Time element?
    Thanks.

    It includes time element, if you want more precision go with timestamp.
    http://docs.oracle.com/javase/6/docs/api/java/sql/Date.html

  • How to call plsql procedure or function and getting back the string?

    Hi Everyone,
    i am using Jdev 11.1.1.5.0.
    i have a requirement to call plsql procedure or function from my backing bean java file and get back the returned value from the procedure or function.
    what piece of simple code i need to write in my backing bean?
    please suggest.
    Thanks.

    As always you write the method to call he pl/sql in the application module, expose this method to the client (so you see it in the datacontroll) then create a operation binding to the method and call this operation from the bean. The result you get by operation.getResult();
    You should never call pl/sql from the bean directly!
    The doc shows how to call the procedure from an application module: http://docs.oracle.com/cd/E21764_01/web.1111/b31974/bcadvgen.htm#sm0297
    Timo

  • Is it posible to create a button on page that calls a workflow

    We are using Office 365/SharePoint 2013 and SharePoint designer.  I the workflow is set up in the library.  I was going to add a big button to the page so that when a user checks off a document and then hits the button it kicks off the workflow
    to delete the item.  I know I can make a quick link button in the menu, the issue is that these people do not know how to use menus.  The user requirement is that they have a "big red button" to click on. 
    Thanks in advance for your time. Steven

    Hi,
    Yes, you can add a view botton into your library and kick off the workflow with it as below:
    Best Regards,
    Eric
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Calling stored procedure from Reports Data wizard

    What is the exact syntax for entering a stored proc name in the Data wizard, I have created a TEST stored proc which all it does is a simple select statment but the Data wizard complaints that WRONG # of parameter when in fact TEST does NOT take any params. Any ideas?

    I am using Reports 9i & use JDBS query. When it gets to the section that says enter SQL or Stored proc, I enter a simple TEST proc which takes no params & get error msg as explained before ... I don't see any info in the Reports manual as to how to call a proc ... where would I find that info?
    Thx.

  • Call Oracle procedure with custom data type within Java and Hibernate

    I have a custom date TYPE in Oracle
    like
    CREATE TYPE DATEARRAY AS TABLE OF DATE;
    and I have a Oracle function also
    like
    CREATE OR REPLACE FUNCTION doesContain (list DATEARRAY, val VARCHAR2) RETURN NUMBER
    IS
    END doesContain;
    In my Java class,
    I have a collection which contain a list of java.util.Date objects
    When I call Oracle function "doesContain", how to pass my java collection to this Oracle function ...
    anyone can provide solutions?
    Please !!!
    Thanks,
    Pulikkottil

    Vu,
    First of all you need to define your types as database types, for example:
    create or replace type T_ID as table of number(5)Then you need to use the "oracle.sql.ARRAY" class. You can search this forum's archives for the term "ARRAY" in order to find more details and you can also find some samples via the JDBC Web page at the OTN Web site.
    Good Luck,
    Avi.

  • I cant call a procedure within a data template

    Hi,
    I m working in a data template because i want to call a prcedure befor running the report.
    My procedure is under the folder of procedure. it is not under a package.
    So i left the defaultpackage empty in the data model.
    *<dataTemplate name="Extraction_Template" dataSourceRef="mydatasource" defaultPackage="">*
    But it didsn't work.
    Help.
    SAAD

    The default package attribute is required if your data template contains any other calls to PL/SQL. For the source attribute for the data trigger definition, you need to have the source in the form of <package name>.<function name>
    Check out the report designer's guide for details.
    Thanks,
    BIPuser

  • HT4910 I have a simple question or 2. 1) how can I see what is on my icloud and how do I edit the data if I do not want it on icloud. 2) I have an app that I would like to update data - it doesn't appear to be doing that, how can I fix that? It is the mob

    1) how can I see what is on my icloud and how would I edit the data that is on it?
    2) I am having problems with an app syncing data with pc - how can I fix that? It is mobile noter.

    Welcome to the Apple Community.
    You can see what's in iCloud collectively at settings > iCloud > storage & back up > manage.... You can only edit the data through the appropriate app (contacts, calendars etc)
    For problems with 3rd party apps, contact the developer.

Maybe you are looking for

  • Looking for app to view my webcam

    Are there any apps that would allow me to view my webcam from my phone, say i hook up a webcam to my computer and use it as a security camera and be able to view it while im out and away on my phone?

  • Hdv with slow motion does flicker

    I´m editing now some clips at 1080 i and I need to use some slow motion clips. I use speed at 60 % and also active frame blendding and all it´s ok and I haven´t any trouble with the video. But when I do render I can see a big flicker at the picture.

  • Trouble with first RMI

    Hi, I just have written a simpliest RMI application with a help of a textbook. When I run both parts (server & client) on the same machine I get the expected output, but when I tried to run client on another machine - I got java.rmi.UnmarshalExceptio

  • In CQ 5.4 how to read search trends(keywords) with in specific date (like last week, 30 days...)?

    I have a requirement to display popular search key words with in specific date range. Like search key words searched in last week/ in last 30days/in 90 days. how to get date range searched keywords from Search Trends?? is there any other way to get t

  • Error:Invalid WSDL URL While Importing Internet WSDL In Webdynpro

    Hi Everyone, I Am Facing Error While Importing Webservices in Webdynpro. https://usint.skire.com/ws/services/mainservice?wsdl The above WSDL I tried in Both Webservice Model and Adaptice Webservice Model. I Am Geeting Invalid WSDL URL. is any configu