Navigation Wizard waypoint relative rather than absolute?

Is there a reason why Wizard.onNavigateTo only checks agains the immediate parent waypoint? This limits the wizard from working across multiple waypoint levels and doesn't work with nested waypoints.
1. Create a wizard with a waypoint called foo.bar containing several children
e.g.
<wizard:Wizard id="myWizard" waypoint="foo.bar">
        <mx:Array>
            <mx:String>foo.bar.step1</mx:String>
            <mx:String>foo.bar.step2</mx:String>
            <mx:String>foo.bar.step3</mx:String>
        </mx:Array>
</wizard:Wizard>
2. Navigating to a destination within foo.bar using the wizard
e.g. foo.bar.step2
in the wizard onNavigateTo it checks that the wizard waypoint equals "bar" instead of "foo.bar" and doesn't update.
Would it be more flexible to check if the target destination is within the wizard and update the currentDestination accordingly? If the target destination is not within the wizard then perhaps the wizard resets currentDestination to null? A better solution would be to use the wizard's waypoint to determine if the currentDestination is reset when a navigateTo event occurs - if the destination is outside the 'scope' of the wizard waypoint (i.e. not a decendant) then set to null, otherwise leave wizard state as is.
in com.adobe.cairngorm.navigation.wizard.Wizard.as
[MessageHandler(selector="navigateTo")]
        public function onNavigateTo(event:NavigationEvent):void
            var qualifiedWaypoint:String = event.waypoint;
            if(_stages.indexOf(event.destination) > -1)
                currentDestination = event.destination;
                wizardChange();
          else
                var commonAncestor:String = getCommonAncestor(_waypoint, qualifiedWaypoint);
                if(commonAncestor != _waypoint)
                    currentDestination = null;
                    wizardChange();
private function getCommonAncestor(destination1:String, destination2:String):String
            var ancestor:String;
            var first : Array = destination1.split( "." );
            var second : Array = destination2.split( "." );
            var length : int = Math.min( first.length , second.length );
            for ( var i : int ; i < length ; i++ )
                if ( first[ i ] != second[ i ] )
                    break;
            ancestor = first.slice( 0 , i ).join( "." );
            return ancestor;

Is there a reason why Wizard.onNavigateTo only checks agains the immediate parent waypoint? This limits the wizard from working across multiple waypoint levels and doesn't work with nested waypoints.
1. Create a wizard with a waypoint called foo.bar containing several children
e.g.
<wizard:Wizard id="myWizard" waypoint="foo.bar">
        <mx:Array>
            <mx:String>foo.bar.step1</mx:String>
            <mx:String>foo.bar.step2</mx:String>
            <mx:String>foo.bar.step3</mx:String>
        </mx:Array>
</wizard:Wizard>
2. Navigating to a destination within foo.bar using the wizard
e.g. foo.bar.step2
in the wizard onNavigateTo it checks that the wizard waypoint equals "bar" instead of "foo.bar" and doesn't update.
Would it be more flexible to check if the target destination is within the wizard and update the currentDestination accordingly? If the target destination is not within the wizard then perhaps the wizard resets currentDestination to null? A better solution would be to use the wizard's waypoint to determine if the currentDestination is reset when a navigateTo event occurs - if the destination is outside the 'scope' of the wizard waypoint (i.e. not a decendant) then set to null, otherwise leave wizard state as is.
in com.adobe.cairngorm.navigation.wizard.Wizard.as
[MessageHandler(selector="navigateTo")]
        public function onNavigateTo(event:NavigationEvent):void
            var qualifiedWaypoint:String = event.waypoint;
            if(_stages.indexOf(event.destination) > -1)
                currentDestination = event.destination;
                wizardChange();
          else
                var commonAncestor:String = getCommonAncestor(_waypoint, qualifiedWaypoint);
                if(commonAncestor != _waypoint)
                    currentDestination = null;
                    wizardChange();
private function getCommonAncestor(destination1:String, destination2:String):String
            var ancestor:String;
            var first : Array = destination1.split( "." );
            var second : Array = destination2.split( "." );
            var length : int = Math.min( first.length , second.length );
            for ( var i : int ; i < length ; i++ )
                if ( first[ i ] != second[ i ] )
                    break;
            ancestor = first.slice( 0 , i ).join( "." );
            return ancestor;

Similar Messages

  • How can copied calculations be made relative rather than absolute?

    Frequently I like to copy a recurring item from a previous entry, change the date and assume all will be well. But Numbers 3.2.2 also copies the calculations as absolute rather than relative. That is a calculation of previous balance plus a credit minus a debit is referencing the copied balance, credit and debits rather the balance, credit and debits in the new location, thus throwing the calculations off.
    Supplementary question:
    Is there a fast way to correct the wrong calculations once made? A fast way to restore an orderly sequence one row referencing the previous row's balance and the current row's credits and debits?

    Hi Wanapitei
    Have you tried this?
    Click on a "lozenge" (A2 in this example) to see the contextual menu.
    Clicking on Preserve Row or Preserve Column will turn on (or turn off) the $ sign in the formula. That toggles between Absolute and Relative references.
    Regards,
    Ian.

  • Can Layers be given RELATIVE, rather than ABSOLUTE position

    I'm having no luck finding an answer to this in HELP. I place
    the layer's anchor in a table, then position the layer. If I
    subsequently add (or remove) any lines above the anchor, everything
    on the page moves down (or up), but the layer stays where it was,
    relative to the page, not the anchor.
    If there are several layers on the page this means a wholeot
    of repositioning every time I do an edit up-page.
    Any advice?

    This may help you understand positioning a bit -
    There are 4 different types of positioning:
    Absolute
    Relative
    Fixed
    Static
    Here is a brief explanation of each kind of positioning (with
    regard to
    placement of elements on the page only)....
    Position:absolute (or A/P elements)
    This does several things -
    1. It 'removes' the element from the flow of the code on
    the page so that
    it can no longer influence the size or position of any other
    page element
    (except for those contained within it, of course).
    2. The absolutely positioned element takes its position from
    the position of
    its closest PARENT *positioned* element - in the
    absence of any explicitly
    positioned parent, this will default to the <body> tag,
    which is always
    positioned
    at 0,0 in the browser viewport.
    This means that it doesn't matter where in the HTML code the
    layer's code
    appears (between <body> and </body>), its
    location on the screen will not
    change (this assumes that you have not positioned the A/P
    element within
    a table or another A/P element, of course).
    Furthermore, the space in
    which
    this element would have appeared were it not positioned
    is not preserved
    on the screen. In other words, absolutely positioned elements
    don't take
    up any space on the page. In fact, they FLOAT over the page.
    Position:relative (or R/P elements)
    In contrast to absolute positioning, a relatively positioned
    page element is
    *not* removed from the flow of the code on the page, so
    it will use the
    spot
    where it would have appeared based on its position in
    the code as its
    zero point reference. If you then supply top, right,
    bottom, or left
    positions
    to the style for this element, those values will be
    used as offsets from
    its
    zero point.
    This means that it DOES matter where in the code the
    relatively positioned
    element appears (, as it will be positioned in that location
    (factoring in
    the offsets) on the screen (this is true for any placement in
    the code).
    Furthermore, the space where this element would have
    appeared is
    preserved in the display, and can therefore affect the
    placement of
    succeeding elements. This means that the taller a relatively
    positioned element is, the more space it forces on the page.
    Position:static
    As with relative position, static positions also "go with
    the flow". An
    element with a static position cannot have values for
    offsets (top, right,
    left, bottom) or if it has them, they will be ignored. Unless
    explicitly
    positioned, all div elements default to static positioning.
    Position:fixed
    A page element with this style will not scroll as the page
    content scrolls.
    Support for this in elements other than page backgrounds is
    quirky
    There are several other things you need to know:
    1. ANY page element can be positioned - paragraphs, tables,
    images, lists,
    etc.
    2. The <div> tag is a BLOCK level tag. This means that
    if it is not
    positioned or explicitly styled otherwise, a) it will always
    begin on a new
    line on the screen, and b) it will always force content to a
    new line below
    it, and c) it will always take up the entire width of its
    container (i.e.,
    width:100%).
    3. The placement of A/P elements *can* affect the BEHAVIOR of
    other
    elements
    on the page. For example, a 'layer' placed over a hyperlink
    will mask that
    hyperlink.
    You can see a good example of the essential difference
    between absolute and
    relative positioning here -
    http://www.great-web-sights.com/g_layersdemo.asp
    You can see a good demonstration of why using layers for a
    page layout tool
    is dangerous here -
    http://www.great-web-sights.com/g_layer-overlap.asp
    Based on this, a static div (no longer a 'layer') would be
    what you want.
    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
    ==================
    "bwilsonduncan" <[email protected]> wrote in
    message
    news:[email protected]...
    > I'm having no luck finding an answer to this in HELP. I
    place the layer's
    > anchor in a table, then position the layer. If I
    subsequently add (or
    > remove)
    > any lines above the anchor, everything on the page moves
    down (or up), but
    > the
    > layer stays where it was, relative to the page, not the
    anchor.
    >
    > If there are several layers on the page this means a
    wholeot of
    > repositioning
    > every time I do an edit up-page.
    >
    > Any advice?
    >

  • Delivery Related Billing rather than Order Related Billing in Return Sales

    Hi
    There is a requirement from the client that the Returns Invoice (RE) generated must be related to LR Delivery Type rather than Return Sales Order Type(RE).
    I have maintained the Copy Control from LR (Returns Delivery Type) to RE(Returns Invoice Type).
    Then Changed the billing relevance of REN (Item Category ) from - 'B' Relevant for order-related billing - status acc.to order qty
    to A     Delivery-related billing document.
    When i create the Returns Invoice, it is allowing me to create the Invoice even before the Post Goods Receipt of the LR Returns Delivery Document.
    It should allow me to create the invoice only after Post Goods Receipt.
    Can any one share their inputs.
    Regards
    Mohan

    Dear Kandy Sreekanth ,
    PLEASE READ THR RULES OF ENGAGEMENT BEFORE REPLYING TO POSTS / POSTING ISSUES
    Do not ask for points - This forum should be firstly about information exchange; points are an incentive and a way of saying thanks.
    Asking for points is like asking someone to say "thank you": The only time we do this in real life is when teaching a child good manners. Saying it to an adult is insulting, so why do it in the forums? If someone keeps asking questions without awarding points, simply stop answering them or use the abuse button to report it.
    Thanks & Regards,
    Hegal K Charles

  • Positioning navigation bar  vertical rather than horizontal on side on web

    Is it possible and I think it is to place the webitem navigation_block bar on the side of the page rather than the default position on the top, without modifying the web template ( at runtime)
    Even during the design time I am not able to make it vertical in wad.
    Any help would be appreciated.
    Thanks

    I don;t see 0Analyser bar as vertical, it is horintal. Below is the code from 0ANALYZER and I located the navigation bar. my guess is that there is a paramname that can specify vertical alignment.Don;t know what that would be. None of the properties has that option..
    <!-- Navigational block: GR1NavBlock--->
    <object>
             <param name="OWNER" value="SAP_BW"/>
             <param name="CMD" value="GET_ITEM"/>
             <param name="NAME" value="GR1NavBlock"/>
             <param name="ITEM_CLASS" value="CL_RSR_WWW_ITEM_NAV_BLOCK"/>
             <param name="DATA_PROVIDER" value="DP"/>
             <param name="GENERATE_CAPTION" value=""/>
             <param name="WIDTH" value="200"/>
             <param name="SHOW_AXES_GROUPING" value="X"/>
             ITEM:            GR1NavBlock
    </object>

  • [svn:fx-trunk] 7120: Switched to using "use namespace mx_internal" rather than using explicit namespace scoping (e.g.,  mx_internal::foo) in RichEditableText and its related classes.

    Revision: 7120
    Author:   [email protected]
    Date:     2009-05-19 23:46:06 -0700 (Tue, 19 May 2009)
    Log Message:
    Switched to using "use namespace mx_internal" rather than using explicit namespace scoping (e.g.,  mx_internal::foo) in RichEditableText and its related classes.
    Removed stale import statements.
    QE Notes: None
    Doc Notes: None
    Bugs: None
    Reviewer: Carol
    Modified Paths:
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/TextArea.as
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/components/supportClasses/TextBase.as
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/RichEditableText.as
        flex/sdk/trunk/frameworks/projects/flex4/src/spark/primitives/supportClasses/RichEditable TextContainerManager.as

    I'm more of a 1.3 chick myself, but the words are the same just in a different language.
    1. Is Tomcat running?
    2. Have you configured the ajp13 connector on 8009 in Tomcat? (Should it be ajp13 for Apache 2.0? - I really must upgrade)

  • This is ridiculous i want my money refunded immediately! The web site is a joke and it should be alot easier to contact a support team rather than having the whole world read this note through an online forum. Absolutely ridiculous! Someone better contact

    This is ridiculous i want my money refunded immediately! The web site is a joke and it should be alot easier to contact a support team rather than having the whole world read this note through an online forum. Absolutely ridiculous! Someone better contact me back to resolve within 24 hours@

    I feel the same exact way! I am absolutely livid with how much I have been charged over these past few months. How is it I was informed by my school that Adobe would only charge us $9.97. After I signed up, I dropped the course which required us to have Adobe Cloud. Now I check my bank account and I see I am continuously being charged $32.04 every month. This is abdolutely outrageous! Now I'm calling trying to cancel it and they're telling me I have to pay an extra month. This is mind blowing! Something needs to be done.

  • PC related question.  How do I get iTunes to sync/backup/store to my D: rather than C: ?

    How do I get iTunes to sync/backup/store to my D: rather than C: ?

    A couple of options.  Do you want your whole library on the other drive or just media?  You can split media between drives starting with now, but this will be a big nuisance when you come to move your library in the future.
    iTunes: How to move [or copy] your music [library] to a new computer [or another drive] - http://support.apple.com/kb/HT4527
    Quick answer if you use iTunes' default preferences settings:  Copy the entire iTunes folder (and in doing so all its subfolders and files) intact to the other drive.  Open iTunes and immediately hold down the Option (alt) key (shift on Windows), then guide it to the new location of the library.
    iTunes for Mac: Moving your iTunes Media folder - http://support.apple.com/kb/HT1449

  • When printing, how can I spool/process on the printer itself, rather than process the job in Illustrator?

    Is this related to setting up a PPD?
    We are using an HP Designjet T7100 plotter to print out large wall maps (108"x108") with incredible amounts of detail (about 30 layers, with varying transparency, and everything from mid-sized polygons and lines to thousands of points).  It's an enormous job, I know, but certainly possible.  The workflow involves creating EPS layers, and running them through Distiller to create PDFs which are obviously the map layers.
    In the past, we have been successful in printing out high-resolution maps.  We are now experiencing "Out of Memory" errors if we try to print from InDesign, and Illustrator takes well near an hour to process a map.
    This morning, we printed a 42x60 map in low-res - the map printed successfully, albeit in about 20 mins.  After printing, I went to the plotter, selected the job from the front panel, and re-printed it from there.  It took 30 seconds to print.
    Obviously, the job was already processed on the plotter and that made printing easier.  My question is, is there a way to get the plotter to process jobs rather than Illustrator?  How can I set spooling to be handled directly by the printer?  Illustrator is using 2GB of memory just to process jobs - absolutely ridiculous.
    I appreciate any feedback!  Hopefully from Adobe
    Thanks,
    C
    EDIT:  I also wonder if this is a network issue?

    Hello there! Welcome to the forums @kmmo 
    I read your post about how you are trying to cancel a print job from the printer. I would like to know if you see an "X" on the printer display screen while the print job is in progress, and if so, try pressing the "X" and that should cancel the job.
    Let me know your findings
    R a i n b o w 7000I work on behalf of HP
    Click the “Kudos Thumbs Up" at the bottom of this post to say
    “Thanks” for helping!
    Click “Accept as Solution” if you feel my post solved your issue, it will help others find the solution!

  • Linking rather than embedding movies

    Hi,
    I have been using Keynote for several years and have always embedded my movies within my presentation (i.e., selecting "copy audio and movies into document" during the initial save). Despite embedding the movies, I still keep a local copy of each in the same directory.
    I'd like to, at the very least, link to rather than embed movies in future presentations, but don't know how that will affect portability. I often create my presentation on one machine and present using another. To that end:
    1) Does anyone know how Keynote stores the location of media files that are not embedded? Are they absolute or relative?
    2) Also, is there any way to "undo" embedding in existing Keynote files for which I had selected "copy audio and movies..." the presentations were created?
    Thanks in advance.
    - Matt Walter

    >Someone probably knows better then me, but can't you
    embed the font in the library and then refer to it programatically?
    Yes, you can do this, but this is a bit kludgy in my opinion.
    I'd rather not HAVE to know that there is a font in the library
    that I need to use. I'd rather be able to take the font of a
    textfield that I am already using and then use the font that is
    already embedded in that textfield to create create new textfields.
    Creating a font symbol in the library is just adding extra
    weight to the SWF file. If I have a textfield on the stage that
    already has the font outlines, then adding the same font to the
    library is just extra weight. But again it's not just a weight
    issue - I'd rather not have to know that the font is in the library
    to begin with.
    I'd rather be able to say "Hey, you know that textfield on
    the stage? well, use the same font for a new textfield? What's the
    font that the textfield is using? I don't know and I don't care.
    Just use the same font."

  • Rather than go to the home page I have specified in the General tab of Options in the Tools menu, Firefox keeps going to a truncated version of this url.

    I have used the following URL as my firefox home page for quite some time:
    https://www.google.com/search?num=100&safe=off&hl=en&complete=0&q=Rochester-NY+CDC.gov+|+NIH.gov&btnG=Search
    Several months ago, malware of some sort replaced this url with one of their own. I got rid of the malware and put back my original home page, but I'm continuing have a problem: Every time firefox goes to my home page, rather than using the whole url that I've specified, firefox truncates this url to just the first 87 characters, and goes to this truncated url instead:
    https://www.google.com/search?num=100&safe=off&hl=en&complete=0&q=Rochester-NY+CDC.gov+
    Not only is this not the url that I have specified in the General tab under Options in the Tools menu, I always get an error message in an additional tab whenever Firefox goes to this truncated version of my home page. Can anyone tell me what I need to do to get firefox to use the entire url I have specified as my home page in the General Tab under Options?
    I do not know if this is relevant or not, but I noticed that prefs.js includes two other user prefs related to the home page in addition to the one that identifies the url I chose:
    user_pref("browser.startup.homepage", "https://www.google.com/search?num=100&safe=off&hl=en&complete=0&q=Rochester-NY+CDC.gov+|+NIH.gov&btnG=Search");
    user_pref("browser.startup.homepage_override.buildID", "20130617145905");
    user_pref("browser.startup.homepage_override.mstone", "22.0");

    You need to escape the pipe character as %7c if you want to include it in the URL

  • Is it possible for extra tabs to appear in multiple rows rather than having to click the arrow?

    It would be great to have tabs in rows, similar to how you can set up the Windows taskbar.

    There are add-ons that can do this, but they also offer many other tab related features rather than just allowing multi-row tab bar, so this may be a bit of overkill.
    A couple of examples are:
    * Tab Mix Plus - https://addons.mozilla.org/firefox/addon/tab-mix-plus/
    * Tab Utilities - https://addons.mozilla.org/firefox/addon/tab-utilities/

  • Is there any way to reset the file type to "Adobe Acrobat Document" rather than "pdf file"?

    An update from WordPerfect automatically installed Foxit on my computer without warning me.  I uninstalled it and reinstalled CS5 and Acrobat 11 but when I look at a list of files in Windows Explorer, all of my PDF files are simply listed as "PDF file" rather than "Adobe Acrobat Document".  I rely on the Adobe name to get my PDF listed at the top of list of files when I sort by document type for something that I need to do 4 or 5 times a day.  Having it buried under "PDF" is causing lots of errors.
    I've tried searching the registry but can't find anything that would make this change.  I know it's related to the computer because when I use my laptop to view the same folder on the desktop, the laptop shows the files as "Adobe Acrobat Document".  I just don't know where to look to fix this.
    Any help would be very much appreciated.
    Thanks,
    GiGi

    I have already reinstalled both Adobe Reader and the full version of CS5 which includes Adobe Pro.  Neither of those steps worked. 
    Thanks,
    GiGi

  • I want to place an image in my InDesign document that can work with an address like this (\Resources\Thumb) rather than this (C:\Users\JSmith\Desktop\InDesign thumbnail Test\001\Resources\Thumb) is this possible?

    I want to place an image in my InDesign document that can work with an address like this (\Resources\Thumb) rather than this (C:\Users\JSmith\Desktop\InDesign thumbnail Test\001\Resources\Thumb) is this possible? In a nutshell I want to point the link to an image in a directory that uses just part of the address.

    I know this is something you can do in Maya with linked files. I guess InDesign just isn't there yet.
    MW Design -  Yeah I think "Relative paths" is the right term! I want to create a Layout with an image in the center of the page - and then duplicate my folder structure with that file. With that, I want to replace the Linked image file with a diferent image file of the same name. In effect having multiple files of the same layout with different images.  I hope that made sense.  

  • Is it possible to bill a Third Party Sale on GR rather than IR?

    Hi, I would like to bill my customer as soon as I have had a GR notification from my supplying partner rather than waiting for the vendor invoice (as there can be a delay). The help text associated with Item category 'Relevant for Billing; indicator 'F' suggests this is possible ....
    "You can make the control setting as to whether the invoice receipt quantity or the goods receipt quantity should be relevant for billing in the copy control for billing on the item level in the billing quantity field. (In Customizing, choose Sales and Distribution -> Billing -> Billing documents -> Maintain Copying Control for Billing Documents -> Copying Control: Delivery to Billing Document -> Item, then select an item category.)"
    ... but this doesn't make much sense to me as I don't want to create an outbound delivery, I just want to trigger the customer invoice (order related billing) on a non-valuated GR against the related PO .... is this possible?
    Thanks in advance.

    Hi Patrick,
    if you want to bill third-party order before Invoice Receipt, then billing relevance FKREL must be 'B'.
    In customizing copy control the Billing quantity indicator should be 'E'.
    Please test hese settings.
    Best regards,
    Ivano.

Maybe you are looking for