[ER] Add a way to decorate the current PageFlow

Hi,
I've got yet another strange low level request for the ADFc team. Currently it's impossible to decorate the current PageFlow instance as the code use static methods to access it, ending in the MetadataService, never giving any opportunity to alter the result without creating a MDS exception. This is annoying because it prevent usage of any form of dynamic page flows.
The easiest fix I would see to that, although it's certainly not the best, would be to expose a setCurrentPgeFlow in StateUtils, pushing the specified flow in the request scope and have getCurrentPageFlow check that request attribute before falling back to its usual behavior.
Regards,
~ Simon

Simon,
after a brief discussion with development I filed an ER for tracking purposes. The impression is that you are trying to build highly dynamic page flows, which might not what taskflows are designed for and, in addition, contradicts the modularization taskflows enforce. in your case the application developer obviously has knowledge about the taskflow internals instead of working with exposed imput/return parameters at designtime. Since this thread is referenced by teh ER, feel free to add your usecase and what you would want to use this for.
Frank

Similar Messages

  • Is there a way to autoscroll the current accordion content to top of browser window?

    So this is a topic I have seen brought up but never solved….
    I have an accordion on my site which displays content larger than the browser window, so when you scroll down to the bottom of the content box and get to the next accordion topic and click on it stays in the same place in the broswer window however since the prior accordion content closes it leaves you scrolled half way down on the current content.
    So is there a way to bind an action where it autoscrolls and brings the browser to the top of the clicked accordion content?
    here you see the window scrolled to the bottom of the first accordion content and the second showing its hover state…. when you click on the "So i made.." content it leaves you with this...
    the middle of the second accordion content, causing you to have to scroll up to the top of it to continue reading….
    I found this jquery scrpit which supposedly would do it.  However since Muse exports is scripts differently it doesnt apply.
    $('.ui-accordion').bind('accordionchange', function(event, ui) {
                ui.newHeader // jQuery object, activated header
                ui.oldHeader // jQuery object, previous header
                ui.newContent // jQuery object, activated content
                ui.oldContent // jQuery object, previous content
                $('html, body').animate({scrollTop: $(ui.newHeader).offset().top}, 1);
    So now I need some help...
    Thx
    -Eric

    Hello,
    You can achieve this using the Anchors feature of Muse. Please follow the steps below :
    - Click on Anchor option in the toolbar as shown in the image :
    - Now click on the location on the webpage which you want to be the top of the page when click on Accordian panel triggers.
    - It will place the Anchor on that location. Now it will ask you to rename the anchor. Please rename the anchor to something convenient.
    - Now click on the first Accordian trigger and in the "Hyperlink" option in  the toolbar at the top, from the dropdown select the Anchor which you have added.
    - Do same for all the Accordian triggers.
    Now preview in a browser to see the results. Whenever you click on the Accordian trigger it will move to the location on the page where you have placed the anchor.
    Note : There is a known issue with the Anchors feature not working with Safari 6 (The latest version of Safari). It is a known bug and is likely to get fixed in future versions. You can test it using other Browsers.
    Hope this helps.
    Regards,
    Sachin

  • Trying to add playlist to iPhone. The current music on my iPhone is synced with another library. How do I add my playlist without erasing all of the music currently on my iPhone?

    Trying to add playlist to iPhone. The current music on my iPhone is synced with another library. How do I add my playlist without erasing all of the music currently on my iPhone?

    iPhone is designed to sync with one computer only, if you sync with another, all your content will be erased and replaced by whatever is on that computer.

  • A better way to determine the current state of the FLVPlayback component?

    Below is the AS3 code I have used to display images (MCs) over an instance of the FLVPlayback component.  These images (one for loading, one for the title) are to appear – or disappear – according to the current state of the FLVPlayback component. 
    It “works,” but when testing, I have noticed that it can be rather finicky.  The most common issue that arises is that many times the loadPoster movieclip will still be visible even though the video has entered the playing state.
    Also, I wanted a title placeholder image to appear whenever the user stops the video or if the video completes.  However, I had to add the conditional statement to the “stoppedStateEntered” case to make everything appear when expected.  When the video is first viewed (and has completed buffering), it seems that the FLVPlayback component enters the stopped state before entering the playing state.  Thus, the titlePoster would flash on the screen right before it and the loadPoster “should” disappear when the video begins playing.
    Even in my limited testing, these issues were very easily re-created.  I am definitely looking for a more reliable solution.  Is there a better (or more correct) way to go about all this?  If possible, I would like to stick with the FLVPlayback component, just for the simple fact of not having to code my own.
    Where am I going wrong?
    function updateMoviePoster(event:VideoEvent):void
                    switch (event.type)
                                    case "playingStateEntered":
                                                    loadPoster.visible = false;
                                                    titlePoster.visible = false;
                                    break;
                                    case "stoppedStateEntered":
                                                    if (loadPoster.visible == false)
                                                                    titlePoster.visible = true;
                                    break;
                                    case "complete":
                                                    titlePoster.visible = true;
                                    break;
    myFLVPlayback.addEventListener(VideoEvent.PLAYING_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.STOPPED_STATE_ENTERED, updateMoviePoster);
    myFLVPlayback.addEventListener(VideoEvent.COMPLETE, updateMoviePoster);

    Any suggestions?  I would truly appreciate the help.

  • Add an option to replace the current slideshow content

    Currently, the content of a slideshow is only replaced when going straight from the sample images. Would it be possible to add a checkbox to force the new content to replace the current images, rather than append them? This would be really helpful when duplicating pages where the layout has already been defined.

    JRTIGHE wrote:
    Right so I'll rephrase the question, what would the community think to this feature being added?
    I don't care one way or the other. I don't text. If I want to communicate with someone using my phone, I'll call them.

  • Is there a way to make the current row not editable

    Hi, I'm using JDev 11.1.1.2
    In my usecase I have a Form , navigateable with next/previous , and for every row a I have a calculation which makes the row editable or not.
    For now I made it with disabled property on every input component set to some bean property which is calculated every time.
    My question is if there is some general way to make an Entity not updateable ?
    I tried with doDML() ... but the problem there is that this method is not called when switching the current row but rather when commiting. So the user can modified several rows and when pressing commit it will prevent some of the to be committed which would be confusing.
    Is there a method in the ViewObject that i can overwrite which is called every time the current row is changed? So I can see if the row was modified or not.
    Thanks, agruev

    Yes, there is always isAttributeUpdateable() in the ViewRowImpl, which you can override and enable/disable your attributes based on an enabling/disabling condition.
    Here is an example:
    public boolean isAttributeUpdateable(int i) {
    boolean updateable = false; /disable by default all arguments
    // enable, if your condition is met
    if ( meets_your_condition )
    updateable = super.isAttributeUpdateable(i); // let the framework decide based on your declarative settings
    return updateable; // return true/false indicator
    Nick

  • Is there a way to show the current URL for a WebHelp topic in the browser?

    RoboHelp 11, WebHelp.
    When I open the WebHelp project, the URL displays the start page for the Touchstone Help project: ..../Documentation/Touchstone/Content/Content.htm.
    As I go to different pages in the Help, the URL never changes.
    Our client consulting personnel often like to copy a URL to send to a client who has a question about a particular topic.
    Is there a WebHelp setting that supports display of the current URL?
    Thank you.
    Carol Levine
    AIR Worldwide

    Hi, Jeff.
    Internet Explorer 9.
    I've got the pointer in the topic.
    Right-clicking displays the following shortcut menu.
    When I click "Create shortcut" (the only option with "shortcut" in the name), the following message appears.
    After clicking Yes, the shortcut is on the desktop. The user must then right-click the URL, select Properties, copy the URL from the Web Document tab, paste it into an email, and send it.
    Is this the process as you understand it?
    Thanks.
    Carol

  • Any way to have the current date pop up?

    Hi -
    I have a request form to create.  Pretty simple actually.
    Halfway down the form I hve to put the following, where [ ] represents data input by user.
    "This document has been open for [ ] days as of [ ]."
    We want the user to type in a number from [1] to [99] (days open) and have the 'as of' [ ] be 'today's date' which would actually be the date of the filling out of this form.
    So I created a table with 4 columns but it's not working right.
    Any ideas?
    The only other major item is an expandable comments section at the end. Shouldn't affect the information above.
    Thanks for any help!
    Marla

    Hi Jono,
    thanks, that does work.
    New question:
    1) How can I get the date field to look like this:      15APR11?
    Is there a way to structure the code to do this?
    Thanks!

  • A way of detecting the current Scene in a document class

    I just want to know if there is a way to this.
    Thanks,

    you can use the currentScene property of movieclips.  check the scene class to see how you can use the scene reference but if you only need its name, you can use:
    // this.currentScene.name;

  • There has to be a way to find the current directory in JSP, right?

    I've read a number of posts, with limited results.
    Here's my problem. I have 3 databases set up, and I'd like to use a different one depending on which directory I am in. (ie Stage, Production, Dev). So I am reading the database name from a parameter file.
    I am simply trying to read a text file from the same directory as my jsp file. For example, my jsp file is in /home/username/public_html/prod
    When I try System.getProperty("user.dir"), it returns /home/username/public_html/.
    Is there a way for the jsp page to let me know it is in the prod subdirectory? Verses another subdirectory? Everything I've tried puts me in either the /home/username directory or the home/username/public_html directory. I can't get to any of the subdirectories!!! Please help!

    This is what I'm working with right now, seems to work. Anyone know a better way:
    ServletContext context = getServletContext();
    String servletpath_str = request.getServletPath();
    StringTokenizer st = new StringTokenizer(servletpath_str,"/");
    int nooftokens_int = st.countTokens();
    nooftokens_int--;
    String virtualpath_str = "";
    for(int i=0; i<nooftokens_int; i++) {
    if(i == 0) { virtualpath_str = "/" + st.nextToken(); }
    else { virtualpath_str = virtualpath_str + "/" + st.nextToken(); }
    String currentDir = context.getRealPath(virtualpath_str);
    String filename = currentDir + "/file.txt";

  • How do I add a playlist without erasing the current playlists and apps?

    I have multiple devices, such as an iphone, ipad, and itouches. They are for different members of the family and have different playlists and apps. I want to update the playlists on my phone, but it looks like I will have to erase everything in order to sync it. I would like to change the playlists, but not lose the apps. Is that possible? I've already backed up my devices and transferred purchases. Thank you.

    Copy the entire /Music/iTunes/ folder from your other computer to /Music/ on your Mac and your iPhone will sync fine.
    Make sure to authorize your computer for the old iTunesID.

  • (JS) Locating the current parentTextFrame from the selection?

    Hi Everyone,
    In my xml workflow, I will find the xml element (<fig></fig>) through xpath (using glue code.jsx) and placing the figures with calculated bounds.
    First I'm selecting the text(xml element) and placing first image & and moving the xml element perfectly, problem occurs while the placing the second
    image and caption. I cannot locate the current parentTextFrame, previous parentTextFrame is acting as the current parentTextFrame.
    Help me to acheive this....
    Here is my full code and see bottom of this message i have pointed out where i need help ......
    #include "D:/Program Files/Adobe/Adobe InDesign CS4/Scripts/XML Rules/glue code.jsx"
    //==================================================================
    //For placement of Figures
    //==================================================================
    myDoc = app.activeDocument;
    var myCount = 0;
    var myFolder = Folder.selectDialog("Select image folder");
    var figcapdis=prompt("Enter the space between Figure and Figure Caption (pts)", 8, "Figure Caption");
    var figcap=parseInt(figcapdis);
              var myRuleSet = new Array (new FindByAttribute("//fig"));
              with(myDoc){
              var elements = xmlElements;
              __processRuleSet(elements.item(0), myRuleSet);
                   if(myCount > 0){
                        myCount = 0;
                        }//end if
                   }//end with
    //++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    function FindByAttribute(myXPath){
         this.name = "FindByAttribute";
         //XPath will match on every description in the XML structure.
         this.xpath = myXPath;
         this.apply = function(myElement, myRuleProcessor){
              var selectPoint = myElement.texts.item(0).select(SelectionOptions.replaceWith);         
              var tFs = app.selection[0].parentTextFrames[0];
              var myFrameBounds = tFs.geometricBounds;
              var myWidth = (myFrameBounds[3]-myFrameBounds[1]);
              var myHeight = (myFrameBounds[2]-myFrameBounds[0]);
              var mySelectionHOffset = myDoc.selection[0].lines[0].horizontalOffset;
              var mySelectionBaseline = myDoc.selection[0].lines[0].baseline;
              var myCurrentPage=tFs.parent;
              app.activeWindow.activePage = myCurrentPage;
              var figName = myElement.xmlElements.item('graphic').xmlAttributes.item('xlink:href').value;
              var figType = myElement.xmlElements.item('graphic').xmlAttributes.item('mime-subtype').value;
              var myFigPath = myFolder+"/"+figName+"."+figType;
              if (File(myFigPath).exists)
                   alert("Image exists");
                   var myFig = myCurrentPage.place(new File(myFigPath));
                   var myFigBounds = myFig[0].geometricBounds;
                   var figHeight = (myFigBounds[2]-myFigBounds[0]);
                   var figwidth = (myFigBounds[3]-myFigBounds[1]);
                   var myParent = myFig[0].parent;
                   var myFreeSpace = myHeight-mySelectionBaseline;
                   var myBounds = [myFigBounds[2]+figcap,0,myFigBounds[2]+25,myWidth];
                   var myCaptionFrame = myCurrentPage.textFrames.add({geometricBounds:myBounds});
                   myCaptionFrame.placeXML(myElement);
                   myCaptionFrame.fit(FitOptions.frameToContent);
                   var item1 = myParent;
                   var item2 = myCaptionFrame;
                   var myGroup = myCurrentPage.groups.add([item1, item2]);
                   myGroup.label = figName;
                   var myGroupBound = myGroup.geometricBounds;
                   var myGroupHeight = (myGroupBound[2]-myGroupBound[0]);
                        if(figHeight<myFreeSpace)
                             var movePoint = [mySelectionHOffset, mySelectionBaseline+12];
                             //var movePoint = [mySelectionBaseline+24,mySelectionHOffset, mySelectionBaseline+16+figHeight,mySelectionHOffset+figwidth];
                             myGroup.move(movePoint);
                             //myFig[0].geometricBounds = setFigBounds;
                             }//end of figHegiht  less than Free space
                        else
                             if (myCurrentPage == myDoc.pages[-1]){
                                  myDoc.pages.add();
                                  myCurrentPage = myDoc.pages.nextItem(myCurrentPage);
                             myCurrentPage = myDoc.pages.nextItem(myCurrentPage);
                             var nextTF = tFs.nextTextFrame;
                             var nextTFBounds = nextTF.geometricBounds;
                             myGroup.move(myCurrentPage, [nextTFBounds[1], nextTFBounds[0]]);
                             }//end of else
                   myGroup.textWrapPreferences.textWrapMode=TextWrapModes.BOUNDING_BOX_TEXT_WRAP;
                   myGroup.textWrapPreferences.textWrapOffset=[24, 6, 24, 6];
                   }//end of if -->file exists check
              else
                   alert(figName+"."+figType+" doest not exists");
              //var myFigGroup =
            //var myParaStyle = app.documents.item(0).paragraphStyles.item(newStyle);
            //myElement.texts.item(0).applyParagraphStyle(myParaStyle, true);
            myCount++;
            }//end of this.apply
         return true;
    I am having problem in the below line
    var tFs = app.selection[0].parentTextFrames[0];
    I want the parent text frame of the current selection, but it takes the first selection's parent text Frame.
    Note: The text frames are in continuous thread...
    Looking forward your replies....    
    Message was edited by: Green4ever

    Hi All,
    I am having problem in the below line
    var tFs = app.selection[0].parentTextFrames[0];
    I want the parent text frame of the current selection, but it takes the first selection's parent text Frame.
    Note: The text frames are in continuous thread...
    Looking forward your replies....    
    Is there any other way to locate the current parent text frame.
    Thanks
    Green4ever

  • Retrieving the currently logged in username

    As I'm just starting playing with C3POs, is there an easy way to retrieve
    the currently logged in username? I'm wanting to open up a webpage and
    pass it the username as a parameter. Any suggestions? Thanks!

    I got it figured out. I had to add a reference the GroupwareTypeLibrary
    and then I could use the following code:
    C3POTypeLibrary.IGWClientState6 myCL =
    (C3POTypeLibrary.IGWClientState6)HelpDesk.g_C3POMa nager.ClientState;
    GroupwareTypeLibrary.Account account =
    (GroupwareTypeLibrary.Account)myCL.CurrentAccount;
    string username = account.Owner.EMailAddress;
    username = username.Substring(0, username.IndexOf('@'));

  • How do I return to the start of the current selection?

    In Audtion 3 and earlier, if I wanted to hear currently selected audio, I just made the selection in the Waveform Editor, pressed Play and the selection would play.  It would play the same selection again if I stopped playback and pressed Play again.  In CS5.5 and 6 this only seems to work the first time you press Play after selecting some audio.  After that, the audio just resumes from when it last stopped.
    Is there any way to get the current time indicator to return to the beginning of a selection?
    Robert

    I find it to be quite consistent in its behaviour. But if you want to investigate the possibilities, go to Edit>Preferences>Playback, and you have several self-evident options to alter it.

  • Finding the current path

    Hey all,
    what is the shortest way to get the current directory?

    You can also call System.getProperty("user.dir"), which will return the user's current working directory as a String. Using "user.home" as the method parameter will give you the user's home directory. So if you want/need either of those directories, there's a simple 1-line way to obtain the values.
    -dSn

Maybe you are looking for

  • SMI error on Web UI of SNC 5.1

    Dear experts, I'm working on SMI (Supplier Managed Inventory) implementation with SAP SNC 5.1. I'm trying  to do a demo on SNC. At moment I have: 1) Created our set of master data. 2) Configured the CIF communication to send from ECC to SNC the maser

  • Projects "Shared to Media Browser" don't actually appear in Media Browser

    Hello all. I've got one of those "it seems so easy I must be doing something wrong" questions. (I accidentally posted this in the iMovie HD forum by accident, the first time. I'm actually using iMovie '08.) This is the first time I've tried this, and

  • 1280x720 vs. 1920x1080

    I have my Mac Mini connected to a 50" Panasonic Plasma using a DVI – HDMI cord (the native resolution of my set is 1366x768). I was able to get my 1280x720 picture displayed perfectly on the screen after using SwitchresX, and performing a decent amou

  • Why is using Places in iPhoto 11 such a hairy hassle?

    Here is the feedback that I just sent to Apple: "Why is defining a place such a hassle?  Don't bother telling me the steps -- I know them too well.  Tell me why, when I select a photo, type something in the teeny-weeny Assign a Place... dialog, then

  • Hiding url in JSP

    I have one little JSP application that is used to perform some test on user and based upon that test this application needs to load a different page that is on a different server and that page is just an html page. I need to hide url of the html page