Run a method next frame?

Hi.  I'm new to Flex.  I want to expand the root of a TreeList with myTree.expandChildrenOf(myTree.dataProvider[0], true) but this does not work for one of two reasons:  either the [0] node doesn't exist yet (even though I just loaded it with data), or the tree draws the default (collapsed) view immediately after this line.  Is there a way to delay execution until the next frame?  Is there an event I can use?  Is there an expanded property I can set on the root node in the dataProvider?  I'm using Flex 3.3.  Thanks.

I think the problem may have to do with the fact that Flex is asynchronous.
You call myTreeResults.LoadData() and then soon thereafter you call myTreeResults.ExpandRoot(), but because Flex is asynchronous the data may not be loaded yet.
You would be better off calling myTreeResults.ExpandRoot() in the data loading result handler, or in whatever function loads the data, right after you have put the data in the dataprovider.
If you are using "lastResult" then you need to make changes to use a ResultEvent handler.
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 / AIR Development, Training, and Support Services

Similar Messages

  • If Multiple Hittests equal true, go to and play next frame

    Hi All,
    I am trying to finish up a project and run into this problem, right now I am trying to create a drag and drop game and on the last game you can drop
    parts into the others, what I want to happen is that when all are in the correct spot gotoandplay next frame. This is my current code,
    Thanks
    if(one_mc._droptarget=="/onedef_mc" && two_mc._droptarget=="/twodef_mc" && three_mc._droptarget=="/threedef_mc" &&
    four_mc._droptarget=="/fourdef_mc" && five_mc._droptarget=="/fivedef_mc" && six_mc._droptarget=="/sixdef_mc" &&
    cave_mc._droptarget=="/cavedef_mc" && eight_mc._droptarget=="/eightdef_mc" && nine_mc._droptarget=="/ninedef_mc" &&
    ten_mc._droptarget=="/tendef_mc" && eleven_mc._droptarget=="/elevendef_mc" && twelve_mc._droptarget=="/twelvedef_mc");
    this is the if statement, im just not sure how to implement the gotoandplay...
    Does this make sense?
    Thanks

    if you don't have code to check if all the movieclips have been dropped on their targets, there's no way that code can work.
    use something like:
    one_mc.onPress = function()
    one_mc.startDrag();
    one_mc.onRelease = function()
    checkF();
    if(one_mc._droptarget=="/onedef_mc")
      // align Sprite3
      one_mc._x = onedef_mc._x + (onedef_mc._width-one_mc._width)/2;
      one_mc._y = onedef_mc._y + (onedef_mc._height-one_mc._height)/2;
      one_mc.gotoAndPlay("success");
      // the code in italics doesn't look right
    } else {
      (one_mc._droptarget=="/onedef_mc")
      // align Sprite3
      one_mc._x = onewrong_mc._x + (onewrong_mc._width-one_mc._width)/2;
      one_mc._y = onewrong_mc._y + (onewrong_mc._height-one_mc._height)/2;
      onedef_mc.gotoAndStop("fail");
    one_mc.stopDrag();
    function checkF(){
    if(one_mc._droptarget=="/onedef_mc" && two_mc._droptarget=="/twodef_mc" && three_mc._droptarget=="/threedef_mc" &&
    four_mc._droptarget=="/fourdef_mc" && five_mc._droptarget=="/fivedef_mc" && six_mc._droptarget=="/sixdef_mc" &&
    cave_mc._droptarget=="/cavedef_mc" && eight_mc._droptarget=="/eightdef_mc" && nine_mc._droptarget=="/ninedef_mc" &&
    ten_mc._droptarget=="/tendef_mc" && eleven_mc._droptarget=="/elevendef_mc" && twelve_mc._droptarget=="/twelvedef_mc"){
    gotoAndPlay(_currentframe+1);

  • Crop Tool -- shortcut to advance to next frame since forward arrow doesn't work in crop tool?

    Hi,
    As a pro, I crop all my photos.
    I normally use the forward arrow to move through each image, but with the crop tool the forward arrow doesn't work for advancing to the next frame.
    It only adjusts the crop.
    This is extremely frustrating for me as it slows down my workflow.
    Is there a one key shortcut, within the Crop Tool -- that permits us to move forward from frame to frame?
    I wish the forward key worked for this within the crop tool!
    Is there an easy answer or a way to format something in Lightroom -- so I can have a one-key method to advance frames within the Crop tool?
    thank so much, Teri

    Thank you so much Jim, really appreciate you're taking the time to get back to me... its so helpful and now I can get my jobs done!
    I just tested it on my Mac and it worked with the Command + arrow Key...
    However, using two fingers for this shortcut is a little clumsy and uncomfortable...
    I think there's a way to create your own keyboard shortcuts -- do you know how to do this, maybe assigning a single key which would be a little easier?
    Thanks again so much for taking the time to answer this Jim and hope you have a great night!
    all the best, Teri

  • TweenEvent.MOTION_FINISH & how can I get "next frame()" to work?

    I just started learning AS3 the other day and NEED HELP!!. I'm trying to tween two movie clips at the same time and when they are finished, make them timeline move to the next frame. How do I do this or make it work!?!!?!? .
    Here is my current code:
    import fl.transitions.Tween;
    import fl.transitions.easing.*;
    import fl.transitions.TweenEvent;
    var myTween:Tween = new Tween(doorRightMc, "x", Bounce.easeOut, 500.7, 1001, 3, true);
    var myTween2:Tween = new Tween(doorLeftMc, "x", Bounce.easeOut, 24.2, -480, 3, true);
    stop();
    myTween.addEventListener(TweenEvent.MOTION_FINISH, handleReset);
    function handleReset(e:TweenEvent):void {
        e.target.nextFrame();
    PLEASE Help me out with this! I can't get the nextFrame() function to work .
    Thanks!!!
    Here is the ERROR MESSAGE:
    Error: Error #1023: Stack overflow occurred.
        at fl.transitions::Tween/getPosition()
        at fl.transitions::Tween/update()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()
        at intro4_fla::MainTimeline/onFinish()
        at flash.events::EventDispatcher/dispatchEventFunction()
        at flash.events::EventDispatcher/dispatchEvent()
        at fl.transitions::Tween/set time()
        at fl.transitions::Tween/nextFrame()

    Stack overflows occur with infinite loops involving function calls (deep recursion).
    Your code causes a stack overflow because it calls the tween's nextFrame() function when the motion is already complete. That means that the MOTION_FINISHED event will be dispatched in the function you defined for the MOTION_FINISHED event: an infinite loop.
    I encountered a similar stack overflow when I tried to set the time of a tween beyond it's upper time in a MOTION_FINISHED event handler.
    ex.
    import fl.transitions.Tween;
    import fl.transitions.TweenEvent;
    import fl.transitions.easing.*;
    var xTween:Tween = new Tween(testObject, 'x', None.easeNone, 0, stage.stageWidth, 1, true);
    xTween.addEventListener(TweenEvent.MOTION_FINISH, handleReset);
    function handleReset(e:TweenEvent):void{
         e.target.time = 9001;
    (also, you're only supposed to use the nextFrame() method for frame-based tweens (Tweens with the useSeconds parameter set to false))

  • How do I optimize "Waiting for the next frame"

    When running my swf file in release build, the first time I start the browser after cleaning the browser cache, the .swf will appear in less than a second.  If I attach scout, I can see it is around .7 seconds to finish.
    However, after this run all subsequent times I load the page, it takes ~3 seconds.
    When I look at scout, I see almost identical CPU and memory use , but it is spending ~2.3 seconds "Waiting for the next frame".  (almost an extra 700ms per frame).
    There is no requirement for animation, all of the content is very static.   I'd just like to render it as fast as possible.
    I know it's not related to caching the .swf file because I have tried turning off the caching (by adding a random parameter) and verified using Httplogger that it is always downloading a new .swf file.  (I turned back on caching).  So I'm kind of not sure what to do next...
    What things can I try to optimize this?  Are there places I can read about this issue?
    (P.S.  >>  I notice it spends a lot more time "Waiting for the next frame" when I build a debug version.  Don't know if that's relevant...)
    Thanks!

    There's nothing you can do about "Waiting for next frame" - this is simply the time when Flash Player has finished doing everything it needs to do for the frame, and waiting for the OS to wake it up again. This depends on the framerate you set in your swf - roughly speaking, the waiting time is the budget (1/framerate), minus the time Flash Player spends doing actual work.
    You can find more information here, about understanding how the data you see in Scout relates to how Flash Player works:
    http://www.adobe.com/devnet/scout/articles/understanding-flashplayer-with-scout.html
    btw, you shouldn't look at performance in a debug swf - you'll get wildly misleading results.

  • Captivate button going to next frame in Flash MX

    I have a button in Captivate 1.0. I am calling the move with
    a loadMovie function. I want the next button in Captivate to go to
    the next frame in my Flash MX file. Is this possible? and if so,
    how and if not, how do I get back to my Flash movie next frame
    after running an external captivate .swf file?
    sorry, I tried to delete this and put it in the Captivate
    forum, but could not figure out how. Sorry for the double post

    thanks for the correction kglad,
    flominton,
    Looks like you're new to Flash like me. Let me walk you through what I've done for my project.
    I opened up a AS2 project in Flash, created three layers (video, postcard, actions)- bottom to top.
    In video layer click on the first frame, and import your flv video. Once the importing is done click on the FLVPlayback on the stage and give it an instance name "player". Right click on the first frame on video layer and open up actions panel, enter this code:
    stop();
    player.addEventListener("complete",function (event:Object) {
    gotoAndStop("LabelNameHere");});
    Now, click on the second frame on postcard layer. Create a keyframe, and in the properties panel give your frame a label. I gave it the name "postcard"  for example. So whatever name you put in the label name area, write it in the code where it says "LabelNameHere". Assuming you have the image you want to put after the video plays in your library panel, drag the image on the stage while you're still in the second frame on postcard layer.
    You dont have to do this part, but after I draged the image on the stage I converted it to a movie clip and created an alpha transition. Let me know if you dont know how to do this.
    If you'd like to link your image to a URL follow these steps. After I converted the image into movie clip, I right clicked on the image on the stage and opened up the actions panel and entered this code:
    on (release) {
        //Goto Webpage Behavior
        getURL("https://www.yourwebsite.com","_self");
        //End Behavior
    Finally, go to your actions layer. make sure this layer has equal number of frames as the the postcard layer does. Insert this code in the last frame of actions layer:
    stop();
    I hope this helps.
    Veli

  • Hi, I cant run set Method of bindings on my class with  ADF BC

    Hi I made a private definition, as follow.
    private BindingContainer bindings;
    get and set method
    public void setBindings(BindingContainer bindings) {
    this.bindings = bindings;
    public BindingContainer getBindings() {
    return this.bindings;
    How can I run set method when the Page loading.
    Onur...............

    Thanks, I wrote your code it worked.But there is another problem.I'am sending my code and the place of error.
    I wrote this code for reading column of the table. Can you help me please?
    Here is the code:
    public Vector getNid(){
    Vector vNid = new Vector();
    CoreTable table = this.getMasterDetail1();
    Set rowSet = table.getSelectionState().getKeySet();
    Iterator rowSetIter = (Iterator)rowSet.iterator();
    BindingContainer bindings = getBindings();
    DCIteratorBinding pr_dcib=null;
    try {
    pr_dcib = (DCIteratorBinding) bindings.get("EgitimTalepHareketiIViewSorgu1Iterator");
    catch (Exception e) {
    System.out.println(e.toString());
    while (rowSetIter.hasNext()){        
    //set the current row in the ADF binding to the same row
    pr_dcib.setCurrentRowIndexInRange(((Integer)rowSetIter.next()).intValue());//in this place Iam taking error
    ViewRowImpl prRow = (ViewRowImpl) pr_dcib.getCurrentRow();
    String rid="0";
    try {
    rid = (String)prRow.getAttribute("HareketId").toString();
    catch (Exception e) {
    System.out.println(e.toString());
    System.out.println("Hareket ID : "+rid);
    vNid.add(rid);
    return vNid;
    The eror is like this
    javax.faces.FacesException: #{backing_GenelEgitimListesi.commandButton1_action}: javax.faces.el.EvaluationException: java.lang.ClassCastException: oracle.jbo.Key     at com.sun.faces.application.ActionListenerImpl.processAction(ActionListenerImpl.java:98)     at oracle.adf.view.faces.component.UIXCommand.broadcast(UIXCommand.java:211)     at javax.faces.component.UIViewRoot.broadcastEvents(UIViewRoot.java:287)     at javax.faces.component.UIViewRoot.processApplication(UIViewRoot.java:401)     at com.sun.faces.lifecycle.InvokeApplicationPhase.execute(InvokeApplicationPhase.java:95)     at com.sun.faces.lifecycle.LifecycleImpl.phase(LifecycleImpl.java:245)     at com.sun.faces.lifecycle.LifecycleImpl.execute(LifecycleImpl.java:110)     at javax.faces.webapp.FacesServlet.service(FacesServlet.java:213)

  • Find whats the Next Frame

    Hi scripters
    Here I am trying to find the next frame. Here is my script.
    var myf = app.selection[0];
    alert(myf);
    var b = myframe.nextTextFrame;
    The script error
    Error Number: 55
    Error string: Object does not support the property or method 'nextTextFrame'
    Please advice me where I am mistaken
    thanks in advance
    regards
    a r u l
    vpublish.net

    Hi Kasyan
    Thanks for your reply. I am sorry for my typo mistake I have corrected now the script is like this
    var myf = app.selection[0];
    alert(myf);
    var b = myf.nextTextFrame;
    but the same error thrown by the scrip!
    please advice
    thanks
    regards
    a r u l
    vpublish.net

  • End of Flv to go to next frame

    > This message is in MIME format. Since your mail reader
    does not understand
    this format, some or all of this message may not be legible.
    --B_3261382853_1599170
    Content-type: text/plain;
    charset="ISO-8859-1"
    Content-transfer-encoding: 8bit
    I have a flash movie with an external .flv file playing in
    it. I would like
    that once the video ends, it should play the next frame in
    the flash file, I
    have searched a lot on the net I can¹t seem to find
    anything easy to
    implment. Can someone help me pleaseeeeeeee?!??!
    --B_3261382853_1599170
    Content-type: text/html;
    charset="ISO-8859-1"
    Content-transfer-encoding: quoted-printable
    <HTML>
    <HEAD>
    <TITLE>End of Flv to go to next frame</TITLE>
    </HEAD>
    <BODY>
    <FONT FACE=3D"Helvetica, Verdana, Arial"><SPAN
    STYLE=3D'font-size:12.0px'>I hav=
    e a flash movie with an external .flv file playing in it. I
    would like that =
    once the video ends, it should play the next frame in the
    flash file, I have=
    searched a lot on the net I can&#8217;t seem to find
    anything easy to implm=
    ent. Can someone help me
    pleaseeeeeeee?!??!</SPAN></FONT>
    </BODY>
    </HTML>
    --B_3261382853_1599170--

    var vidList : Object = new Object();
    vidList.complete = function() {
    _level0.play(); //this is the action that occurs when the
    movie is finished
    vid.addEventListener ("complete",vidList);
    stop();
    The FLVPlayback component needs an instance name of vid for
    this to work

  • Recently, after cancelling the tick of a song, which is the next song after the one I am listening, in the song list, the canceled song will still run for the next song. I remember that it used not to happen like this. How can I solve this problem?

    Recently, after cancelling the tick of a song, which is the next song after the one I am listening, in the song list, the canceled song will still run for the next song. I remember that it used not to happen like this. How can I solve this problem?

    This looks like a change of behaviour in iTunes 12. Once songs are queued up to the Up Next list then they play whether ticked or not. If you want to skip certain songs already queued click the Up Next tool, then click the small X to the left of the song that appears when you hover over it.
    tt2

  • Cue point to jump to next frame of movie

    Hi. I'm a bit lost assigning an action script created
    CuePoint (Entered in Paramenters Window for FLV media component) to
    tell my SWF movie to advance to the next frame and thus call the
    next video I want to throw onto that next keyframe.
    I know this must be basics to most, but somewhere I'm
    missing it. Once a CuePoint is created, how do I link that to
    trigger an action?

    Thanks for reply. I was out of things for a week with flu.
    Serious flu. Now I have to catch up. Grrrr.
    Does that mean ("cuePoint" , ... needs to be replaced with
    the actual name of the cue point to work?
    + The Cue point Parameters. What should they be set
    as?

  • How come my safari windows disappear when I close my laptop and open again? The safari windows I wanted to keep running for the next time I open my laptop disappeared. Why? Help me.

    How come my safari windows disappear when I close my laptop and open again? The safari windows I wanted to keep running for the next time I open my laptop disappeared. Why? Help me.

    Important note, do NOT sleep your macbook Air with headphones attached until this is resolved.
    Ive done a good best of testing on same to confirm not to do that
    also if you have the APP "BOOM" installed........ remove it

  • Skip to next frame

    Dear all
    how can I advance to a next frame in a sequence upon a condition
    becoming true in a previos frame? I am waiting for a response from a
    serial instrument. If the instrument does not respond, the program sits
    there forever. I would like to have some time-out condition, i.e. if no
    response for, say, 5 seconds- move to next frame. Something easy 2 do in
    a text based language- but how can I do it in labview?
    TIA
    YZ

    I must agree with joe, anytime I see a sequence a state machine comes to mind, this is a much more flexible solution since you can easily modify the order of a sequence, skip steps by just modifying the transition logic.  I made the change from sequence to state machined about 3-4 years age and havent looked back.  Finite automata is a very well studied and mature design pattern and is easily modeled and implemented in labview.  The only disadvantage to it is that it is a little bit  more conceptually difficult to grasp than a sequence structure. 
    Paul
    Paul Falkenstein
    Coleman Technologies Inc.
    CLA, CPI, AIA-Vision
    Labview 4.0- 2013, RT, Vision, FPGA

  • Running total and Next function in Crosstab

    <strong><font size="3"><font face="Times New Roman">Clarifications on getting Next Running sum and count on a Crosstab</font></font></strong><font face="Times New Roman" size="3"> </font> <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Here is the example, which I am working on:</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Highlights of the Report:</font></p><p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; tab-stops: list .5in" class="MsoNormal"><font face="Times New Roman"><span><font size="3">-</font><span style="font: 7pt &#39;Times New Roman&#39;">         </span></span><font size="3">Report is grouped on {Scenario Name}</font></font></p><p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; tab-stops: list .5in" class="MsoNormal"><font face="Times New Roman"><span><font size="3">-</font><span style="font: 7pt &#39;Times New Roman&#39;">         </span></span><font size="3">Left side dates on any of the tables is {Version Date}</font></font></p><p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; tab-stops: list .5in" class="MsoNormal"><font face="Times New Roman"><span><font size="3">-</font><span style="font: 7pt &#39;Times New Roman&#39;">         </span></span><font size="3">Dates on the top header on any of the tables is {Fsc Week End Dt}</font></font></p><p style="margin: 0in 0in 0pt 0.5in; text-indent: -0.25in; tab-stops: list .5in" class="MsoNormal"><font face="Times New Roman"><span><font size="3">-</font><span style="font: 7pt &#39;Times New Roman&#39;">         </span></span><font size="3">Other formulae used in this report are:</font></font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">1) = ({Query1.Demand Qty})/100000</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Numerical values displayed in the "Original values" table.</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">2) =</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">if {Query1.Scenario Name} = &#39;DLYPRD:ASCP-PRD:PRD&#39; </font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">THEN mid ({Query1.Scenario Name},13,3)</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">ELSE mid ({Query1.Scenario Name},13,6)</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Second column with value PRD in any of the tables.</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">3) {next qty} = if not onlastrecord then next({@ShortDemandQty}) else 0;</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">(used in the "next values vertically" table)</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">4) - running total to calculate horizontally</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Evaluate - For each record</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Reset - On change of field: {Version Date}</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">5) - running total to calculate vertically.</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Evaluate - For each record</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Reset - On change of field: {Fsc Week End Dt}</font></p><font face="Times New Roman" size="3"> </font> <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">In this report design, when I go and change the Sort order in the Record Sort Expert, some of the values go for a toss. I got two cases where the vertical values are correct in one case and horizontal values are correct in another case.</font></p><font face="Times New Roman" size="3"> </font><strong><font size="3"><font face="Times New Roman">First Case:</font></font></strong> <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Cumulative vertical values are correct.</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal">&#160;</p><font face="Times New Roman" size="3"> </font><strong><font size="3"><font face="Times New Roman">Second Case:</font></font></strong> <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Cumulative horizontal values are correct.</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal">&#160;</p><font face="Times New Roman" size="3"> </font><strong><span style="color: blue"><font size="3"><font face="Times New Roman">Is there any way to consistisize both the horizontal and vertical running totals. I even tried forcing the evaluate & reset like below and clearing the record sort order, but it did not work:</font></font></span></strong><strong><span style="color: blue"><font face="Times New Roman" size="3"> </font></span></strong> <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">1) - running total to calculate horizontally</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Evaluate - On change of field: {Fsc Week End Dt}</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Reset - On change of field: {Version Date}</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">2) - running total to calculate vertically.</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Evaluate - On change of field: {Version Date}</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">Reset - On change of field: {Fsc Week End Dt}</font></p><font face="Times New Roman" size="3"> </font><strong><span style="color: blue"><font size="3"><font face="Times New Roman">And one more observation on the running total, how it works in the crosstab is, the total runs likes a spiral rather than resetting at the column or row level. Is there any way to restrict this?</font></font></span></strong><font face="Times New Roman" size="3"> </font> <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">3) {next qty} = if not onlastrecord then next({@ShortDemandQty}) else 0;</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">(used in the "next values vertically" table)</font></p><font face="Times New Roman" size="3"> </font> <p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">For example, onlastrecord does not seem to work on the "next values vertically" crosstab, rather brings the record from the next column.</font></p><p style="margin: 0in 0in 0pt" class="MsoNormal"><font face="Times New Roman" size="3">For 3/7/2007 - 01/APR/07, the value is 157.84 which is incorrect and should be 0.</font></p><strong><span style="color: blue"><font size="3"><font face="Times New Roman">I need to get a next on the running total. Next (fld) doesnot work for running totals. Please guide me, how to get the next values for the running total fields.</font></font></span></strong>

    Post Author: redtop6683
    CA Forum: Formula
    Whoops I guess I should have mentioned that I've already tried using Sum and Round(Running Total, 2) and haven't had any luck.
    I also should have mentioned that Groupings 1 and 2 are sums, and that Running Total is a running total that changes on every change of the grouping.  There are 4 groupings.
    Grouping 1 (Employee Name)
    Grouping 1.1 (Shift)
    Grouping 1.2.1 (Payroll Department Code)
    Grouping 1.2.1.1 (Description)
    Below these 4 groupings is where the running total is.  The issue is that in the footer of grouping 1 is a field that sums the elapsed hours for the particular employee by each payroll department code, these are then summed using the running total.  The issue is as stated in the earler post that I can round these individual sums on the groupings, but I get the number on my running total to round differently as you can see by the earlier post's example.
    Thanks for the help.
    ~Jason

  • Can I use the Run VI method on a Compact FieldPoint?

    <double post>
    Message Edited by Synap on 03-30-2006 01:49 PM

    I found my answer!
    Turns out that the cFP CAN run the Run VI method, it's just that it's file serching abilities are not as robust as the full desktop version.  Make sure you upload the vi (still looking for an automatic way to do this) and make the file path point to it explicitly (i.e. "C:\NI-RT\LABVIEW DATA\File.vi" if you happened to upload it there).

Maybe you are looking for

  • Unknown icon in running applicatio​ns tray

    Good day, I sometimes find un unknown icon in my applications tray called menu.  I reboot my phone and the icon disappears.  The last two days I had the exact looking icon but this time it's called Startup2.  Even when I reboot my phone it stays ther

  • How do you install iTunes 7 in Win XP

    I dont have access to an Admin account on my computer, but want to upgrade my iTunes 6 to 7. I ran the installer in Safe Mode, but it failed when it tried to start the ipodservice... i retried 3-4 times, but it did not work and I had to cancel the in

  • MDM Security role issue

    Hi ALL I have created a new MDM role for Combined Basis & security purpose, The role works fine when tested for creating users & roles & some basis activities. It has full access to basis activities & readonly access to other activities outside of ba

  • Problems with automounting and sharing

    Hi. I have 2 G5 Xservers running OS X Server 10.4.11. One is a full Xserve which hosts the open directory server and is the file server for a large group. The second is the old cluster node with only a 40 GB HD. I want to use the cluster node to run

  • How to install Vista Service Pack 1 - Equium P200

    have now tried loads of times to install sp1 update. this on Equium P200. update sticks in loop and finally reverts to old settings.tried installinfrom disc. this did same, but came up with error code 0x800f0826. the link this took me to microsoft si