Calling function in another button?

I have 2 Movie Clips which create a menu system. When you
hover the mouse over the 2nd button (will be adding more as soon as
I figure this road block out) it drops down a menu.
[Home][Forums]
In the movie clip of "Forums", I created 2 labels. 1 is for
"collapsed" and 1 is for "expanded". Expanded shows the dropped
down menu.
I created a hidden button in the "Expanded" display (sits
under the buttons of the menu) so if you mouse over it, it will
collapse the menu.
However, because the 2 top movie clips are right next to each
other the hidden button never gets triggered because the [Home]
movie clip sits on top.
I figured the easiest way would be to simply call the
"collapsed" label in the movie clip for "Forums", although I don't
know if this is possible or how to achieve it.
The following is what I attempted to use in the ActionScript
section of the movie clip for [Home]:
stop();
function collapsemenu(myevent:MouseEvent):void {
mcForums.gotoAndStop("collapsed");
btnHome.addEventListener(MouseEvent.MOUSE_OVER,
collapsemenu);
When I do this, it gives me the following error:
1120:Access of undefined property mcForums
Any help or feedback appreciated!

It looks like the ApprovalManager object did not initiate properly. Are you sure your XREF record is instantiated as &loadRecord?
Please start off by looking at the following MOS doc
E-AWE: Where to Start with Creating a New Custom Approval Framework (AWE) Process? (Doc ID 1394046.1)
This document also contains a chapter of Jim Marion´s book on AWE (for free!), with a lot of examples on how to implement AWE including code.
Also when you read the chapter on AWE you will notice that it is recommended not the trigger DoApprove on FieldChange but on the SavePostChange event.
Regards,
Hakan

Similar Messages

  • How to call function behind the button and update only specific record

    Greetings,
    1 - i wnat to ask few things as i m new to apex, i am using apex 4.1, and created 3 select list and a button in seleting of parameter,
    1 select list : select area
    2 select list: select product
    3- select list - size of the product
    i want to generate Ids for the follwing. for that i created query for INSERTING RECORD FROM ONE TABLE TO ANOTHER , generation the ids when button pressed "Generate" after selecting parameters,
    Now where i call that QUERY on button ? because when i create button its gives me option to submit, defined dynamic action, etc, pls gudie me where i call the function name id_generation when button pressed?.
    2- second thing i creared tabular " select user_id, product_name, product_type from product".
    by defualt check box list are create delete submit button are created, first when i insert record it saves that was fine, e.g i entered 50 records and afterward i want to update only one record, e.g there is a record product name = box, if i change it to box small and click submit then it saves all the page means all 50 records,
    i want to submit only that record that i changed, for that i use the logic that only those records should be updated which are checked but the user. how will i do this ? where to use the preocess , please guide
    Edited by: Omzz on Oct 2, 2012 11:28 PM

    If I understand what you are trying to do is correct you could possibly do this by:
    Creating and AFTER INSERT trigger on the table based on the tabular form which inserts the record into a seperate table after the record is inserted something like:
    CREATE OR REPLACE TRIGGER copy_records
    AFTER INSERT ON table a
    REFERENCING NEW AS NEW OLD AS OLD
    FOR EACH ROW
    DECLARE
    BEGIN
    INSERT INTO table b
    VALUES :NEW.col1, :NEW.col2 etc......
    END;
    There is also a way that you could do it within the form using a cursor on the tabular form with APEX_APPLICATION.G_ ......
    Chris

  • HANA Server site JavaScript how to call functions in another .js file? thanks

    In HANA Studio, I have created a .js file and a server site javaScript .xsjs file. The .js file and .xsjs file are in the same path .I create function F1() in js file. Then I want to call function F1 in xsjs file. But it always through an error “f1 was used before it was defined”. Any suggestion? Thanks very much
    .js file:
    .xsjs file:

    Hi Jim,
    Now I have found the method how to use external library. If we want to outsource some of xsjs functions to an external library, XSEngine provides a special format for this, called “.xsjslib”. Then in xsjslib file, we define functions need to be outsourced.
    In .xsjs file, we can import a library using the following code:
    $.import("<Package_Library_was_deployed>","xsjslib File Name");
    The Package_Library_was_deployed please refer to:
    Access functions inside library by this path:
    $.Package_Library_was_deployed.xsjsFileName.FunctionName();

  • How To Call Function 'OnClick' of Button

    DWMX ... How do I call the function prc_SendEmail() written
    in VBScript above the head ... the following is the best I can do
    and, whilst the page shows, when I click the button, nothing
    happens and I get an Error on Page at bottom left of explorer page.
    <input name="Button" type="button"
    onClick="prc_SendEmail()" value="Send Email">
    Thanks,
    dave

    > I don't know where the email reader came from.
    Sorry - my mistake.
    > That's what I'm asking - how?
    The mail functions reside on the server.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "crash" <[email protected]> wrote in message
    news:[email protected]...
    >>> a) why could a client side action not fire off
    an email?
    >>
    >> Because an email reader is not a user agent.
    >
    > 1. This doesn't appear to be read in an email reader,
    but a user agent,
    > yes/ I don't know where the email reader came from.
    >
    >>> b) not my site, not my concern.
    I was looking at a code fragment and
    >>> correcting it for technical content, not really
    anything other than
    >>> that.
    >>
    >> But your correction was in error.
    >
    > That's what I'm asking - how? Is the function instrinsic
    and is that what
    > I'm missing? Was there another post that defines what
    the function does?
    > If the function tells the page to reload and send the
    current information
    > to the email you specified in the page (if the page
    contains a form), why
    > would it not work? Again, is this a function native to
    ASP and that's
    > what I'm missing?
    >
    >> Try it on a Mac.
    >
    > Again, for all I know this could be a page on an
    intranet that uses only
    > PC's built between October and November of 2005 under
    only mostly sunny
    > skies. If there was more info with this post, I might
    say something about
    > it. As it was, it looked like he was just looking to get
    a function
    > working in IE
    >>
    >> --
    >> Murray --- ICQ 71997575
    >> Adobe Community Expert
    >> (If you *MUST* email me, don't LAUGH when you do
    so!)
    >> ==================
    >>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >> ==================
    >>
    >>
    >> "crash" <[email protected]> wrote in
    message
    >> news:[email protected]...
    >>> a) why could a client side action not fire off
    an email?
    >>>
    >>> b) not my site, not my concern.
    I was looking at a code fragment and
    >>> correcting it for technical content, not really
    anything other than
    >>> that.
    >>>
    >>> am I missing something, or is there some reason
    why a client side
    >>> VBScript won't fire? Not saying it's the best
    way to do it, but only
    >>> saying, technically speaking, isn't this
    possible?
    >>>
    >>> If I'm wrong, just tell me. I'm not awake enough
    yet to see the point
    >>> I'm missing.
    >>>
    >>> Jon
    >>>
    >>> "Murray *ACE*"
    <[email protected]> wrote in message
    >>> news:[email protected]...
    >>>> a) it's client side, and b) it only works in
    IE?
    >>>>
    >>>> --
    >>>> Murray --- ICQ 71997575
    >>>> Adobe Community Expert
    >>>> (If you *MUST* email me, don't LAUGH when
    you do so!)
    >>>> ==================
    >>>>
    http://www.dreamweavermx-templates.com
    - Template Triage!
    >>>>
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    >>>>
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    >>>>
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    >>>> ==================
    >>>>
    >>>>
    >>>> "crash" <[email protected]> wrote
    in message
    >>>> news:[email protected]...
    >>>>> Well, I have no idea what the
    prc_SendEmail() function does, but I've
    >>>>> used VB script controlled by user
    actions to control Microsoft
    >>>>> Agents - so what's the difference?
    >>>>>
    >>>>>
    >>>>> "Gary White"
    <[email protected]> wrote in message
    >>>>>
    news:[email protected]...
    >>>>>> On Mon, 5 Jun 2006 15:44:10 -0500,
    "crash" <[email protected]>
    >>>>>> wrote:
    >>>>>>
    >>>>>>>try instead:
    >>>>>>>input name="button" type="button"
    onClick="<% prc_SendEmail(); %>"
    >>>>>>>value="Send Email">
    >>>>>>
    >>>>>>
    >>>>>> That could never work. You're
    assigning a server side VBScript
    >>>>>> function
    >>>>>> as the event handler of a client
    side event.
    >>>>>>
    >>>>>> Gary
    >>>>>
    >>>>>
    >>>>
    >>>>
    >>>
    >>>
    >>
    >>
    >
    >

  • Checkbox event in one mxml calling function in another mxml

    If you have multiple mxml files to break out the components,
    how can you have an event on the main application (like a checkbox)
    activate a function in the scripting on another?
    thanks

    Set up a listener on the component. See addEventListener() in
    the docs.
    Tracy

  • Calling function within function as parameter

    We're planning to switch from MS-OLEDB to Oracle OLEDB and are expecting several troubles.
    One of these is that MS supports calling functions with another function within whilst Oralce does not?
    Example (works fine with MS):
    {? = call *<FUNCTION_1>* ( ?, ?, *<FUNCTION_2>* ( ?, ?, ? ) + 1, ?, 1 )}
    This raises ORA-01036: Variablenname/-nummer ungültig with Oracle's OLEDB.
    Any ideas?
    Thanks in advance!
    Edited by: user617919 on 04.11.2011 01:28

    Hi,
    Whenever you have a problem, please post a complete test script that people can run to re-create the problem and test their ideas. In this case, include complete CREATE PACKAGE and CREATE PAGKAGE BODY statements, CREATE TABLE and INSERT statements for any tables needed, some test calls to the the package, and the results you want from those test calls gibven that data.
    Always say which versin of Oracle you're using (e.g. 11.2.0.2.0).
    See the forum FAQ {message:id=9360002}
    LostNoob wrote:
    --Calculate salary minus before tax deductions
    FUNCTION sal_mns_btd (emp_no IN NUMBER)
    RETURN NUMBER
    IS
    tot_mns_btd Number;
    BEGIN
    SELECT e.sal - bef_tax_ded(bef_ded_tot)
    INTO  tot_mns_btd
    FROM  emp
    WHERE empno = emp_no;
    RETURN tot_mns_btd;
    END sal_mns_btd;
    If bef_tax_ded is a function in the same package, then what you posted is a correct way to call it.
    What is bef_ded_tot? If it's a NUMBER column in emp, then what you posted makes sense. If bef_ded_tot is a local variable inside some other function, then it doesn't make sense.. How to do what you want depends on what you want, and I can't tell you how to do it unless I understand what you want.
    Also, the table alias e isn't defined. It doesn't look like you need a table alias.

  • Execute an ABAP ".txt" file with a call function

    Hello,
    I'd like to know if it exist a "call function" or another way to execute an Abap program which is written within a ".txt" file.
    1. I'd like to write an Abap program into a ".txt" file
    2. Create an Abap program which will read the ".txt" file (& upload it into an internal table for example) & execute this Abap code.
    Is it possible?
    Thanks in advance for your answer.
    Samuel

    Something like this -:)
    REPORT z_test_query.
    * TYPES                                                           *
    TYPES: BEGIN OF ty_lines,
           line TYPE string,
           END OF ty_lines.
    * TABLAS INTERNAS                                                 *
    DATA: t_lines TYPE STANDARD TABLE OF ty_lines,
          t_program TYPE STANDARD TABLE OF progtab WITH HEADER LINE,
          t_writes TYPE STANDARD TABLE OF listzeile.
    * VARIABLES                                                       *
    DATA: w_file_name TYPE string.
    * FIELD-SYMBOLS                                                   *
    FIELD-SYMBOLS: <fs_lines> LIKE LINE OF t_lines,
                   <fs_write> LIKE LINE OF t_writes.
    * SELECTION-SCREEN                                                *
    SELECTION-SCREEN BEGIN OF BLOCK file WITH FRAME.
    PARAMETERS:
                p_file TYPE rlgrap-filename.
    SELECTION-SCREEN END OF BLOCK file.
    * AT SELECTION-SCREEN ON VALUE-REQUEST                            *
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
      PERFORM get_filename CHANGING p_file.
    *&      Form  GET_FILENAME                                        *
    FORM get_filename CHANGING po_p_file.
      DATA: ls_field_name TYPE dynpread-fieldname.
      ls_field_name = 'P_FILE'.
      CALL FUNCTION 'F4_FILENAME'
           EXPORTING
                program_name  = syst-cprog
                dynpro_number = syst-dynnr
                field_name    = ls_field_name
           IMPORTING
                file_name     = po_p_file.
      w_file_name = po_p_file.
    ENDFORM.                    " GET_FILENAME
    *   START-OF-SELECTION                                            *
    START-OF-SELECTION.
      CALL FUNCTION 'GUI_UPLOAD'
           EXPORTING
                filename = w_file_name
           TABLES
                data_tab = t_lines.
      IF sy-subrc EQ 0.
        LOOP AT t_lines ASSIGNING <fs_lines>.
          MOVE <fs_lines>-line TO t_program-line.
          APPEND t_program.
        ENDLOOP.
      ENDIF.
      CALL FUNCTION 'RFC_ABAP_INSTALL_AND_RUN'
           EXPORTING
                mode        = 'F'
                programname = 'ZDUMMY_TEST'
           TABLES
                program     = t_program
                writes      = t_writes.
      IF sy-subrc EQ 0.
        LOOP AT t_writes ASSIGNING <fs_write>.
          WRITE:/ <fs_write>-zeile.
        ENDLOOP.
      ENDIF.
    Greetings,
    Blag.

  • 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();

  • Calling a function in WHEN-BUTTON-PRESSED

    Hello,
    i have in when-button-pressed a line containing
    select pachet_salarizare.ani_vechime(data_min, to_number(to_char(sysdate,'YYYY')), to_number(to_char(sysdate,'MM'))) into ani_vechime from dual;so i call a function which is in pachet_salarizare package (package created in program units, in Forms).
    when compiling, i get: function 'PACHET_SALARIZARE.ANI_VECHIME' mai not be user in SQL.
    how can i deal with this? i need the result of that function in a variabie, ani_vechime.
    Thanks!

    Uh, thank you. i thought it's not possible what i wanted..
    but strange why cannot be called function in select statements
    Regards,

  • Can I call a function in another package?

    Dear all,
    Can I call a function in another package?
    Say I have package A, and package B.
    Is it possible for me to call a function in inside package A, within a function inside package B?
    If yes, what's the syntax.
    Thanks in advance!

    The variable in the calling package that will receive the value of the function in the other package needs to be defined based on that type in the other package directly:
    sql>create or replace package pkg_a
      2  is
      3    type testTable is table of varchar2(10) index by binary_integer;
      4 
      5    function f_a return testTable;
      6  end;
      7  /
    Package created.
    sql>create or replace package body pkg_a
      2  is
      3    function f_a
      4      return testTable
      5    is
      6      v_table testTable;
      7    begin
      8      v_table(1) := 'One';
      9      v_table(2) := 'Two';
    10      return v_table;
    11    end; 
    12  end;
    13  /
    Package body created.
    sql>create or replace package pkg_b
      2  is
      3    procedure p_b;
      4  end; 
      5  /
    Package created.
    sql>create or replace package body pkg_b
      2  is
      3    procedure p_b
      4    is
      5      v_table pkg_a.testTable;  -- this variable has to be based on the type in pkg_a
      6    begin
      7      v_table := pkg_a.f_a;
      8      for i in 1..v_table.count loop
      9        dbms_output.put_line( v_table(i) );
    10      end loop;
    11    end;
    12  end; 
    13  /
    Package body created.
    sql>exec pkg_b.p_b
    One
    Two
    PL/SQL procedure successfully completed.

  • Calling a function in another class that is not the App delegate nor a sngl

    Hi all-
    OK- I have searched and read and searched, however I cannot figure out an easy way to call a function in another class if that class is not the app delegate (I have that down) nor a singleton (done that also- but too much code)
    If you use the method Rick posted:
    MainView *myMainView = [[MainView alloc] init];
    [MyMainView goTell];
    That works, however myMainView is a second instance of the class MainView- I want to talk to the instance/Class already instantiated.
    Is there a way to do that without making the class a singleton?
    Thanks!

    I had some trouble wrapping my head around this stuff at first too.
    I've gotten pretty good at letting my objects communicate with one another, however I don't think my method is the most efficient or organized way but I'll try to explain the basic idea.
    When you want a class to be able to talk to another class that's initialized elsewhere, the class your making should just have a pointer in it to the class you want to communicate with. Then at some point (during your init function for example) you should set the pointer to the class you're trying to message.
    for example in the app-delegate assume you have an instance of a MainView class
    and the app-delegate also makes an instance of a class called WorkClass
    If you want WorkClass to know about MainView just give it a pointer of MainView and set it when it's instantiated.
    So WorkClass might be defined something like this
    //WorkClass.h
    @import "MainView.h"
    @interface WorkClass : NSObject
    MainView *myPointerToTheMainView;
    @property (retain) myPointerToTheMainView;
    -(void)tellMainViewHello;
    @end
    //WorkClass.m
    @import "WorkClass.h"
    @implementation WorkClass
    @synthesize myPointerToTheMainView;//this makes getter and setter functions for
    //the pointer and allows us to use the dot
    //syntax to refrence it.
    -(void)tellMainViewHello
    [myPointerToTheMainView hello]; //sends a message to the main view
    //assume the class MainView has defined a
    //method -(void)hello
    @end
    now somewhere in the app delegate you would make the WorkClass instance and pass it a reference to the MainView class so that WorkClass would be able to call it's say hello method, and have the method go where you want (to the single instance of MainView owned by the app-delegate)
    ex:
    //somewhere in app-delegate's initialization
    //assume MainView *theMainView exists and is instantiated.
    WorkClass *myWorkClass = [[WorkClass alloc] init];
    myWorkClass.myPointerToTheMainView = theMainView; //now myWorkClass can speak with
    // the main view through it's
    // reference to it
    I hope that gets the basic idea across.
    I'm pretty new to Obj-c myself so if I made any mistakes or if anyone has a better way to go about this please feel free to add
    Message was edited by: kodafox

  • VPD: Problems calling a function on another schema

    Here's the setup:
    I've create a schema called "AllYourBase".  It contains all of my tables, views, functions, procs, etc.
    These tables are protected by a DBMS_RLS policy.  The policy uses a function to define its predicate which looks like this:
    create or replace function tous_filter(schemaName varchar2, tableName varchar2)
    return varchar2 is
    begin
    return  'account = sys_context(''USERENV'', ''CLIENT_IDENTIFIER'')';
    end;
    All of the tables have an account column for this to work.  So far, this is a pretty basic VPD setup.
    I have other db users that login and view data in the "AllYourBase" schema.
    So when "ArbyLong" logs in, I set sys_context('USERENV', 'CLIENT_IDENTIFIER') to "ArbyLong", and when he runs a query, he gets back his rows.
    Now, "AllYourBase" has several functions.  Here's a very contrived, simplified example of one (but it illustrates the issue I'm running into just fine):
    create or replace function getUserID
    return integer is retval integer;
    begin
    select user_id into retval from users;
    return (retval);
    end;
    When "ArbyLong" runs the equivalent query (select user_id from users), he gets back the one row where the account column is equal to "ArbyLong", as expected.
    But this getUserID function lives in the "AllYourBase" schema.  And here's the catch: I've made "AllYourBase" exempt from the policies by running "grant exempt access policy to AllYourBase".
    When "ArbyLong" runs the function getUserID, it runs in the "AllYourBase" schema and pulls ALL of the rows from the users table.
    This particular function simply errors out (since it's only expecting one row), but other functions are returning data that the logged in user shouldn't see.
    So even though there are policies in place, by calling a function on another schema who is exempt from the policies, a user is able to see all returned data and not just the rows they are normally limited to.
    Ultimately my question is this: Is there a way to enforce VPD policies when a user calls a function that lives in another schema?
    Doing my own research, the answers I've come up with are:
    * Don't use "grant exempt policy"!
    * Put the function directly into the users' schemas.  So "ArbyLong" would have his own getUserID function that would look at the "AllYourBase" users table.
    I'd rather not do either of these, so does anyone have any other ideas?  If it turns out these are the only solutions, then I'll go with one of them.
    Thanks!

    Need more info. Are you using a ViewStack or other navigator container, and trying to access a view that has not been displayed yet, due to deferred instantiation?
    If this post answers your question or helps, please mark it as such.
    Greg Lafrance - Flex 2 and 3 ACE certified
    www.ChikaraDev.com
    Flex Training and Support Services

  • Calling a function inside another class

    I have the following two classes and can't seem to figure to figure out how to call a function in the top one from the bottom one. The top one get instantiated on the root timeline. The bottom one gets instantiated from the top one. How do I call functions between the classes. Also, what if I had another call instantiated in top one and wanted to call a function in the bottom class from the second class?
    Thanks a lot for any help!!!
    package
         import flash.display.MovieClip;
         public class ThumbGridMain extends MovieClip
              private var grid:CreateGrid;
              public function ThumbGridMain():void
                   grid = new CreateGrid();
              public function testFunc():void
                   trace("testFunc was called");
    package
         import flash.display.MovieClip;
         public class CreateGrid extends MovieClip
              public function CreateGrid():void
                   parent.testFunc();

    kglad,
    Although I agree that utilizing events the way you attempted in your suggestion is better for at least a reason of eliminating dependency on parent, still you code doesn't not accomplish what Brian needs.
    Merely adding event listener to grid instance does nothing - there is no mechanism in the code that invokes callTGMFunction - thus event will not be dispatched. So, either callTGMFunction should be called on the instance (why use events - not direct call - in this case?), or grid instance needs to dispatch this event based on some internal logic ofCreateGrid AFTER it is instantiated - perhaps when it is either added to stage or added to display list via Event.ADDED. Without such a mechanism, how is it a superior correct way OOP?
    Also, in your code in ThumbGridMain class testFunc is missing parameter that it expects - Event.
    Am I missing something?
    I guess the code may be (it still looks more cumbersome and less elegant than direct function call):
    package
         import flash.display.MovieClip;
         import flash.events.Event;
         public class ThumbGridMain extends MovieClip
             private var grid:CreateGrid;
             public function ThumbGridMain():void
                 grid = new CreateGrid();
                 grid.addEventListener("callTGMFunction", testFunc);
                 addChild(grid);
            // to call a CreateGrid function named cgFunction()
             public function callCG(){
                 grid.cgFunction();
             public function testFunc(e:Event):void
                 trace("testFunc was called");
    package
         import flash.display.MovieClip;
         import flash.events.Event;
         import flash.events.Event;
         public class CreateGrid extends MovieClip
             public function CreateGrid():void
                 if (stage) init();
                 else addEventListener(Event.ADDED, callTGMFunction);
             // to call a TGM function
             public function callTGMFunction(e:Event = null):void
               // I forgot this one
                removeEventListener(Event.ADDED, callTGMFunction);
                this.dispatchEvent(new Event("callTGMFunction"));
            public function cgFunction(){
                 trace("cg function called");
    I think this is a case of personal preference.
    With that said, it is definitely better if instance doesn't rely on the object it is instnatiated by - so, in this case, either parent should listen to event or call a function directly.

  • 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 to call function module/ class method of another system.

    Suppose now i am working in System A. And i need to check the system Status of System B, System C, System D....
    my design is to provide an interface. and each system realize the interface individually.now my question is how cani call the interface, because they are in different systems.
    of course i know about the host name, port and logon information over these systems.
    who can give my some suggestions or other solutions.
    thanks in advance.
    Johnney.

    Hello,
    If u want to call a FM of the other system then that FM should be a RFC enable on one.
    <b>CALL FUNCTION func DESTINATION dest.</b>
    Effect
    Executes the function module from an external source (as a Remote Function Call or RFC); dest can be a literal or a variable.
    Depending on the specified destination, the function module is executed in another R/3 or R/2 System. Externally callable function modules must be flagged as such in the Function Builder (of the target system).
    Since each destination defines its own program context, further calls to the same or different function modules with the same destination can access the local memory (global data) of these function modules.
    To maintain existing destinations, choose Tools -> Administration, Administration -> Network -> RFC destinations
    Note
    Under certain circumstances, an RFC may trigger a database commit. For this reason, RFCs must not be used between pairs of SQL statements that open and close a database cursor (such as SELECT... ENDSELECT).
    Vasanth

Maybe you are looking for

  • Report performance is very slow

    Hi all, I have a table with 25 million rows. I create a report on this table in which i need to use the following expression ifnull(abc_accr_int_val,0)+ifnull(xyz_mar_val_lcy,0) and this experession is group by asset description but the report output

  • Service Ticket view cannot be displayed

    Hi Experts, In the Web IC, when I try to click on the "Service Ticket" button from the navigation bar, I see the following error: Cannot display view ICCMP_BTSHEAD/BTSHeader of UI Component ICCMP_BTSHEAD An exception has occurred Exception Class  CX_

  • SLD Error - Urgent

    Hi All, Whenever I create a Technical system in SLD, I get the following errors: CIM_ERR_FAILED: Unable to execute createInstance() request, exclusive write mode is enabled Since, I am not able to define a Technical system in SLD, I am not able to cr

  • How to make a ScrollPaneLayout that only scrolls vertically?

    I wish to put a number of JTextPanes in a JPanel that is then inside of a JScrollPane which in turn is inside of a JFrame of arbitrary size. Absent the JScrollPane, if you were to narrow the JFrame, the JTextPanes would wrap their text so that they s

  • How can i maintain a dynamic array

    I want to maintain an dynamic array in my code . It shoud grow accroding to no of user inputs . 1 can entre 5 numbers and other 10 , then array size should grow orderly 5 and 10 like that . Array is int array.