Calling my custom component several times 'freezes' my browser

I have a component (Interf) that has a sub-component (Inter57) that has a sub-components (Interf57User)
In my app, i declare a variable interf of type Interf [the base component]:
[Bindable] public var AasInt interf:Interf = new Interf;
then in a function i check to see if there is an instance of the Interf component on the stage and do a removeChild on it if there is.
then i declaire a new instance of Interf57User and assign it to variable interf and add it to the stage:
if (interfOnScreen) { this.removeChild(interf); }
interf = new Interf57User;
this.addChild(interf);
interfOnScreen = true;
The problem is that after running this function about 6 times, the browser 'freezes'
And yes, Interf has/will have more then one sub component as will those sub-components.

it was because TimerEvent.TIMER_COMPLETE kept firing every second for each 'old' component!

Similar Messages

  • Error when calling a custom component in Web UI.

    Hello Experts ,
    We have  created a custom component for guided procedure in Web UI . When we link the custome component with the standard component for the home page ( WCC_SSV_HOME ) we found that custom controller for guided procedure works . We are navigating the guided procedure for search functioanlity and it works fine and shows the search result .
    But when we click on any of the searched objects say a Case , then links on that  Case is not working .
    For example , we are getting the below  error :
    Exception Class  CX_BSP_WD_INCORRECT_IMPLEMENT - Define NavigationalLink BP for source view ZSOA.MainWindow
    Any inputs on this is higly apreciated.
    Regards
    Vinayak

    Hi Vinayak,
    I am assuming that the implementation of the navigation from the search result to the object details is not working.
    The error you mentioned pointed me that you do not have the navigation link. I don't know what is missing so I am giving you the full details please cross check what you missed.
    1> create and eventhandler e.g. EH_ONSINGLESELECTION
    2> create an outbound plug in your view - this plug is used for the navigation to the target of the hyperlink.
    3> create an outbound plug in the window.
    Define the navigation link whth the name according to the string you have put in the event handler in the search component e.g. SINGLESELECTION
    as source define the component usage for the search. as target define the component usage of header    -> this will handle the connection from search to the header.
    Hope this will help.
    Thanks,
    Vikash.

  • Calling IP planning sequence several times

    Hi Experts,
    we are trying to start a IP planning sequence n-times throughout an ABAP report which is located in a  process chain. 
    In the planning sequence a function from type distribution is located which should distribute line of business nodes to their line of business key.
    Both values ( from and to ) will be represented by variables. This variables has to be folled during run time.
    The values for this variables are located in a table.
    When the sequence will be called the first time a function module : u2026 OLAP_VAR delivers the first value for this variables automatically .
    When the sequence will be called the second time the function module wonu2019t be called again to delivers the next value for the variables.
    Do you have any suggestions how to get the next values for the variables in the second and further calls .
    Regards Michael

    Hello Marc,
    thank you for responding so soon and for the information about the note.
    Meanwhile we figured out how to call a planning sequence n-times.
    We just called the function module with the destination u2018NONEu2019  
    CALL FUNCTION 'RSPLPPMRFC_PLSEQ_EXECUTE'
        Destination 'NONE'   
    u2026
    and closed the destination after the sequence has ran.
      CALL FUNCTION 'RFC_CONNECTION_CLOSE'
       EXPORTING
         DESTINATION                = 'NONE'
        TASKNAME                   =
       EXCEPTIONS
         DESTINATION_NOT_OPEN       = 1
         OTHERS                     = 2.
    This caused the system to reload all needed variables.
    Regards Michael

  • Does it matter if I call the same UDF several times in my mapping?

    Hi !
    I have to map one TXT file to an IDOC. One field of the source file is needed to define values of several IDOC target fields.
    I've developed an advanced java UDF that receives the source field, calls an RFC via JCO to convert the source value, and returns the converted value.
    Then I use this UDF as part of the graphical mapping, to define the values of about 10 or 15 fields of the IDOC. That is, the UDF is placed 10 or 15 times, one time for each target field.
    My doubt is if this an expected way of solving this kind of problem..I'm worried about calling  the UDF (RFC via JCO) about 15 times for each source file record...and they could be 1000 aprox !
    I've added a trace, and a global variable, and inside the UDF, I check if the current input value is equal the last processed value, if it is that case, then I return automatically the buffered value (in a global variable), avoiding the call to RFC....
    Checking my trace...I see that the UDF is called with several different input values in some random order, so my "optimizacion method" does nothing.
    Some ideas?
    Thanks. Have a nice weekend.

    Hi Matias,
    we had a similar problem, and we solved it using a java has table stored in the global container.
    During the mapping program, every time a new source-value has to be look up, that value becomes a new key of the hash and the result of the RFC call (target-value) is stored in the hash table as the value corresponding to that key.
    So this avoid the problem of random calls with different values and you can read from the hash table if a value already exists in the hash table before calling the lookup RFC.
    We implemented this solution and it works like a charm
    Hope it helps,
    Kind Regards,
    Sergio

  • Calling from custom component

    I need to call a switch the viewstack panel from a child of
    it which is a custom login component in separate mxml file after
    authorising, can anyone explain how to do it flex AS3?

    Just listen to the event in the parent itself... and when
    dispatching the event make sure you set bubbles to true.

  • I paid my bill on line, and it somehow posted twice, so that I overpaid by $443.57. I have spoken to customer service several times over the last 5 days, and was told that my refund request was "sent via TOPS form to the treasury department". Having recei

    >> Duplicate post removed to comply with the Verizon Wireless Terms of Service   Please see Bill Over-Payment <<
    Message was edited by: Verizon Moderator

    See my reply to the other identical post you made on this issue.

  • Add several times a component

    I want to add many component on a JPanel. Many components have same text. For moment, I am adding all components with a For and the good text. I would like to create a fixed number of component with text I want, and add only these components. But I don't know if I can add a component several times.
    Can you help me?

    JLabel []labs = new JLabel[5];
    myConstructor(){ // or init() for an applet JApplet
    String str = "Same label";
    JPanel pan = new JPanel();
       for(int j=0; j<labs.length; j++){
          labs[j]=new JLabel(str);
          pan.add(labs[j]);
    OR
    for(int j=0; j<numberOfLabels -1; j++) pan.add(new JLabel("same string") );

  • Callling a Custom Component as Pop Up

    Hi Experts,
    I want to call a Custom Component as a Pop up screen in another component.
    I have followed the below steps (got it from forum) ... but I got stuck at point 7)
    7) While Creating the Component Usage, mention Component Name as your Z Component name and in the Interface View, choose MainWindow from the F4 help.
    I am not getting any value in interface view  (F4) ... pls let me know... how to proceed from here ..
    Thanks & Regards,
    Raghu
    ..................................................................................I followed these steps ..
    You need to follow following steps:
    1. Create an event handler for your click event on which you want to call this pop up.
    2. Create a Z component with a table view and in the table view, define the context nodes and attributes you want to use in the pop up view.
    3. In the .htm coding of this view, define the layout and buttons you want on this pop up view.
    4. Go to Runtime Repositry, create a ViewSet, ViewArea and in this View Area add the table view you created just now.
    5. Create a MainWindow in the Runtime repositry and add the same table view you created.
    6. Now come back to the main Component and add Component Usage (e.g CUXYZ) .......
    7. While Creating the Component Usage, mention Component Name as your Z Component name and in the Interface View, choose MainWindow from the F4 help.
    8. Go to event handler method of your main Component/View and create separate methods for creating your pop up and handling the close event of the pop up as well.
    For seeing the coding, you cna refer to any standard pop up handling and do the coding in similar format.
    I hope this will helps you.

    Hi Arun,
    Created a interface view in my component B and added that in component usage in my component B.
    And created a event handler and added the below code...
    IF lv_popup IS NOT BOUND.
        lv_popup = me->comp_controller->window_manager->create_popup(
                              iv_interface_view_name = 'Z_POPUP/MainWindow'
                              iv_usage_name          = 'CUPopup'
                              iv_title               = 'Popup' ).
        lv_popup->set_window_width( iv_width = 600 ).
    ENDIF.
    But the component view is not displaying as popup ??
    Can you pls guide me.. where I could hav gone wrong ??
    Regards,
    Raghu

  • Passing a reference / variable to a Custom Component

    Hi, I was wondering if someone could help me.
    It seems like a very simple problem but I cant for the life
    of me seem to work out a solution.
    I have created a Custom Component that extends from the
    UIComponent that consists of a “rev counter” style
    clock face etc….
    I want to use this component multiple times within my
    application – however feed it different data so for example
    each “rev counter” on the page will be displaying
    different data etc…..
    I want to be able to reuse my component and not have to
    create a new component every time I add a “rev counter”
    to my application, therefore I need some way of passing a reference
    / variable to the component (maybe from the <mx /> tag where
    I declare it in the MXML code ??? )
    <mx:Application ….
    xmlns:comps="components.*" …..>
    <comps:RevCounterComp id=”” (add something
    here to reference???) />
    </ mx:Application>
    Doing this will allow me to reuse my ONE custom component
    MANY times feeding it different data (different data provaiders for
    each instance of the single component)
    Hope this makes sense???
    Any help / advice is much appreciated,
    Thanks,
    Jon.

    Jon,
    jmryan's suggestion is the preferred way to go. This way you
    can use the simple MXML syntax that you described in your post.
    If your custom component is defined in ActionScript, you can
    use setters or the creationComplete event to update the component
    when the values are passed in from the tag (they are set *after*
    your constructor runs).
    Even easier, if your component is defined in MXML, you can
    add [Bindable] to your public field and then bind directly to it in
    the custom component's MXML code.
    - Peter

  • Can I get the former version of Firefox back? The updated version stalls while browsing several times a day. I then have to close and restart.

    Since updating Firefox, several times a day browsing will 'stall'. I have to close the browser and wait several minutes before I can restart it. Can I get the former version back? Please.

    Fx 3.6.19
    http://www.mozilla.com/en-US/firefox/all-older.html
    As a matter of interest what is this in your User Agent String? -
    GACID=dfc_1689; LTID=1689)

  • Decode function not called for a custom component

    I know this problem happened in the past - in the EA2, EA4 and I believe the beta version as well, but does anyone know if it has been solved for the release ?
    In short - I'm working with the release, created a menuBar component and the decode method in the renderer is not called after I submit the page. In the past, there were rumors that this happened due to relative paths in the JSP (for js files, images, etc.).
    Does anyone else have this problem ? or better , know how to solve it ?
    Thanx,
    Netta.

    It's not that simple - The component is getting rendered, all the encode methods are called and the decode is called also , but only the first time the form is submitted.
    I added this custom component to the guessNumber application, and I have a menuBar in the greeting.jsp that leads to the response.jsp and vice versa. it looks like this in the greeting.jsp page -
    <!-- Start Menu -->
    <t:MenuBar id="bar1" styleClass="myClass" >
    <t:Menu id="menu1" name="menu1">
    <t:Menu id="menu2" name="menu2">
    <t:MenuItem id="item2_1" name="item2_1" action="/mytest/guess/response.jsp"/>
    <t:MenuItem id="item2_2" name="item2_2" action="http://www.msn.com"/>
    <t:Menu id="menu3" name="menu3">
    <t:MenuItem id="item3_1" name="item3_1x" action="http://www.msn.com"/>
    </t:Menu>
    </t:Menu>
    </t:Menu>
    <t:MenuItem id="item3" name="item3" action="http://www.cnn.com"/>
    </t:MenuBar>
    <!-- End Menu -->
    In the response it looks like this -
    <!-- Start Menu -->
    <t:MenuBar id="bar2" styleClass="myClass" >
    <t:MenuItem id="item3" name="item3" action="/mytest/guess/greeting.jsp"/>
    </t:MenuBar>
    <!-- End Menu -->
    and every time a menuItem is clicked on, the JS calls submit form.
    Since the menus are rendered, I assume there's nothing wrong with the rendererType and any other renderer problem. Since the decode is called only once, I assume the right form is being submitted.
    So, what can cause it to stop calling the decode ???
    Could it be that becase I go directly to the page and not through the navigation rules ( I call window.open directly from the JS), it creates a problem ??
    Please help, I've been wasting so much time on this !
    Netta.

  • Custom component property value handling at run time

    I would like to develop simple custom component which has three properties PROP1, PROP2 & RESULT . These parameters are bound to excel sheet cells as follows..
    cell A1 connected to PROP1
    cell A2 connected to PROP2 and
    cell A3 connected to RESULT.
    In excel A1 cell has excel formula set as =IF(A2<5,10,0).
    Custom component would be simple button display at runtime and on click of the same, I would like to perform following actions in sequence with N number of times.
    1. First push any random number to PROP2. (which is simple task, I believe)
    2. Pick new value of PROP1 which is changed due to existance of excel formula (+ using dispatchevent I could able to pass value to excel cell A2. But not able to read new value of PROP1+)
    3. check new PROP1 value equal to 10. If it is 10 then count it otherwise again push new random value to PROP2.
    4. Continue step 1 to 3 till N number of times. and finally
    4. Push number of counts for PROP1 value 10 to RESULT parameter.
    All the parameters are bindable (getter/setter with [Bindable]) in Flex component application and flex propertysheet application use binding ID to bind with cell address. with binding direction BOTH and SINGLETON
    Here is flex function code which triggered at button click.
    public function test002():void {
    while ( N < 100)
      this.PROP2 = Math.round(Math.random()*1000);
      dispatchEvent(new PropertyChangeEvent(PropertyChangeEvent.PROPERTY_CHANGE, false, false, PropertyChangeEventKind.UPDATE, "PROP2", null, PROP2, this));
         if (this.PROP1 == 10)
          cnt++;
       this.RESULT = cnt;
    My observations are as follows.
    - new push of value to PROP2 get reflected to excel A2 when button click event is over, not at the time of while loop process execution.
    - Also I observed PROP1 value never changes and it is the value which is recorded just before button click event of component at run time and remain the same till button click event is over.
    - Further to this I notice as click event is over, new value of PROP2 reflected in cell A2 and change value (if it passes IF formula of excel ) in A1 as well. Next button click action takes these new A1 and A2 values in consideration and process the function "test002".
    I would like to understand possibility of custom component event execution process, which can able to pass as well as read value from component parameters to underlying excel with changes due to excel formula existance.  If it is not limitations (If so) what is the set of commands which can be helpful to achieve this. I appreciate if anybody explain typical event execution required in such scenarios with some actionscript code directions.
    Thanks
    Sandesh
    Edited by: Sandesh Darne on Feb 8, 2010 11:48 AM
    Edited by: Sandesh Darne on Feb 10, 2010 5:23 AM

    Marton,
    I have tried your solution. It works well immediately after xcelsius dashboard get displayed or preview. It does not wait click event to happen. So I modified further by adding one switch ( "switch001" in code piece shown below) to control iteration by click event. That stops running of iteration immediate after dashboard display.
    In order to see iteration I have to click twice on button. First click does send "frm" parameter value to excel and excel formula operates. The excel formula result send back to component via SETTER of "frmResult" . But it stops over there. If I click second time the iteration starts for 100 times.
    Also I try to export this to PDF. PDF file get generated. If I try to open PDF file it raise error.
    My code is attached here.
    "frm" is the parameter that sends random number to excel.
    "frmResult" parameter receives excel formula output and send it back to component.
    "test()" function operate on button click event and set switch001 and then calls "Calc" function for iterations.
    MXML code..........
      <mx:VBox>
           <mx:TextInput id="frmResultLabel" width="100" />
           <mx:Button label="test..." click="test()"/>
      </mx:VBox>
    Actionscript code
    public var cnt:int;
              public var N:int = 0;
              public var sum:int = 0;
              public var switch001:Boolean = false;
             public function test():void {
                   N = 0;
                   sum = 0;
                   switch001 = true;
              public function Calc():void {
              if (switch001 == true)
                if (N < 100)
                    this.frm = Math.round(Math.random() * 1000);
                else if (N == 100)  // return the result
                     this.frmResult = sum;
                     // Label component use to display frm and frmResult values at runtime
                     frmResultLabel.text = sum.toString() + ">" + this.frm + ">" + this.frmResult;
                 N++;
              [Bindable]
              private var _frm:int;
              private var _frmChanged:Boolean = true;
              [Bindable]
              public function get frm():int
                   return _frm;
              public function set frm(value:int):void
                   //if (value == null)  value = 0;
                   if (_frm != value)
                        _frm = value;
                        _frmChanged = true;
                        invalidateProperties();
              override protected function commitProperties():void
                 super.commitProperties();
                 if (_frmResultChanged == true)
                        // start the cycle again by generating a new random number,
                        // or write out the result
                        Calc();

  • Sometimes I hear a clicking or static sound followed by the inability of my caller to hear me, although I can hear them.  Often happens several times in a row.

    Sometimes I hear a clicking or static sound followed by the inability of my caller to hear me although I can hear them.  Sometimes happens several times in a row.

    NLEdit,
    Here's what I have (to the best of my knowledge):
    Original source: mini DV tape, it's all HD
    I use capture now to digitize the whole tape. My easy setup is: HDV- 1080i60 FiriWire Basic. After I have digitized all of it - it's an .mov file with the settings I just posted above. So when final cut is done digitizing I already have all the files in my browser window and I just drag them and drop them in the timeline and I choose to match the timeline settings if they're different. So my timeline settings look like this:
    Frame Size: 1440x1080
    Vid Rate: 29.97 fps
    Compressor: HDV 1080i60
    When I'm done editing, I use batch export to export a bunch of sequences (they all have the same settings I just mentioned above) and I chose:
    Format: QuickTime (custom), Compression Type H.264, frame rate: 29.97 fps, key frames: every 24frames, compressor quality- high, encoding: best quality. Then for size I choose either 1280x720 HD or I use "custom" to make them half the size of that so that would be 640x360. My point is to end up with an .mov file which I can then encode into an flv or just burn it on a data cd.
    As for your question number 1: I'm not even sure what you mean by that.
    Does all that make any sense now?

  • AwakeFromNib called several times

    Hi,
    I have two Nib files in a project, the mainMenu.Nib has a controller class which was also used in the second.Nib as custom class of File's Owner. I use NSBundle loadNibNamed to load the second.Nib. when the mainMenuNib is loaded, i notice controller's awakeFromNib is called which is normal, but when the second.Nib is loaded, awakeFromNib is called again, is this the normal behavior ? if yes, then it is not advisable to initialize variables in the awakeFromNib as it might be initialized several times when other Nib is loaded during runtime?

    Hi!!
    To avoid that kind of things, you should initialize all the app variables and things you want in an "init" method and specific ones in the awakeFromNib. This method is generical used when you want to initialize things from the GUI (graphical user interface). I mean, objects from the interface: buttons, etc to give them an initial behavior.
    Hope you get my idea
    C U!!

  • Decode-method for custom component isn't called

    Hi,
    i have writen a custom component which gets some information by command-link. To make the data from the link accessible, i wrote a decode method in my renderer and in me component. But both method are not called from the faces framework.
    Dows anybody knows what i made wrong???
    Thanks, Sebastian

    Hi,
    thank you for your reply.
    Unfortunately the processDecodes(...) of my component is also not called from the framework. Does anybody knows what i'm making wrong???
    Thanks!

Maybe you are looking for

  • Excise Invoice Tab should not open at GRN

    Hello all, I am trying to procure assets with account assignment A and without material code. I am using 0% tax.  We also do not have any records in J1ID tcode. However, during GRN the Excise invoice tab is opening up. One way to get around at GRN is

  • IPod and iPhone no longer syncing with iTunes

    First my iPhone would sync. I would get a "could not sync" because iPhone timed out. It would start and do several things (backup, sync contacts) but then seemed to get stuck transferring an application purchased on the iPhone to iTunes. But then I r

  • How can I find the dimensions of an object?

    Is there a way to view the height and width of an object in Photoshop without having to measure it with the ruler tule or eyeball it?

  • How to append DATA_PACKAGE strucutre to include new key figures?

    Hi, Iu2019m a newbie to ABAP and need some help with a start routine in BW 3.5 In the source DSO I only have  the u201CYTD amountu201D key figure. The destination DSO should also contain the key figures u201CCurrent month amountu201D (ZAMTMO) and u20

  • IBM Thinkpad Standard TFT Screen

    Please still provide IBM Thinkpad R series and T series using standard TFT Screen so people still have choice to choose between standard screen or wide screen because many people in Indonesia still like it and always looking for Notebook using standa