Calling parent function in override function?

[AS]
class Parent extends Grandfa
    override protected function display()
        //500 lines of code here
class Child extends Parent
private var isSquare:Boolean;
override protected function display()
    if(isSquare)
        //child's display function
    } else {
        //call parent's display() to avoid rewrite 500 lines of code
[/AS]
Parent has "display()" funciton with 500 lines of code in it. Bur Child acts differently depending on a value in isSquare:Boolean. If it's true, it acts its own action; otherwise, it acts just like the parent does.
Is there a way to act like parent in the override function without rewriting all the 500 lines of code?

Do you actually call your classes Parent and Child or is this only Pseudo-code?
(You shouldn´t do that if you did)
super should provide what you are looking for.

Similar Messages

  • Call a functions within a function ?

    Hi
    Is there anyway to call my functions within a function ?
    function musicPlayer() {
         trace("Music");
         function pauseMusic(){
              trace("Pause");
    if i call musicPlayer function i will get Music in output now how can i call pauseMusic from outside of parent function !?
    is this possible ?
    thanks in advance

    You can call functions within other functions, but you don't want define functions inside other functions... they will only have scope within the function if they work at all.
    function pauseMusic(){
         trace("Pause");
    function musicPlayer() {
         trace("Music");
         pauseMusic();
    musicPlayer();

  • Calling a function in a function

    I am trying to call a function in a function (CF Report
    Builder 7) and I always got an error. As far as I know, it is
    suppose to be very simple and I keep it simple but since I work
    with re-usable function, I try to apply this method as well in CF
    Report Builder to create report with more sense than just use
    CFDOCUMENT.
    It seems that everytime I am using the amp to add on a
    string, it generates an error. Why? It is very standard to use a
    variable such as: <cfset vReturn = "As of " &
    fGetAsof()>.
    Thank you in advance for any help!
    Here is the code from the first function -
    Report.fGetReportTitle3()
    <cfset vReturn = "">
    <cfset vReturn = "As of " & report.fGetReportAsOf>
    <cfreturn vReturn>
    Here is the code for the second function -
    Report.fGetReportAsOf()
    <cfset vAsOfTemp = CreateDate(query.dtYear, query.dtMonth,
    1)>
    <cfset vAsOfTemp = DateAdd("d", -1, DateAdd("m", 1,
    vAsOfTemp))>
    <cfset vReturn = "" & DateFormat(vAsOfTemp, "d mmmm
    yyyy")>
    <cfreturn vReturn>
    Please note:
    query.dtYear is an integer that contain just the year (e.g.
    2007).
    query.dtMonth is an integer that contain the month integer
    value (e.g. 1 will means January, 2 will means Ferbuary and so on
    until 12 for December).

    The only think that do not generate error is when I am
    calling the function such as this:
    <cfset vReturn = "As of " & fGetReportAsOf>
    But, it display an empty line of information. This is the
    third line of the title on 4 so 1 and 2 will be shown, as well as
    4, but not the third line - if I am using this method. I found it
    strange since there is a "hard-code' part in the string (the As of
    words which is force manually to be displayed). So if the system is
    not able to retrieve the content of a variable, I will assume it
    will show an error. In this case, no error but no display!

  • Can we call a function within a function??????Urgent

    Dear All,
    Like we can call a procedure from another procedure , in the same way can we call a function within a function. Please reply it's urgent.
    Regards

    > Please reply it's urgent.
    My usual soapbox response.
    Saying your posting is urgent is rude and arrogant. Why? Because you are saying that other people who have posted problems here, have less important problems than yours. That despite how complex and critical their problem may be, yours take priority.
    You're also demaning attention and a quick answer from people that provide support here - in their free time... and not getting paid a single cent for their efforts.
    So just how can you demand any urgency to your posting from them?
    Remember that this is a public forum. You cannot demand anything here. This is not Oracle Support. There are no SLA's here. Basic nettiquette applies.

  • Call WDA from ABAP via function module

    Hi WDA experts,
    is there any possibility to call a WDA within a ABAP report AND include it in the process.
    The best would be to call a WDA via a function module - make some inputs on the WDA side - press submit and the function module gives me the data from the webdynpro back to my application.
    I know that I can call a WDA via the function CALL_BROWSER, but in this case the WDA application is fully independent from the report and I am not able to post any data back to the report.
    I also know FM WDY_EXECUTE_IN_PLACE, but in this case I need a HTML container to display the WDA and there it seems that I also never get back any data back to the report.
    Any hints are appreciated.

    Not too hard:
    CALL WDA passing in a KEY on start plug.
    write the data to a shared memory object using the key passed as the
    key to a shared memort object on the submit.
    (see blogs on writing Shared maemory objects in ABAP)
    Then simply exit APP.
    On return read the data from the Shared memory Object.
    The shared memory object lives across the 2 sessions.
    cheers
    Phil.

  • Calling a Webservice via a Function in PL/SQL

    Hi
    I am trying to call a webservice from a function, but i am getting an error, i am not sure that i am using the correct url for the end point or actions
    Below is the class i am calling..
    Please could some assist.
    FUNCTION add_new_user (xmlstruct IN VARCHAR2)
    RETURN VARCHAR2
    IS
    req xx_demo_soap.request;
    resp xx_demo_soap.response;
    BEGIN
    req :=
    xx_demo_soap.new_request
    ('processRequest',
    'xmlns="http://extServices"'
    xx_demo_soap.ADD_PARAMETER (req, 'processReq', 'xsd:string', xmlstruct);
    resp :=
    xx_demo_soap.invoke
    (req,
    'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS',
    'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS/'
    RETURN xx_demo_soap.get_return_value
    (resp,
    'processRequestResponse',
    'xmlns="http://extServices"'
    END;
    Also here is the WSDL file
    \<?xml version="1.0" encoding="UTF-8"?>
    <wsdl:definitions targetNamespace="http://extServices" xmlns:impl="http://extServices" xmlns:intf="http://extServices" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:wsdlsoap="http://schemas.xmlsoap.org/wsdl/soap/" xmlns:wsi="http://ws-i.org/profiles/basic/1.1/xsd" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <wsdl:types>
    <schema targetNamespace="http://extServices" xmlns="http://www.w3.org/2001/XMLSchema" xmlns:wsdl="http://schemas.xmlsoap.org/wsdl/" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
    <element name="firstTestResponse">
    <complexType>
    <sequence>
    <element name="firstTestReturn" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processDelete">
    <complexType>
    <sequence>
    <element name="processDel" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processDeleteResponse">
    <complexType>
    <sequence>
    <element name="processDeleteReturn" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processRequest">
    <complexType>
    <sequence>
    <element name="processReq" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processRequestResponse">
    <complexType>
    <sequence>
    <element name="processRequestReturn" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processModify">
    <complexType>
    <sequence>
    <element name="processMod" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="processModifyResponse">
    <complexType>
    <sequence>
    <element name="processModifyReturn" nillable="true" type="xsd:string"/>
    </sequence>
    </complexType>
    </element>
    <element name="firstTest">
    <complexType>
    <sequence/>
    </complexType>
    </element>
    </schema>
    </wsdl:types>
    <wsdl:message name="processRequestResponse">
    <wsdl:part element="impl:processRequestResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processDeleteRequest">
    <wsdl:part element="impl:processDelete" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="firstTestResponse">
    <wsdl:part element="impl:firstTestResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processRequestRequest">
    <wsdl:part element="impl:processRequest" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processModifyRequest">
    <wsdl:part element="impl:processModify" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processModifyResponse">
    <wsdl:part element="impl:processModifyResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="processDeleteResponse">
    <wsdl:part element="impl:processDeleteResponse" name="parameters"/>
    </wsdl:message>
    <wsdl:message name="firstTestRequest">
    <wsdl:part element="impl:firstTest" name="parameters"/>
    </wsdl:message>
    <wsdl:portType name="LdapProcWS">
    <wsdl:operation name="firstTest">
    <wsdl:input message="impl:firstTestRequest" name="firstTestRequest"/>
    <wsdl:output message="impl:firstTestResponse" name="firstTestResponse"/>
    </wsdl:operation>
    <wsdl:operation name="processDelete">
    <wsdl:input message="impl:processDeleteRequest" name="processDeleteRequest"/>
    <wsdl:output message="impl:processDeleteResponse" name="processDeleteResponse"/>
    </wsdl:operation>
    <wsdl:operation name="processRequest">
    <wsdl:input message="impl:processRequestRequest" name="processRequestRequest"/>
    <wsdl:output message="impl:processRequestResponse" name="processRequestResponse"/>
    </wsdl:operation>
    <wsdl:operation name="processModify">
    <wsdl:input message="impl:processModifyRequest" name="processModifyRequest"/>
    <wsdl:output message="impl:processModifyResponse" name="processModifyResponse"/>
    </wsdl:operation>
    </wsdl:portType>
    <wsdl:binding name="LdapProcWSSoapBinding" type="impl:LdapProcWS">
    <wsdlsoap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
    <wsdl:operation name="firstTest">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="firstTestRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="firstTestResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="processDelete">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="processDeleteRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="processDeleteResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="processRequest">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="processRequestRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="processRequestResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    <wsdl:operation name="processModify">
    <wsdlsoap:operation soapAction=""/>
    <wsdl:input name="processModifyRequest">
    <wsdlsoap:body use="literal"/>
    </wsdl:input>
    <wsdl:output name="processModifyResponse">
    <wsdlsoap:body use="literal"/>
    </wsdl:output>
    </wsdl:operation>
    </wsdl:binding>
    <wsdl:service name="LdapProcWSService">
    <wsdl:port binding="impl:LdapProcWSSoapBinding" name="LdapProcWS">
    <wsdlsoap:address location="http://wbrbap92/LDAP_Self-Service/services/LdapProcWS"/>
    </wsdl:port>
    </wsdl:service>
    </wsdl:definitions>
    Thanks

    Try this..
    CREATE OR REPLACE PACKAGE L_WEBSERVICE_INVOKE
    AS
    **         Name:    L_WEBSERVICE_INVOKE
    PROCEDURE P_CREATE_XML(envolope IN OUT NOCOPY varchar2);
    PROCEDURE P_INVOKE_WEBSERVICE(rs_error_msg      IN OUT VARCHAR2,                                                            
                         on_result         IN OUT NUMBER);
    PROCEDURE SHOW_ENVELOPE(env IN VARCHAR2);
    END L_WEBSERVICE_INVOKE;
    show errors;
    create or replace PACKAGE BODY L_WEBSERVICE_INVOKE                                                                                                      
    AS                                                                                                                                 
    PROCEDURE P_CREATE_XML(envolope  IN OUT NOCOPY varchar2)
    AS
    BEGIN
         envolope := '<?xml version="1.0" encoding="UTF-8" ?><SOAP-ENV:Envelope xmlns:SOAP-ENV="http://schemas.xmlsoap.org/soap/envelope/" xmlns:q0="http://extServices" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"><SOAP-ENV:Body><q0:processRequest><processReq><?xml version='1.0'?><users><user><uid>W0001</uid><surname>Bruce</surname><firstName>Jacob</firstName><idNumber>6611254858081</idNumber><idType>P</idType><email>[email protected]</email><employer>FNB</employer><empNumber>W3546333</empNumber><department>Collections</department><region></region><branch>Southside</branch><division>Corporate</division></user><user><uid>W0034</uid><surname>Brian</surname><firstName>Sutters</firstName><idNumber>3445554858081</idNumber><idType>V</idType><email>[email protected]</email><employer>Wesbank</employer><empNumber>W3455455</empNumber><department>Fraud</department><region>PTA West</region><branch>Southside</branch><division>Corporate</division></user></users></processReq></q0:processRequest></SOAP-ENV:Body></SOAP-ENV:Envelope>';
    END P_CREATE_XML;
    PROCEDURE P_INVOKE_WEBSERVICE(rs_error_msg      IN OUT VARCHAR2,                                                            
                         on_result         IN OUT NUMBER)
    AS
    ls_out_resp varchar2(32767);
    http_req utl_http.req;
    http_resp utl_http.resp;
    ls_http_req_url varchar2(4000);
    ls_result VARCHAR2(2000);
    name  VARCHAR2(256);   -- Response header name
    value VARCHAR2(1024);  -- Response header value
    line  VARCHAR2(4000);  -- Response body
    ls_webservice_url varchar2(1024);
    ls_in_request     varchar2(4000);
    is_webservice_err varchar2(2000);
    BEGIN
         on_result:=0;
         ls_http_req_url := 'http://wbrbap92/LDAP_Self-Service/services/LdapProcWS';
         --Construct the Input Soap Request
         P_CREATE_XML(ls_in_request);
         --show_envelope(ls_in_request);
            -- Establish the connection
           http_req := utl_http.begin_request(ls_http_req_url, 'POST' ,'HTTP/1.1');
           -- The Content-Length header has to indicate the amount of data in the XML document
          utl_http.set_header(http_req, 'Content-Type', 'text/xml');     
          utl_http.set_header(http_req, 'Content-Length', to_char(length(ls_in_request)) );
          -- POST the XML document
          utl_http.write_text(http_req,ls_in_request);
           -- Now process the HTTP server's response
           http_resp := utl_http.get_response(http_req);
           dbms_output.put_line('HTTP response status code: ' || http_resp.status_code);
           dbms_output.put_line('HTTP response reason phrase: ' || http_resp.reason_phrase);
           utl_http.read_text(http_resp, ls_out_resp);
           show_envelope(ls_out_resp);
           utl_http.end_response(http_resp);
    EXCEPTION
    WHEN Utl_Http.request_failed   THEN
               on_result:=-1;
               rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-request_failed: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
               Utl_Http.end_request (http_req);
    WHEN Utl_Http.http_server_error  THEN
              on_result:=-1;
              rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-Http_Server_Error: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
              Utl_Http.end_request (http_req);
    WHEN Utl_Http.http_client_error THEN
               on_result:=-1;
               rs_error_msg:='L_WEBSERVICE_INVOKE.p_invoke_webservice-Http_Client_Error: ' ||UTL_HTTP.GET_DETAILED_SQLERRM;
               Utl_Http.end_request (http_req); 
    when others then
         on_result:=-1;
         rs_error_msg := 'L_WEBSERVICE_INVOKE.P_INVOKE_WEBSERVICE: ' || SQLERRM; 
         Utl_Http.end_request (http_req); 
    END P_INVOKE_WEBSERVICE;
    PROCEDURE SHOW_ENVELOPE(env IN VARCHAR2)
    AS
    i pls_integer;
    len pls_integer;
    BEGIN
         i := 1;
         len := length(env);
         WHILE (i <= len)
         LOOP
         dbms_output.put_line(substr(env, i, 100));
         i:=i+100;
         END LOOP;
    END SHOW_ENVELOPE;
    END L_WEBSERVICE_INVOKE;
    Now execute the anonymous block
    set serverout on size 1000000;
    DECLARE
    RS_ERROR_MSG VARCHAR2(2000);
    ON_RESULT NUMBER;
    BEGIN
    L_WEBSERVICE_INVOKE.P_INVOKE_WEBSERVICE(RS_ERROR_MSG,ON_RESULT);
    END;
    Good luck!!!
    Bhagat
    Message was edited by:
            Bugs
    Message was edited by:
            Bugs                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                               

  • Calling a function inside a function

    How does one do that? I am trying to call function 1 inside function 2. What is the corrct syntax?

    If this post answers your question or helps, please mark it as such.
    <?xml version="1.0" encoding="utf-8"?>
    <mx:Application xmlns:mx="http://www.adobe.com/2006/mxml">
      <mx:Script>
        <![CDATA[
          private function callFuncs():void{
            one();
          private function one():void{
            txt.text += "In function one()\n";
            two();
          private function two():void{
            txt.text += "In function two()\n";
            three();
          private function three():void{
            txt.text += "In function three()\n";
        ]]>
      </mx:Script>
      <mx:Button label="Call Functions" click="callFuncs();"/>
      <mx:TextArea width="500" height="500" id="txt"/>
    </mx:Application>

  • Calling a stored workspace procedure/function in page template

    I have an unusual puzzle. I am trying to find a way to call a stored procedure or function in a page template; ie, through HTML/javascript.
    I maintain a website with several dozen applications and I currently have the page templates in all of these applications subscribed to one master template, so that changes can be made in one place and implemented across all the applications. So far, the only content I can display on every page in every application through page template subscription is static content; dynamic content (ie content generated based on data in the database) is implemented page-by-page (or application-by-application).
    I'm wondering if there is a way to call stored procedures/functions from the page template to create dynamic content (based on the :APP_USER identity, for example). htmldb_Get() doesn't seem to be helpful, because as far as I can tell it only calls on-demand application processes, not workspace procedures/functions.
    Is there any way at all that a workspace procedure/function can be called directly from the page template (eg with a javascript function of some kind)? Again, I am trying to avoid having to use any application/page-level apex entities (items, processes, etc) so that I can just put the javascript or whatever in the page template and refresh all the applications in my workspace.
    Thanks in advance!
    Jonathan Cole
    PS - I am currently using v3.1

    Just to add the owner in output :
    SCOTT@demo102> ed
    Wrote file afiedt.buf
      1  select owner, table_name, ltrim(max(sys_connect_by_path(column_name,','))
      2                     keep (dense_rank last order by position),',') as PKcolumns
      3  from
      4  (select a.owner, a.table_name, b.column_name, b.position
      5   from all_tables a, all_cons_columns b, all_constraints c
      6   where a.owner=b.owner
      7   and   a.table_name=b.table_name
      8   and   b.owner=c.owner
      9   and   b.constraint_name=c.constraint_name
    10   and   c.constraint_type='P'
    11   and   a.table_name in ('SDO_COORD_AXES','EMP'))
    12  group by owner, table_name
    13  connect by prior owner = owner and prior table_name = table_name and prior position = position - 1
    14* start with position = 1
    SCOTT@demo102> /
    OWNER                          TABLE_NAME                      PKCOLUMNS
    MDSYS                          SDO_COORD_AXES                  COORD_SYS_ID,ORDER
    SCOTT                          EMP                             EMPNO
    SCOTT@demo102> Nicolas.

  • Call two selects in a function?

    Hi, I am fairly new to oracle.
    I have written a function that returns a sql statement that I would like to execute and return the results.
    I have another function that I can execute the statement with, I so far have no idea of how to put this together.
    This is the one that returns a sql statement:
    CREATE OR REPLACE function fnMyFunc1(var_in IN varchar2) return varchar2
    as
    x varchar(32767);
    BEGIN
    SELECT fnMyFunc2(var_in) into x from dual;
    return x;
    end;and this is the one that executes it:
    create or replace function fnExecX(sql_in IN varchar2) return XmlType
    as
    x XmlType;
    Begin
    EXECUTE IMMEDIATE (fnExecV(sql_in)) into x;
    return x;
    end;I would like to just execute it in the first one and return the XmlType from the first function or have a function that calls the first one, gets the result, passes it to the second and returns the xmltype.
    Any help would be much appreciated.

    I am not sure if this is what you are looking for, anyway here is something I tried :
    -- function that creates the dynamic sql
    CREATE FUNCTION f2 (var_in VARCHAR2) RETURN VARCHAR2 IS
    sql_str VARCHAR2(250);
    BEGIN
    sql_str := 'SELECT SYSDATE FROM '|| var_in;
    RETURN sql_str;
    END;
    -- function that calls the dynamic sql creating function
    CREATE FUNCTION f1 (var_in VARCHAR2) RETURN VARCHAR2 IS
    sql_str VARCHAR2(250);
    BEGIN
    SELECT f2(var_in) INTO sql_str FROM dual;
    RETURN sql_str;
    END;
    -- function that executes the dynamic query :
    CREATE FUNCTION f3 (var_in VARCHAR2) RETURN DATE IS
    exec_sql VARCHAR2(250);
    dd DATE;
    BEGIN
    SELECT f1(var_in) INTO exec_sql FROM dual;
    EXECUTE IMMEDIATE exec_sql INTO dd;
    RETURN dd;
    END;
    -- output from sqlplus
    SQL> select f3('dual') from dual;
    F3('DUAL'
    21-DEC-05
    SQL>
    HTH

  • Calling PL/SQL user defined functions from ODI Constraints

    Hi All,
    We are trying to call user defined PL/SQL functions from ODI. We are able to call them from ODI's User functions. But when we are trying to call them from ODI Constraints under Models, it is throwing an error 'ORA-00920 invalid relational operator'. Kindly let me know if anyone has faced the same issue and got the resolution for the same. Thanks in Advance.
    Regards,
    Abhishek Sharma

    Hi Ace,
    Thanks for the response, the same error was coming in operator also.
    I am able to call PL?SQL user defined functions from ODI Constraints. We have to first call ODI User functions from the ODI constraints as we cant call PL/SQL function (compiled in database) directly.
    From the ODI User functions, we can then call the PL/SQL functions.
    Please reach out to me if you need further details reg this.

  • Calling a variable in one function from another

    Okay so here's the situation:
    I have a function that has a For Loop inside it.  Inside that For Loop I am defining a button and calling to another function if clicked.  The issue is (since I shouldn't put functions inside other functions) how do I get the variable being processed in the For Loop to be considered in the function that was just activated by pressing the button.
    lol sorry.  Here's the code.
    All variable are defined elsewhere in the code.
    function populateBox(DataInput:XML)
              linkAmount = DataInput.country[boxPartNum - 1].link.length(); /// defines amount of links being made
              for (k=0; k<linkAmount; k++)
                        myLink = new LinkClass();
                        box.boxMC.linksMC.addChild(myLink);
                        // set functions for links //
                        myLink.addEventListener(MouseEvent.CLICK, linkFunction);
    /// now the function for when the button is pressed ///
    function linkFunction(event:MouseEvent)
      trace(k);
    I need to trace the "K" used in teh For Loop.
    What are my options?

    IF they are movieclips then you can assign the k value as a property of them dynamically.  Then you can retrieve that value in your event handler via the event argument that gets passed to the function.
    function populateBox(DataInput:XML)
              linkAmount = DataInput.country[boxPartNum - 1].link.length(); /// defines amount of links being made
              for (k=0; k<linkAmount; k++)
                        myLink = new LinkClass();
                        box.boxMC.linksMC.addChild(myLink);
                        // set functions for links //
                        myLink.addEventListener(MouseEvent.CLICK, linkFunction);
                        myLink.kValue = k;
    /// now the function for when the button is pressed ///
    function linkFunction(event:MouseEvent)
      trace(event.currentTarget.kValue);
    Note:  I am not surewhen it's needed, but it is possible you will need to cast the event.currentTarget as a MovieClip, so the line in the function might need to be...
    trace(MovieClip(event.currentTarget).kValue);

  • Calling one function in another function

    Hi,
    How to call one function in another function?
    regards,
    Kishore.

    example:
    SQL> ed
    Wrote file afiedt.buf
      1  declare
      2    function bob(x number) return number is
      3    begin
      4      return x*x;
      5    end;
      6    function fred(x number) return number is
      7    begin
      8      return x+bob(x);
      9    end;
    10  begin
    11    dbms_output.put_line('Value: '||to_char(fred(5),'fm9999'));
    12* end;
    SQL> /
    Value: 30
    PL/SQL procedure successfully completed.
    SQL>

  • How do i call a Function from another Function ?

    When i press a button, i want a series of functions to execute one after another (they contain tweens, but its irrelevant), each of them waiting for the previous to be completed. I want to put the series of functions inside one function, so i can call just this function to execute all the others. The animations are working fine, but i dont know how call Functions from within another function. Also it would be necessary each function to wait until the previous has completed, to execute. Here is a clear example of what i need to do:
    boton.onPress = animate ;
    Function animate () {
         animation1 (onComplete: animation2);
         animation2 (onComplete: animation3);
         animation3 ;
    Function animation1 () { Tween 1};
    Function animation2 () { Tween 2};
    Function animation3 () { Tween 3};
    any suggestions ?

    I'd do something like this:
    boton.onPress = animation1 ;
    Function animation1 () {
         var Tween1 = new Tween();
        Tween1.onComplete =  animation2;
    Function animation2 () {
         var Tween2 = new Tween();
         Tween2.onComplete = animation3;
    Function animation3 () {
         var Tween3 = new Tween();

  • Call .xhtml file from javascript function

    Hi,
    Is there a way to call .xhtml page from javascript function???

    BalusC wrote:
    Yes there are some ways. But this question has nothing to do with JSF and certainly not with Java at all. Javascript is an entirely different language, although it has a similar syntax as Java (and unforunately also a similar name, they should never have renamed it from ECMAScript).I think ECMAScript is a renaming from JavaScript. The originally JavaScript was called LiveScript by Netscape. I've heard that the ECMAScript name was deliberately chosen to be unsexy.

  • To call webmethods using RFC(Remote Function Module)

    Hi Sap Group.
    i have got a situation on how to call the webmethods using Remote Function Module ,i know that there should be rfc destination created in sm59 already,so can i use the  same existing rfc destination which was used to call webmethods with another scenario in my interface.
    can anybody help me in this.
    regards.
    Varma

    Hi Naina,
    Normally RFC are synchronous, they do have return parameter as export parameter.
    If return parameter is missing then , you can create Wrapper RFC.
    Wrapper RFC:
    It is nothing but you just  create BAPI in SE37 transaction with Return parameter as export parameter and make it remote enabled by clicking on Radio button.
    Under source code, CALL BAPI which XI has to call.
    Thats it!
    I hope this helps.
    Let me know if any help required.

Maybe you are looking for

  • Best way to import X5 HTML into RoboHelp6?

    The reason I'm considering upgrading to RH6 is to keep the hyperlinks active when I create printed documentation. RH6 does this, but only if the document was created in or imported to, RH6 -- at least that has been my experience while testing with th

  • Access Original Serial Number after Upgrade

    Hi guys, in a bind here... My Mac Pro needs to be wiped and all my software will have to be installed. My problem is that our editor has been let go and he stole our FCS 2 and FCS 3 upgrade disks and packaging. I still have FCS 3 installed, so I can

  • Frequency of Checkpoint

    Hi, in 10g R2, where else other than Alertlog can I check the frequency of Checkpoint ? In alertlog I have : Thread 1 cannot allocate new log, sequence 3064 Checkpoint not complete I can not see why. Any idea ? Thank you. I tried this : ALTER SYSTEM

  • Which companion cd version should i install

    Hi all, I'm confusing which version of companion cd should i install for my oracle database. I've install OAS 10.1.2 which it also included oracle database 10g (10.1.0.4.2). Now, i want to install NCOMP component from companion cd for my database, so

  • Plantwise separate number range for Production order

    Hello SAP Expert,   I my project our client require plantwise number range for Production order,order Confirmation for indentifiction purpose .    Please give way to do this. Thanks in advance. Regards, Yogesh.