Procedure parameter list

Hello all.
I'm writing class which will generate code of OracleCommand automatically.
Something like this:
OracleCommand cmd = GenerateCommand("MyStoredProcName");
I need to get list of parameters and its types too.
How can do it with Oracle? Is there special packages or views where i can find it?
PS. In PL/SQL Developer this info can be found by clicking "Describe" on stored proc.
PPS. I'm working with .Net, but I think that it is unimportant.

You can go to the data dictionary and use:
all_procedures
all_arguments (Oracle don't know difference between argument and parameter...)
Be careful because those view definitions change between 10.1 and 10.2 versions of Oracle. Which trip up some versions of IDE such as TOAD.
Or you can use DBMS_METADATA in v10 onward.
I don't know about .net but OCI and OCCI have the ability to describe the target you have a handle to and give back list of table columns and types, or procedure parameters, so I guess maybe that Oracle provider for .net supply this ability too. Maybe go ask on the .net provider forum.
I don't really see the point of what you're trying to do though.

Similar Messages

  • How and where should I create a parameter list

    Hi, I4m trying to create a parameter lists but I don4t know where and how.
    I guess as a program unit but as function or procedure, sorry I4m new on this for that I4m finding this a bit difficult. Please, someone could help me to understand this:
    PROCEDURE Run_Emp_Report IS
    pl_id ParamList;
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    ** If it does, then delete it.
    IF NOT Id_Null(pl_id) THEN
    Destroy_Parameter_List( pl_id );
    END IF;
    ** Create the 'tmpdata' parameter list afresh.
    pl_id := Create_Parameter_List('tmpdata');
    ** Add a data parameter to this parameter list that will
    ** establish the relationship between the named query
    ** 'EMP_QUERY' in the report, and the record group named
    ** 'EMP_RECS' in the form.
    Add_Parameter(pl_id,'EMP_QUERY',DATA_PARAMETER,'EMP_RECS');
    **Pass a Parameter into PARAMFORM so that a parameter dialog
    will not appear
    **for the parameters being passing in.
    Add_Parameter(pl_id, 'PARAMFORM', TEXT_PARAMETER, 'NO');
    ** Run the report synchronously, passing the parameter list
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;

    Hi,
    What you've pasted the code here is absolutely correct.
    You'll have to write the code in Forms builder.
    You can either paste the same code in a procedure & call that procedure
    from button's When-Button-Pressed trigger or paste the code in
    your button's When-Button-Pressed trigger like this :
    DECLARE
    pl_id ParamList;
    BEGIN
    ** Check to see if the 'tmpdata' parameter list exists.
    pl_id := Get_Parameter_List('tmpdata');
    Run_Product(REPORTS, 'empreport', SYNCHRONOUS, RUNTIME,
    FILESYSTEM, pl_id, NULL);
    END;
    However, don't write the code in a function as you will need to return some value from the function.
    Thanks,
    Mayur Shah
    [email protected]

  • List all parameter in a parameter list

    Hi all,
    My form have a Parameter List which will have different number of parameters added to it based on different situations.
    The parameter list will then pass to a procedure, does anyone know How to list out all the parameters from the parameter list
    I mean, as the parameter name, parameter value & the number of parameter are changed in runtime, that's y I don't know how to show all the parameters from the list.
    Thanks!

    How about adding one more parameter that contains indicators for each parameter you have added to the list? A simple text field might work with zeros and ones where ones correspond to parameters that are present and zeros for those not present. Or maybe a comma separated list of abbreviated indicators, but that would be more difficult to parse.

  • How to Determine if parameter is in a Parameter List?

    Hi all,
    I have to write a procedure to be used by both Designer Generated Forms and hand coded forms to handle navigation buttons. The procedure so far looks like:
    procedure proc_nav_call_form (p_form_name in varchar2, p_param_list in paramlist) is
    begin
    delete_parameter(p_paramlist,'CALL_METHOD');
    proc_generic_call_form(p_form_name,'Y','Y','p_paramlist;
    end;
    The problem I have is that the parameter list may or may not contain the 'CALL_METHOD' parameter. Designer generates the 'CALL_METHOD' parameter as a bug, so i need to have the delete_paramter call to get rid of it as a work around. Hand coded apps will not have the 'CALL_METHOD' parameter.
    The hand coded modules raise a 'FRM-47017: Cannot delete parameter CALL_METHOD....' error as the parameter does not exist in the list.
    Is there any functionality in Forms to be able to check if the parameter CALL_METHOD exists in the list before I try to delete it? I can't find anything in the documentation.
    Thanks,
    Michael.

    Thanks, but that is not an option.
    I need to ensure that a parameter list does NOT contain the CALL_METHOD parameter. If the CALL_METHOD parameter exists in the list, then delete it. If it doesn't exist, take no action and continue.
    Cheers,
    Michael.

  • FRM-47013 error: Cannot add parameter P LEVEL to Parameter List REPDATA: pa

    Hello! I am using Forms 6i and get the above error-FRM-47013 error: Cannot add parameter P LEVEL to Parameter List REPDATA: parameter with this name exists. when clicking on the Run Report button on a parameter form. I have googled and I'm doing everything I know to do, but cannot get rid of the error. Any help is greatly appreciated! I only have 3 months Oracle experience coming from a VB/C# background.
    Here's my code that is on the Run Report Program Unit on the parameter form:
    PROCEDURE run_report IS
    pl_id ParamList;
    pl_name VARCHAR2(10) := 'repdata';
    v_rep_num number;
    hold_where_clause varchar2(2000);
    charFY                                                  varchar2(4);
    the_connect varchar2(10);
    CharAlertText          varchar2(300); --Alert message text
         NumAlertVal      number; --Alert prompt 
    begin
         if :CONTROL.BEGINNING_FISCAL_YEAR is null or :CONTROL.ENDING_FISCAL_YEAR is null then
                        CharAlertText := 'You must enter Beginning and Ending Fiscal Years before running this report!';
                        set_alert_button_property('ALERT_1',ALERT_BUTTON1,LABEL,'Ok'); --alert value equals 88
                        set_alert_property('ALERT_1',title,'No Year');
                        set_alert_property('ALERT_1',alert_message_text,CharAlertText);
                        NumAlertVal :=show_alert('ALERT_1');
                        raise form_trigger_failure;
         end if;
         if :CONTROL.BEGINNING_FISCAL_YEAR > :CONTROL.ENDING_FISCAL_YEAR then
                        CharAlertText := 'You must enter an Ending Year Fiscal Year greater than or equal to Beginning Year!';
                        set_alert_button_property('ALERT_1',ALERT_BUTTON1,LABEL,'Ok'); --alert value equals 88
                        set_alert_property('ALERT_1',title,'Invalid Year');
                        set_alert_property('ALERT_1',alert_message_text,CharAlertText);
                        NumAlertVal :=show_alert('ALERT_1');
                        raise form_trigger_failure;
         end if;
    --This section creates system identified parameter list.      
    BEGIN
    pl_id := Get_Parameter_List(pl_name);
    IF Not Id_Null(pl_id) THEN
    Destroy_Parameter_List(pl_name);
    --pl_id := Create_Parameter_List(pl_name);
    --IF Id_Null(pl_id) THEN
    --Message('Error creating parameter list '||pl_name);
    --RAISE Form_Trigger_Failure;
    --END IF;
    END IF;
    pl_id := Create_Parameter_List(pl_name);
    Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy);
    IF Id_Null(pl_id) THEN
    Message('Error creating parameter list '||pl_name);
    RAISE Form_Trigger_Failure;
    END IF;
    END;
    --End section that creates parameter list.
    BEGIN
    -- This will get the next sequence number from the database to make the
    -- report file name unique
    select ombil.report_seq.nextval
    into v_rep_num
    from dual;
    exception when no_data_found then
    display_error_text(203,'S','N');
    raise form_trigger_failure;
    END;
    If :control.hierarchy = 1 then
    hold_where_clause := ' ';
    elsif :control.hierarchy = 2 then
         hold_where_clause := ' AND DIV.ID = ' || :control.division_poplist ||' ';
    elsif :control.hierarchy = 3 then
    hold_where_clause := ' AND DIST.ID = ' || :control.district_poplist ||' ';
    elsif :control.hierarchy = 4 then
              hold_where_clause := ' AND PS.ID = ' || :control.psite_poplist ||' ';
    elsif :control.hierarchy = 5 then
    hold_where_clause := ' AND PS.ID IN ' || :CONTROL.MULTI_PROJECT_SITES ||' ';
    end if;
    --charFY := 'where to_char(MP.fiscal_year, ''RRRR'') = to_char(:CONTROL.FISCAL_YEAR, ''RRRR'')';
    Add_Parameter(pl_id,'PARAMFORM',TEXT_PARAMETER,'NO');
    Add_Parameter(pl_id,'DESTYPE',TEXT_PARAMETER,'FILE');
    Add_Parameter(pl_id,'DESNAME',TEXT_PARAMETER,:global.cur_reports_path||to_char(v_rep_num)||'.'||:control.format);
    Add_parameter(pl_id,'P_WHERE',text_parameter,hold_where_clause);
    Add_parameter(pl_id,'P_FY_BEGIN',text_parameter, to_char(:CONTROL.BEGINNING_FISCAL_YEAR, 'DD-MON-YYYY'));
    Add_parameter(pl_id,'P_FY_END',text_parameter, to_char(:CONTROL.ENDING_FISCAL_YEAR, 'DD-MON-YYYY'));
    --Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy); 
    /*if :control.format = 'CSV' then
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,'DELIMITED');
              Add_Parameter(pl_id,'DELIMITER',TEXT_PARAMETER,',');
                        run_product(REPORTS,'es_adm_mit_percent_csv.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
    else */
              --Add_parameter(pl_id,'P_LEVEL',text_parameter,:control.hierarchy);
    Add_Parameter(pl_id,'DESFORMAT',TEXT_PARAMETER,:control.format);
         --end if;
    run_product(REPORTS,'es_fish_mit_reqs.rep',SYNCHRONOUS,RUNTIME,FILESYSTEM,pl_id,NULL);
    --Destroy_Parameter_List(pl_id);
    web.show_document(:global.cur_reports_url||to_char(v_rep_num)||'.'||:control.format,'_SELF');
    exception when others then
    display_error_text(202,'S','N');
    end;
    Edited by: [email protected] on Feb 27, 2009 6:35 AM

    A coworker figured out that the switchboard data input form was pointed at the wrong executable file. I knew there wasn't anything wrong with my code! I'll remember this one next time!
    Edited by: [email protected] on Feb 27, 2009 12:24 PM

  • When sharing iMovie11 project  with iDVD inmediately message 'the project could not be prepared for publishing because an error occurred (Error in user parameter list).  Finalize issue?

    When sharing my 60 minutes iMovie project with iDVD inmediately message 'The project could not be prepared for publishing because an error  occurred (Error in user parameter list)' appears. Could not find the user parameter list, so I've no more info about this error.
    Option File - Finalize Project gives inmediately the same errormessage.
    Also option Share - Media Browser - Large/Medium/Mobile give the same errormessage.
    Please advise, thank you!

    Additional info: trying to write to internal disk (268 GB Free out of 499 GB)
    Please advise, alko80

  • Reports 6.0 and Parameter Lists and Generate to File

    I am using the run_product built in from Forms 6.0 and opening
    up a report passing it several parameters via a parameter list.
    Everything works great when previewing the report.
    There is the option in the report preview under File -> Generate
    to File. When I generate a report to file using any type of
    format it appears that the report does not use the parameters
    that I passed in originally from the form. It appears that it
    looses all the parameters I passed in. This is most concerning
    to me. Am I doing something wrong or is this a "feature" I
    didn't know about? I really would like users to have this
    ability.
    null

    Yes I guess this will work, but the option to generate to file
    is extremely misleading if you ask me. This option should
    generate the current report with the current parameters. This
    is unacceptable as far as I am concerned and should be
    considered a bug. Oracle needs to give us more control over
    FORMS and REPORTS into all too many situations I have been
    frustrated because I am not able to do something that I want to
    do.
    I feel in general REPORTS object is very limited compared to
    crystal reports....
    Dan Paulsen (guest) wrote:
    : Give the user the option on the calling form whether to save
    the
    : report to file or just view it. If they want to save to file,
    : pass the parameter to save to file when you call the report
    and
    : suppress the parameter form, this will eliminate the problem.
    : Spencer Tabbert (guest) wrote:
    : : I am using the run_product built in from Forms 6.0 and
    opening
    : : up a report passing it several parameters via a parameter
    : list.
    : : Everything works great when previewing the report.
    : : There is the option in the report preview under File ->
    : Generate
    : : to File. When I generate a report to file using any type of
    : : format it appears that the report does not use the
    parameters
    : : that I passed in originally from the form. It appears that
    it
    : : looses all the parameters I passed in. This is most
    : concerning
    : : to me. Am I doing something wrong or is this a "feature" I
    : : didn't know about? I really would like users to have this
    : : ability.
    null

  • How to get key name  from parameter list

    hi..
    i want string from parameter list.. i hv already created parameter list like
    ADD_PARAMETER (param_list_id, 'EMPID', TEXT_PARAMETER,'123');
    ADD_PARAMETER (param_list_id, 'EMPNM', TEXT_PARAMETER, 'ABC');
    ADD_PARAMETER (param_list_id, 'EMPADD', TEXT_PARAMETER, 'XXX');
    i got value like '123' ,'ABC', 'XXX' using
    eg. get_parameter_attr(param_list_id,'EMPID',aprmlist,avalue)
    but i want key name like 'EMPID' , 'EMPNM', 'EMPADD' from param_list_id
    is it possible to get this key name from parameter list ???
    Thanks...

    I cannot think of a way to do that. The code that reads the list is supposed to know the key names. That is sort of the point with parameter lists. If you need to have parameter lists that can be interepreted by some code that doesn't know about a specific list but knows how to interpret it by inspecting the key names, perhaps you can specify a separate parameter list with the key names as values and call the keys of that list something generic?

  • CR 2008, all values in parameter list not showing up

    The parameter is not optional, the parameter value exists in the view on SQL server, but at report run-time, only get 5 pages of possible values to select from and user needs to go back farther to get the required report.
    I can get the report to run in full CR version by passing the value into the select expert, but users only get prompt window from the runtime version of CR.
    How can I get ALL the values of the field in the view to show up in parameter list?
    Thanks for any pointers.
    Robert

    Not sure if the help you metion is equivalnet to KB [1218588 - How to increase the number of values in a dynamic parameter list?|http://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/oss_notes_boj/sdn_oss_boj_bi/sap(bD1lbiZjPTAwMQ==)/bc/bsp/spn/scn_bosap/notes%7B6163636573733d36393736354636443646363436353344333933393338323636393736354637333631373036453646373436353733354636453735364436323635373233443330333033303331333233313338333533383338%7D.do], but have a look.
    Also, make sure you are on SP3:
    https://smpdl.sap-ag.de/~sapidp/012002523100007123572010E/cr2008_sp3.exe
    Ludek
    Follow us on Twitter http://twitter.com/SAPCRNetSup
    Got Enhancement ideas? Try the [SAP Idea Place|https://ideas.sap.com/community/products_and_solutions/crystalreports]

  • Passing a parameter list from a web form to a report

    I am using FORMS6 and REPORTS6, with OAS 4.07 on NT4 (SP3).
    In client server mode all works well - i am able to pass parameter lists from my calling form to the relevant reports and view them (using RUN_PRODUCT).
    However, when i try and do the same by deploying the web Form I come up against several obstacles.
    1. How do you pass a parameter list over without using "Paramform=Yes" - a waste of time seeing a html version of the reports parameter form when all the necessary parameters have been selected in the form.
    2. if i use web.show_document, with paramform=no, the report runs but with it's default settings.
    Any light you can shed would be greatly appreciated.

    Hi Tony ,
    Launcher form is just a simple form(Non database form) which will be having all fields that is required for the report and button to run the report .
    When button pressed trigger
    Pass all the parameters which are required using Run_product tool & Call the report by Web.Show_document
    Best way to see the report is in .pdf format in adobe acrobat reader
    I hope it will help you
    Bye
    Rao guduru

  • Im trying to share a project to idvd and gettingThe project could not be prepared for publishing because an error occurred. (Error in user parameter list) what does this mean

    I've been trying to burn my projects in imovie to dvd's and i keep getting the forllowing error message "UNABLE TO PRPARE PROJECT FOR PUBLISHING"
    "The Project could not be prepared for publishing because an error occured (Error in user parameter list)
    Does anyone know why this is happening and what I can do to fix it?
    Thanks!!

    Can you give more details?   What exactly is the entire error message text?  there should be an error number too.   Are you trying to finalize this to an external disk?

  • I keep getting this message from Imovie: Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error in user parameter list)

    I keep getting this message from Imovie:
    Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (Error in user parameter list)

    Bartirn,
    I called Apple under my Mac support contract.  They were completely unfamiliar with the error you and I were encountering.   Updating to 10.8.5 didn't help.
    I'm stopping my TimeCapsule while I perform these tasks, but I don't know yet if I have a consistent work-around.
    B

  • HT2479 Ok so imovie 11 won't let me export my movie anywhere, no matter what it seems. all it says is he project could not be prepared for publishing because an error occurred. (ParamErr: error in user parameter list).

    Any help would help.

    Hi
    Error -50 paramErr  - Error in user parameter list
    Can there be any external hard disks - if so How is/are it/they formatted ?
    Must be Mac OS Extended (hfs) if used for Video.
    UNIX/DOS/FAT32/Mac OS Exchange - works for most but not for VIDEO.
    • free space on internal boot hard disk? How much ?
    Video codec
    • streamingDV, AIC etc. (not .avi, .mp4, .m4v, .wmv etc as they are containers not codecs)
    Pictures
    • in what format ? .jpg, .bmp, .tif, else ?
    Audio
    • from where/what format ? iTunes, .avi, .mp3, .aiff, else ?
    Corrupted preference file: The "com.apple.iMovie.plist" file - trash it
    Many users has not observed that there are TWO libraries.
    • Library - at root level
    • Library - in user/account folder - THIS IS THE ONE to look into
    from Luke Burns
    I fixed the problem.. but it was very, very strange. I had a very long section for credits and set the line spacing to 1.0.. for some reason this caused it. I removed it, and it worked fine. I put it back, and I couldn't preview or play the video.
    I don't know why that could cause that big of a problem, but it did..
    Klaus1
    You need more free space on your hard drive.
    Where do Your material come from
    • Camera
    • External hard disk
    • USB-memory
    And all are connected so that iMovie can find it ?
    from: jonorparkerjon
    After phone support from apple I ended up creating a new project and adding all 117 clips back in individually till I found out what clips flagged and would not allow me to export. I had 3 I deleted and replaced and everything works now 1hr after tedious work....
    from Karsten S
    Shorter clips than 1,5 sec might be one of the culptrits
    Bengt cont.
    Set-Up might differ
    • Mac OS - most probably X.7 or more
    • iMovie version - more than iM'11 v. 9.0.4
    Action taken
    • Finalizing project - I never do as I never understood the gain to do so
    • Share as HD to iDVD - never give any gain but if it works the resulting DVD is less quality than if SD-quality was shared
    fps - set
    •  I only use PAL (25fps
    Yours Bengt W

  • What is  (ParamErr: error in user parameter list)

    I get the following error message when I try to send my imovie '11 project to iDvd:
    Unable to prepare project for publishing. The project could not be prepared for publishing because an error occurred. (ParamErr: error in user parameter list)
    Anybody know why?

    There may be more than one cause for this error, but in most cases the project to be published includes short clips of less than about 1.5 seconds duration.
    Duplicate the project. From the duplicate, delete the short clips and try to publish. If that doesn't solve the problem, see the post by Didorx in this thread.

  • What does "error in user parameter list" mean? how do i fix it?

    Can't burn my movies to iDVD because this message keeps showing up "Unable to prepare project for publishing". The project could not be prepared for publishing because an error occurred. Error in user parameter list. Please tell me how to fix this.

    The first thing I test to do when iMovie doesn't behave as it should is to trash the preference file.
    It's a very common way to try to solve problems with Applications that has problems.
    Reg iMovie that file is named as one or more of these
    com.apple.iMovie.plist
    com.apple.iMovie3.plist
    com.apple.iMovie7.plist
    com.apple.iMovie8.plist
    com.apple.iMovie9.plist
    com.apple.iMovieApp.plist
    Not always all of them are present - but many can be
    I also trash
    com.apple.iApps.plist
    and clean out the Cache folder
    All of them are in a folder named Library - BUT as there are more than one - most people chose the wrong one.
    The obvious one is Library on Root level - first window that opens when You open Your Start-Up Hard Disk.
    AND - that is the wrong one
    The one to find is the one in Your User Account folder - and in Mac OS X.7 and so on - it is HIDDEN.
    Easiest way to find the correct one is to go up to the top row Menu (Apple symbol to the top Left hand corner of screen) and here go to the right to GO and keep Option-key DOWN and it will Show You the correct Library.
    Now - here find the folder Preferences to move out the com.apple.xxxxxx files to the desktop WHEN APPLICATION IS NOT RUNNING ! IMPORTANT !
    then find the folder named Caches - here too - try to identify the cache files that are connected to the application - and move them too to desktop.
    Now try to run Your application e.g. iMovie
    There is an easier way to test if this is the real problem by
    • Goto Apple menu and down to System preferences
    • Select Accounts
    • Click on the Plus sign and create a new user e.g. test1
    • Apple menu - and down to Log out
    • Now log into the new user test1
    • Now see if application runs as intended
    If so - then the problem to 99% is in the Pref or Cache files.
    Yours Bengt W

Maybe you are looking for

  • Last Purchase Price Currency

    Hi Experts, My client purchases stock from all around the world.  When posting a Purchase Invoice in Dollars, the Last Purchase Price of the item is then changed to USD. Is it possible to always show the Last Purchase Price in the local currency (GBP

  • Funds precommitment in PR

    Hi, Does anyone know how to configure funds pre-commitment for PR and funds commitment in PO? Many Thanks.

  • IWork asking for my serial number after migration

    I have recentlly migrated to a new MBP. I had bought previous versions of iWork, but I decided against having iWork preinstalled this time when buying the MBP. Today I start up Keynote for the first time after the Migration. I realize that, even thou

  • Is our oracle 9iR2 db is a shared mode or dedicated mode? whats difference?

    Friends, We are using Oracle 9iR2 Database. How can i know our db is a shared Server architecture or a dedicated server architecture? Also, what is the difference between these two? Please tell me in short. Note: I didn't install/create our db. Thank

  • MGCP and H.323 in same router

    We have few 3825 and 3845 routers with VWIC-1MFT-T1, VIC2-2FXS and VIC2-2FXO cards. CCM is 4.1(3)SR1 Checked MGCP & H.323 can support analog FXO interfaces loop-start/ground-start signaling, analog FXS interfaces loop-start/ground-start signaling and