How to call fn form within a procedure? - pl help

Hello
I have a procedure which has a set of statements that is called repeatedly.i would like to put them inside a function, passing an IN parameter as well. How to do that? and how do u call the fn from within the procedure?
Pl help.
rgds

SQL> create or replace package calls is
  2      procedure proc ;
  3  end ;
  4  /
Package created.
SQL> create or replace package body calls is
  2      function func(p_param in number) return number is
  3      begin
  4          dbms_output.put_line('param is:'||p_param) ;
  5          return(p_param * 2) ;
  6      end ;
  7      procedure proc is
  8          ret_val number ;
  9      begin
10          ret_val := func(100) ;
11          dbms_output.put_line('ret_val='||ret_val) ;
12      end ;
13  end ;
14  /
Package body created.
SQL> exec calls.proc ;
param is:100
ret_val=200
PL/SQL procedure successfully completed.
SQL>Message was edited by:
Kamal Kishore

Similar Messages

  • How to call Interactive form within Workflow ?

    Hi,
    I have created a interactive form within WebDynpro for ABAP which triggers a workflow for approval. Now I would like to open the same interactive form by the approver and approve the request.
    Any input for calling interactive form from Workflow would be helpful.
    Regards
    Ravikumar

    u need to create the events step by step in the workflow.
    first event would be the condition which should be checked so that it gets triggered when the condition is satisfied.
    second would be the the triggering in which u will get this triggered. u need to create a class in which the adobe form's code will be present like the FM it generates etc.in this class u will to write some methods for eg: if u create method say send_mail in this class u will code all the logic for sending the adobe form as a mail and u assign this in the workflow. So now, in the workflow all the methods that u assign will get triggered.

  • How to call Oracle Form within Oracle Form?

    Hi,
    I have a requirement to call a customized Oracle Form from standard Oracle Form (Special Information screen) and vice versa.
    Then need to display the person detail accordingly.
    Is it possible to be done? Appreciate guidance on this item.
    Thanks and Regards,
    SC

    Veerendra,
    Sounds like you are using the Oracle E-business Suite (EBS). If that is the case, opening a form is different in the EBS than it is in a non-EBS Forms application. You have the register the Custom Form in the EBS for starts.
    This question should be posted in the General EBS Discussion forum not here. Also, I recommend you take a look at the Oracle Applications Documentation and find the "Oracle Applications Developer's Guide".
    Craig...

  • How to call a form from report? in 6i

    How to call a Form from Report? In Developer 6i of oracle. Plz tell me tex.

    try this
    declare
       AppID PLS_INTEGER;
    begin
         AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
    exception when others then
          srw.message(1,'Errror');
    end;Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

  • How to call a form with dabble clicking on a record with one time where

    Hi All,
    How to call a form with dabble clicking on a record with one time where clause. I mean when i dabble click on the current record i want to call another form with details of the
    record with onetime where clause. Can anyone help me in this regard.
    Now i am calling a form with parameter with onetime where but this should avoid.
    Thanks in advance
    Arif

    Hello,
    I mistakenly mark it as solved. There is a problem remain. when i placed the code below it do not execute with the where condition. I mean the condition to execute is not work.
    All records executes. Please correct my code--
    Here the WHEN-BUTTON-PRESSED-trigger on the Edit-Button:
    :GLOBAL.MODE:='EDIT';
    :GLOBAL.REQ_ID:=:PROBLEM_REQUEST.REQ_ID;
    CALL_FORM('REQUEST_ID_PARAM',NO_HIDE,DO_REPLACE,NO_QUERY_ONLY);And also, WHEN-NEW-FORM-INSTANCE-trigger of REQUEST_ID_PARAM:
    DEFAULT_VALUE(NULL, 'GLOBAL.MODE');
    DEFAULT_VALUE(NULL, 'GLOBAL.REQ_ID');
    IF :GLOBAL.MODE='EDIT' THEN
    GO_BLOCK('PROBLEM_REQUEST');
    EXECUTE_QUERY;
    SET_BLOCK_PROPERTY('PROBLEM_REQUEST', INSERT_ALLOWED, PROPERTY_FALSE);
    END IF;Arif

  • How to call the form bean value on jsp withthe help of jstl tag

    hi
    all friends
    i am working in struts & i use jstl tag in jsp. i have one problem rise is how to call the form bean value in jsp page by using jstl tag.
    i now how to retrive the value through jsp:logic
    eg. <logic:empty name="userListForm" property="users">
    NO USER FOUND
    </logic:empty>
    see * userListForm mean formbaen name.
    * users means collection object.
    so how can i write above e.g in jstl

    You use the jstl core:if or core:choose combined with the EL:
    <c:if test="${empty users.userListForm}">
    NO USERS FOUND
    </c:if>I suggest you lookup the jsp expression language (EL) using google, it's very powerful.

  • How to call a sql server stored procedure from oracle

    Hi all,
    Please anybody tell me how to call a sql server stored procedure from oracle.
    I've made an hsodbc connection and i can do insert, update, fetch data in sql server from oracle. But calling SP gives error. when I tried an SP at oracle that has line like
    "dbo"."CreateReceipt"@hsa
    where CreateReceipt is the SP of sql server and hsa is the DSN, it gives the error that "dbo"."CreateReceipt" should be declared.
    my database version is 10g
    Please help me how can i call it... I need to pass some parameters too to the SP
    thanking you

    hi,
    thank you for the response.
    when i call the sp using DBMS_HS_PASSTHROUGH, without parameters it works successfully, but with parameters it gives the following error
    ORA-28500: connection from ORACLE to a non-Oracle system returned this message:
    [Generic Connectivity Using ODBC][Microsoft][ODBC SQL Server Driver]Invalid parameter number[Microsoft][ODBC SQL Server Driver]Invalid Descriptor Index (SQL State: S1093; SQL Code: 0)
    my code is,
    declare
    c INTEGER;
    nr INTEGER;
    begin
    c := DBMS_HS_PASSTHROUGH.OPEN_CURSOR@hsa;
    DBMS_HS_PASSTHROUGH.PARSE@hsa(c, 'Create_Receipt(?,?)');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,1,'abc');
    DBMS_HS_PASSTHROUGH.BIND_VARIABLE@hsa(c,2,'xyz');
    nr:=DBMS_HS_PASSTHROUGH.EXECUTE_NON_QUERY@hsa(c);
    DBMS_HS_PASSTHROUGH.CLOSE_CURSOR@hsa(c);
    end;
    Create_Receipt is the sp which requires two parameters.
    please give me a solution
    thanking you
    sreejith

  • How to Call Oracle Form From Oracle ADF

    Hi All,
    Version - Oracle Jdeveloper 11.1.1.5
    In Oracle Adf - when i click on Button how to call oracle form?
    Please help....
    Thanks..
    Sk

    And there is a tool called oraFormFaces that has some advanced linking api to access forms etc. Do a google search to find info on this.

  • HOW TO CALL A FORM FROM ANOTHER FORM

    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]

    Balraj wrote:
    HOW TO CALL A FORM FROM ANOTHER FORM [local machine]The way you asked question is this bit of request or order?
    Secondly, you used capital latters which are being treated as Shouting Language. So, always try to switch off the Capslock of your keyboard.
    Thirdly, you are very lazy to serach on forum or google for your problem instead of waiting someone to anwer your question.
    Your should seriously have a look at FAQ.
    http://wikis.sun.com/display/Forums/Forums+FAQ
    Also here.
    http://www.catb.org/~esr/faqs/smart-questions.html
    Please read documentation for the initial questions.
    -Ammad

  • How to call a form without path

    how to call a form without path
    i.e.,
    we are calling a form as
    call_form('D:\casestudy\register');
    but without specifying path how to call a form?

    If you are new to Forms then please have a read through the Oracle Forms documentation that is on this web site - all is explained somewhere.
    This is a good start : http://download-uk.oracle.com/docs/cd/B25016_07//doc/dl/web/B14032_03/toc.htm

  • How to call a form from WEB.SHOW_DOCUMENT 10g  Is this possible?????

    how to call a form from WEB.SHOW_DOCUMENT
    I would like to call a form using the WEB.SHOW_DOCUMENT the idea is from the menu that is attached to the form instead of use call_form use WEB.SHOW_DOCUMENT(...my_newform.fmx)
    Is this possible?????

    Hi ,
    I think yes...but under some circumstances....
    In your formsweb.cfg file you should define a named configuration alias... such as:
    [TEST]
    workingDirectory=C:\TEST_DIR
    form=C:\TEST_DIR\MY_NEWFORM.FMX
    Then , after stopping , starting your OC4J instance..... you call that as (in a button , for example):
    web.show_document('http:<your_server>:<port>/forms/frmservlet?config=[TEST]',_blank);
    I have not tested it.....
    Regards,
    Simon

  • HOW TO CALL A FORM FROM REPORTS?

    How to call a FORM6i form from Oracle Reports6i? Is it at all possible?
    Regards.
    Satyaki De.

    Hi Jakub,
    I don't mean to say that you cannot do what you said in your response above.
    But what I want to say that Oracle does not support forms to be called from reports.
    DDE package is meant for different purpose.
    Dynamic Data Exchange (DDE) is a mechanism by which applications can communicate and exchange data in Windows. DDE client support is added as a procedural extension to Reports Builder. The PL/SQL package for DDE support provides application developers with an Application Programming Interface (API) for accessing DDE functionality from within PL/SQL procedures and triggers.
    Thanks,
    Raj
    http://www.oraclebrains.com

  • How to call a form in Oracle Portal?

    I'm trying to call a form from my corporate Oracle Portal. Can anyone advice me how to do it?
    Thanks and Regards.

    Alex,
    you are not providing enough information, making it not easy to provide a short answer without going down the whole tree of possibilities.
    Case1: You want it appear as a link in Oracle Portal.
    a) You can use the "myfavorite" portlet, which is a kind of bookmark list that can be managed by each user individually.
    b) you ca create a content area and make it to appear as a type URL. Then you define it as a portlet.
    c) You create a HTML page with all the forms links in it and use the URLServices portlet or teh HTML portlet
    Case2: You want it to appear within the portal as a portlet.
    In this case you choose the URL Services. URL services are a part of the Portal Development Kit and in there a part of the Java Portal Development kit.
    It is not recommended to integrate Forms as a Portlet in Portal (CASE2) but to start it from a link (CASE 1) for this reasons:
    - http accept-header misses Browser type information information
    - Forms startup time slows down portal page startup
    - SSO doesn't work straight away
    - Forms9i, because based on java 1.3, will reload Forms when reloading the portal page, loosing the application context (this is not yet an issue with Forms6i).
    Of course, you can have it working as a portlet and I did it in the past, but it will require some work to do that is not yet documented (and probably never will).
    Cheers
    Frank

  • How to call a form from one form to another form with parameter..

    i'm having a from that will shows the info about the orders that the client has. and i want to show the information of the client. for that i have created one form and i want to call the form from my current form with the given client name as a parameter. then the client_info form has to query with the given parameter. so im passing the :client_order_info.client_name as parameter to the call_form('client_info.fmx',:client_order_info.client_name); but my question is how to access that parameter in the client_info form.. plz help me.. i tried a lot ..

    Create a parameter (object navigator -> parameters) with the name client_name and you can access that value in your client info form using :PARAMETER.client_name.
    P.S. while calling you can pass parameter using 'cilent_name =>' to make sure that the correct parameter is getting assigned to the value.

  • How to call a form in report

    How can i call a form in a report?

    try this
    declare
       AppID PLS_INTEGER;
    begin
         AppID := DDE.App_Begin('ifrun60 module=myform.fmx userid=scott/tiger@mydb maximize=no', DDE.App_Mode_Maximized);
    exception when others then
          srw.message(1,'Errror');
    end;Baig
    [My Oracle Blog|http://baigsorcl.blogspot.com/]

Maybe you are looking for

  • Get rid off extra language

    Hello I'm always have the same problem with the langage option almost every time I power on the mac pro the american language is set to on. I' oblige to go on the pref system and check french an the click on the menu bar french. So it's borring and I

  • Content Server Sharing

    Hello, I have installed Content Server 6.40 successfully on Win 2K3 Both URL are showing Running status, But repository shows defined status after some time if i unlock it again after 2-3 hr it will come to defined status. Also  category which i have

  • ChiliBean Control error '800a03e8'  java.lang.NoClassDefFoundError

    hi all, http://forum.java.sun.com/thread.jspa?forumID=759&threadID=5019680 in reference to the post above, i have a Win2003 server running Sun ONE with Chilisoft ASP plug-in. i did the suggestions there but am still getting the same error, to be exac

  • Fonts look grainy...password circles don't seem round. Colors washed out.

    Hey everybody, on my brand new macbook c2d, the fonts seem very grainy, much more so then the one that it replaced. The password circles also don't seem to be completely round. (even when zoomed in with controll + scroll) I would go to say that my iM

  • IPhone restore through itunes in windows xp sp2 not working

    Microsoft Windows XP Professional Service Pack 2 (Build 2600) Hewlett-Packard HP Compaq dx6100 MT(PQ674PC) iTunes 11.1.3.8 QuickTime 7.7.4 FairPlay 2.5.16 Apple Application Support 2.3.6 iPod Updater Library 11.1f5 CD Driver 2.2.3.0 CD Driver DLL 2.1