Working with PL/SQL Packages and Extension SDK

Hi,
I'm working on an Extension for SQL Developer. I want this Extension to wrap my PL/SQL Packages.
The Situation:
I got an Oracle DB 10g Revision 1 so I can't use the dbms_ddl call to wrap my Packages. I have to use the wrap.exe Utility.
When I right click on a PL/SQL Package I can choose "Wrap it!" and the Extension does the following: It implements an oracle.ide.controller.ContextMenuListener and when the handleEvent function is called I cast the Context Parameter to a oracle.dbtools.raptor.navigator.plsql.PlSqlNode Object.
Through the getSource function I get source code, print it into a file wrap it and write it back to the database.
But I have to call this for both the package body and the package header. How can I got the header if my oracle.dbtools.raptor.navigator.plsql.PlSqlNode Object is the body or the body if my oracle.dbtools.raptor.navigator.plsql.PlSqlNode Object is the header with the Extension SDK? There has to be a Way, cause there is also a standart function called "Save Package Spec and Body".
Can someone help me, please. :-)
Thanks
Andi
P.S.: I'm sorry for my bad english. :(

Greetings,
If you are using the HTP/HTF procedures/functions then the following code does what you are asking:
htp.formOpen( curl => 'schema.package.procedure_name', cmethod => 'post');
which would generate the following HTML:
<FORM ACTION='schema.package.procedure_name' METHOD="post">
The names of <INPUT> items between the <FORM> tags should match parameter names in your PL/SQL procedure.
Thanks,
Dale

Similar Messages

  • Working with PL/SQL packages and portlets

    I have a package which is called from my portlet SHOW procedure. In that package I have a form with checkboxes and text items. Once the form's submit button is clicked I only want to execute the procedure within the package.
    Please let me know how can I do it? I don't need to leave the page just execute the procedure that will update the records in the db tables.

    Greetings,
    If you are using the HTP/HTF procedures/functions then the following code does what you are asking:
    htp.formOpen( curl => 'schema.package.procedure_name', cmethod => 'post');
    which would generate the following HTML:
    <FORM ACTION='schema.package.procedure_name' METHOD="post">
    The names of <INPUT> items between the <FORM> tags should match parameter names in your PL/SQL procedure.
    Thanks,
    Dale

  • Eclipse beginner, work with already defined packages and folders structure

    Hi! my apologies if this is not the correct subforum, the question is about beginning Eclipse
    I've already compiled and run the "hello world" example but I need to run an already developed (not by me) software.
    I'm doing something wrong:
    first I created a workspace for Eclipse D\alex
    then I created a project MyProject there
    When I created MyProject the D\alex\MyProject\src was created.
    The class that I need to compile is in C\spv7.3\cb\pfv\spv\tests it is the package: package cb.pfv.spv.tests;
    I copied the folders cb\pfv\spv\tests to D\alex\MyProject\src, so now I have
    D\alex\MyProject\src\cb\pfv\spv\tests
    Then I do File-Open File and open the file I need to compile from D\alex\MyProject\src\cb\pfv\spv\tests
    then I try to compile it Project-Build Project but nothing happens.
    Thanks in advance and sorry if this question is too naive

    - is automatic compilation turned on by any chance? (by default it is I believe)
    - When you copied the files to the eclipse project directory, did you refresh the project view in the Eclipse editor?
    - when you navigate to the project folder, there is no target directory with generated classes?

  • What is available on new Windows servers that allow you to write scripts that can work directly with Windows, SQL Server, and Exchange Server?

    What is available on new Windows servers that allow you to write scripts that can work directly with Windows, SQL Server, and Exchange Server?
    a. PowerShell
    b. isql
    c. osql
    d. sqlcmd

    All questions seem to be from the interview or a test. I think I even took this test once, it's KForce test.
    For every expert, there is an equal and opposite expert. - Becker's Law
    My blog
    My TechNet articles

  • Slow scrolling with all add-ons and extensions disabled, but OK is safe mode

    I have a page for work, with a lot of links, that scrolls very slowly, with a choppy action. It is the same with all add-ons and extensions disabled. But when restarted in safe mode, the scrolling is OK.
    What else does the safe mode block? Or what could be the problem.

    In Firefox 4 and later Safe mode disables extensions and disables hardware acceleration.
    *http://kb.mozillazine.org/Safe_mode
    Try to disable hardware acceleration.
    *Tools > Options > Advanced > General > Browsing: "Use hardware acceleration when available"
    If disabling hardware acceleration works then check if there is an update available for your graphics display driver.

  • Captivate 8 Continually Crashes: When trying to publish, When trying to use the Object Style Manager. Also it is blocked by Windows Firewall (adobecaptivatews) every time it launches. Working with Captivate App Packager the pane to import from Adobe Edge

    Captivate 8 Continually Crashes: When trying to publish, When trying to use the Object Style Manager. Also it is blocked by Windows Firewall (adobecaptivatews) every time it launches. Working with Captivate App Packager the pane to import from Adobe Edge is missing, so not clear how to import. Overall it seems unstable. Am I doing something wrong? Trying to evaluate before buying so working on a trial version (14 days left), but a bit concerned with Captivate 8 Performance. Please help! :-

    Hi Vikram and Lilybiri,
    Thanks for your responses :-)
    I'm working on Windows 8.1... I think that I may have found the issue... I was saving the file in a project directory rather than the default My Captivate Projects folder...
    Perhaps Captivate was struggling to find resources it needed?
    It hasn't crashed for a while now, though it is struggling - I'm working with a 54 slide PPT presentation that is linked and it takes a very long time to interact.
    Sometimes it says that I've removed slides, which I haven't?
    Best,
    Christy.

  • "There are errors in one or more PL/SQL packages and functions"

    Hi all,
    first of all - my configuration:
    - OWB 10.0.3.0
    - one Server HP-UX
    - two oracle database instances (plato and platodev)
    My problem:
    when i try to start "Deployment Manager" and try to connect to the platodev instance i get the RTC-5260 and ORA-01017.
    I have no problems to connect to the second instance "plato".
    The output of service_doctor is as followed:
    ===================
    SQL> @service_doctor
    There are errors in one or more PL/SQL packages and functionsPlatform properties have been loaded correctly
    Platform location has been seeded correctly
    NLS messages have been loaded correctly
    The platform service is available
    There is a problem accessing the service startup script from the databaseserver
    Here is the detailed error message which contains the name of the startscript file:-
    The runtime property 'service_command' either does not exist orcannot be read successfully
    oracle.jdbc.driver.OracleSQLException: ORA-00942:
    table or view does not exist
    Please verify that the disk containing the file is visible to thedatabase server
    Please verify that the database server account has access rights on thefile
    There is a problem with the repository connection information used tostart the service
    Here is the detailed error message which contains the connectioninformation passed to the service:-
    Cannot retrieve the repository owner host, port, service-name fromwithin the database server
    Please verify that this information is accurate
    If this information is correct, then please use the'set_repository_password.sql' script to reset the stored password
    PL/SQL procedure successfully completed.
    ================================0
    I did not change the password.
    Can anyone help me?
    I appreciate your help.
    Thank you

    Solved!
    It was a wrong entry in wb_rt_service_nodes column service_name.

  • The DB tools doesn't work with Microsoft SQL

    I am tring to write series of waveforms to a database. The DB tools doesn't work with Microsoft SQL, but when i replace the SQL with Access, it works fine. I have to use SQL in the application.
    Any advice pls?
    longing for your reply.
    Attachments:
    test.vi ‏47 KB

    Right off hand I would say the problem is that you are connecting through ODBC. Try the native SQL Server driver, your connect string should define the provider as "SQLOLEDB.1".
    Mike...
    Certified Professional Instructor
    Certified LabVIEW Architect
    LabVIEW Champion
    "... after all, He's not a tame lion..."
    Be thinking ahead and mark your dance card for NI Week 2015 now: TS 6139 - Object Oriented First Steps

  • I changed my sim on my iPhone n reconfigured iMessage, it configured with my number but when i sign in with my apple id it says username/password is wrong while in all other things like FaceTime, App Store it worked with the same id and password

    i changed my sim on my iPhone n reconfigured iMessage, it configured with my number but when i sign in with my apple id it says username/password is wrong while in all other things like FaceTime, App Store it worked with the same id and password..
    can anyone help me to solve this issue

    i just opened my ipad, started my apple account/I.D. and realized I put the wrong e mail. I was having trouble correcting my I.D on the Ipad so I went to my laptop and make the proper changes/slash e mail address I wanted for my apple ID. I got back to my ipad and try to download an app I can't because I have to sign in my apple account and I can't because it still has the irrelivant I.D/email address..
    So, i did what you said.. went to setting>app store> tapped on my e mail.. it asked me to sign in (with my invalid emails address showing). I signed in with the password I had created. It said "incorrect".. I went to reset password. I reset password, tried to sign in and it says again "unvalid password".. this is getting irritating.  I have been asking and no one knows what to do.

  • Only one of my earbuds on my bose headphones works with my ipad, iphone and macbook- if I hold them there the right earbud will work, but for the life of me, I can't get them to both work. Why is this? And is Apple doing anything about this?

    Only one of my earbuds on my bose headphones works with my ipad, iphone and macbook- if I hold them there the right earbud will work, but for the life of me, I can't get them to both work. Why is this? And is Apple doing anything about this? While Apple's headphones have (finally) admittedly gotten better of late, I still prefer the much more comfortable headphones & sound quality that Bose makes and that I spent the money for.

    Bose Product Support

  • Hi all, i can't sync over wifi between my iPhone 4 and Windows 7 64 bit, wifi sync works with the same phone and my Windows 8 machine, tried solutions from other threads with no luck, just thought i'd see if anyone else had any ideas, thanks.

    Hi all, i can't sync over wifi between my iPhone 4 and Windows 7 64 bit, wifi sync works with the same phone and my Windows 8 machine so the problem seems confined to Windows 7. I've tried solutions from other threads -
    Making sure everything is allowed through firewall
    Rebooting phone/laptop/router
    Disabling ipv6
    Disabling all networks except the one curently on
    Re-installing iTunes
    Restoring iPhone
    No luck with any of those unfortunately so i just thought i'd see if anyone else is still without wifi sync after trying those as well and if you ever found a fix, thanks.

    I just wanted to leave a note that it's working now. I'm not sure if it was the latest iTunes update that got it working or that i decided to start a new library instead of using the one i had backed up on Windows 8 (it didn't occur to me to check using the old library when i re-installed iTunes). But if anyone is having this problem, it might be worth trying again with a new installation of iTunes to see if the latest update works for you, and if not, try using a fresh library instead of a backup (by fresh library i mean discard your old library completely and start a new library, not just restore as new iPhone, a whole new library).

  • HT1338 Presently running mac osx 10.5.8. Recent Firefox update says it no longer works with osx 10.5 and it's no longer supported by apple. Any suggestins?

    Presently running mac osx 10.5.8. Recent Firefox update says it no longer works with osx 10.5 and it's no longer supported by apple. Any suggestins?

    Use an earlier version of Firefox, use Safari, or upgrade to a later version of OS X. Any Intel Mac can run Snow Leopard.
    Latest version of Safari for Leopard: http://support.apple.com/kb/DL1422
    Information for Firefox: http://support.mozilla.org/en-US/kb/firefox-no-longer-works-mac-os-10-4-or-power pc
    http://support.mozilla.org/en-US/kb/firefox-no-longer-works-mac-os-x-10-5

  • Lync Server 2010 conference not working with Windows 8.1 and IE 10

    Hello,
    The problem is that whenever a Windows 8.1 user tries to join a Lync server 2010 conference using Internet Explorer 10 (or 11, tried that too) the user can't join the conference. If the conference is created by a Lync server 2013 user joining works fine.
    When using Lync 2010 client we get the following error in the client: "error id 87 source id 7".
    When using Lync 2013 client we end up with a blank conversation window.
    There are no traces in server log, client log or event log.
    Below is a set of use cases that may help you to understand what is the problem scenario. Each of these works or does not work with both Lync 2010 and Lync 2013 client.
    - Lync server 2010 conference, windows 7, Chrome, Firefox, IE 10 or 11 --> Works.
    - Lync server 2010 conference, windows 8.1, IE 10 or 11 --> Does not work.
    - Lync server 2010 conference, windows 8.1, Chrome or Firefox --> Works.
    - Lync server 2013 conference, windows 8.1, Chrome, Firefox, IE 10 or 11 --> Works.
    It does not help to add the meet address to IE compatibility list (Compatibility View Settings).
    If i press F12 in IE and change the document mode of the meet page to IE 9 version then i can join meetings with Windows 8.1 and IE 10. Unfortunately i cannot make that as a default setting for the meet website.
    Any ideas on how to get Lync server 2010 meetings working with Windows 8.1 and IE 10 or 11?
    IE is the company default browser. Windows 8.1 is not a default operating system but we have increasing number of Windows 8.1 computers in our environment (mainly directors).

    According to your description, it is hard to tell whether the issue is related with IE or Lync Server 2010 or both.
    Compare the log when Lync client on Window 8.1 with IE 10 or IE 11 join Lync server 2010 conferencing and Lync Server 2013 conferencing.
    Lisa Zheng
    TechNet Community Support

  • ITunes tells me, that I need to load version 11.1 in order to load a backup into my iPhone 5. I'm working with a windows PC and want to update my phone to iOS 7GM. version 11.0.5 is the highest I can get for windows. Can somebody help me?

    iTunes tells me, that I need to load version 11.1 in order to load a backup into my iPhone 5. I'm working with a windows PC and want to update my phone to iOS 7GM. version 11.0.5 is the highest I can get for windows. Can somebody help me?

    I'm assuming you followed a forum like Gizmodo to load the latest version of iOS 7 Beta on your device
    Alot of those forums forget to mention, iTunes 11.0.5 will allow you to update to the iOS 7 Beta but your device will no longer work unless you have the developer version of iTunes as well....
    I'd suggest you to research how to downgrade back to 6.1.3/4 and wait a few days for the iOS to be released,

  • I have been using the Firefox feature in which I could have multiple sets of tabs open but see only the set I was working with. I updated and now feature is gon

    I have been using the Firefox feature in which I could have multiple sets of tabs open but see only the set I was working with. I updated and now feature is gone. I had a small icon on the upper right side of my toolbar. I used it all the time to keep separate windows for news, financial items, travel plans, etc. Has this been removed from Firefox?

    Hi,
    The [https://support.mozilla.org/en-US/kb/tab-groups-organize-tabs Tab Groups] feature is still present. You can try to right-click the + after the last tab and [https://support.mozilla.org/en-US/kb/how-do-i-customize-toolbars Customize]. If the icon is hidden behind another, or if it's available inside the Customize mini window, you can place it back. If the problem persists, you can also try to '''Reset toolbars and controls:''' and '''Make Changes and Restart''' [https://support.mozilla.org/en-US/kb/Safe%20Mode Safe Mode] start screen.

Maybe you are looking for