Deep Linking problem

Hi,
I am trying to add Deep Linking to the large Flex3 app
(it has one main HTML file and collection of dashboards selects one via ComboBox).
so I would like to be able to send a link like  http://myserver/myapp.html#/dashboard1
New to SWFAddress, so please bare with me.
I have seen a Flex sample coming with SWFAddress:   http://www.asual.com/swfaddress/  (click Flex link)
and tried to integrate it into my app.
So far I was able to put that  fragment id (#/dashboard1) when this particular dashboard (db1) is selected.
But if I go to Firefox and change it to say, #/dashboard2, nothing happens, it never goes to call  
handleSWFAddress() change event handler.
I do have JS libraries in place, declared in HTML,
and SWFAddress.swc in lib of that FB project.
Haven't changed Helper.as much from original sample.
So here is a skeleton of my app:
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml"
    name="Dashboard" ...  
    applicationComplete="initSWFAddress()"
    currentStateChange="setSWFAddress()" >
<mx:Script>
        <![CDATA[
          private function selectDashboard(name:String):Dashboard {
                var dashboard:Dashboard = Dashboard(this.contentStack.getChildByName(name));
                //dashboard=null;
                if ( dashboard == null){
                    dashboard = this.createDahsboard(name);
                    if (dashboard != null) {
                        this.contentStack.addChild(dashboard);
                this.selectedDashboardIndex = this.contentStack.getChildIndex(dashboard);
                var ctlTool:DisplayObject = dashboard.getToolbarControl();
                //Remove old toolbox
                var oldTool:DisplayObject = this.appControlBar.getChildByName(TOOLBOX_NAME);
                if (oldTool != null) {
                    this.appControlBar.removeChild(oldTool);
                //Add toolbox if any
                if (ctlTool != null) {
                    ctlTool.name = TOOLBOX_NAME;
                    this.appControlBar.addChildAt(ctlTool,3);
                // change Fragment
                SWFAddress.setValue("/"+name);
                Alert.show ("set dashboard: "+name);
                return dashboard;
           private function onChangeDashboard(e:Event):void {               
                var currDashboard:Dashboard = Dashboard(this.contentStack.selectedChild);
                currDashboard.beforeCloseDashboard();
                this.contentStack.removeChild(this.contentStack.selectedChild);
                var name:String = ComboBox(e.target).selectedItem.toString();
                GlobalComponents.instance.resetSession();
                this.selectDashboard(name);
            private function initSWFAddress():void {
                handleSWFAddress(new SWFAddressEvent(SWFAddressEvent.CHANGE));
                SWFAddress.addEventListener(SWFAddressEvent.CHANGE, handleSWFAddress);
            private function setSWFAddress():void {
                Alert.show("in setSWFAddress()");
                Helper.setSWFAddress(this);
            private function handleSWFAddress(event:SWFAddressEvent):void {    // never gets called  !
                // switch to new Dashboard
                var name:String = SWFAddress.getValue();
                Alert.show("handleSWFAddress()  DashboardIndex: "+selectedDashboardIndex+", setting Dashboard to fragment id (Name): "+name);
                this.selectDashboard(name);
                Helper.handleSWFAddress(this, event);
        ]]>
    </mx:Script>
        <mx:ComboBox  id="dashboardChooser" toolTip="Click to select a Dashboard"
                             tabIndex="0" dataProvider="{this.dashBoardList}"
                             change="onChangeDashboard(event)"/>              
        <mx:ViewStack id="contentStack" width="100%" height="100%" selectedIndex="{this.selectedDashboardIndex}" styleName="blue2BG">       
        </mx:ViewStack>
</mx:Application>
Few caveats:
1) we do use States in that MXML file for something comletely irrelevant.  Was hoping to use it with ComboBox.  Is States necessary for SWFAddress?
2) we do use history.js for browser history, but not deep linking (hope it doesn't interfere with SWFAddress)
3) I did not put SWFObject.js - not in that sample
4) I did not put Google Analytics JS - hope it is not required for SWFAddress (Event) to work.
Please help !
TIA,
Oleg.

The startup sequence I have is the following:
<?xml version="1.0" encoding="UTF-8"?>
<mx:Application
  initialize="{InitWRX()}"
>
    private function InitWRX() {
        SWFAddress.addEventListener(SWFAddressEvent.EXTERNAL_CHANGE, InitWR0, false,0,true);           
    private function InitWR0(event:Event = null) {
        crnt_path = SWFAddress.getValue().substr(1);           
      ChildWR(crnt_path,bRel);
SO iow, I'm thinking you should only call addEventListener(SWFAddressEvent.EXTERNAL_CHANGE...) in your function initSWFAddress.  (Furthermore, I only listen for EXTERNAL_CHANGE, not CHANGE.)
You say HandleSWFAddress never gets called, but I'm thinking it gets called, but that SWFAddress.getValue is not working in it, because you need to addEventListener(SWFAddressEvent.EXTERNAL_CHANGE..)  first in initSWFAddress and then don't call HandleSWFAddress manually, but let the eventhandler call it.

Similar Messages

  • Chrome versions 21-26 show severe problems with flash deep links

    Dear Madam or Sir,
    New Chrome versions (at least versions 21-26) produce severe problems with Adobe Flash concerning deep links.
    You will find test cases and detailed information on this subject here:
    http://www.in-tanz.de/test-chrome/test.php
    Since August 2012 all new versions starting from version 21 to 26 (at least 32-bit Windows) do no longer support for example deep links into Flash. I.e. links like:
    poly-9.php#two
    It does not matter, what deep link you want to jump to (two, three, four etc.), Chrome always starts with „one“ / at the beginning of the Flash-animation.
    Like all other browsers (I successfully tested: Opera, Safari, Firefox, Internet-Explorer) Chrome should jump directly to the deep link #two, #three, etc.
    It does not matter which flash player I have been using over the last 9 months (at the time 11.6.602.180).
    This is a major problem as only my website contains more than 14,000 Flash files with over 100,000 deep links.
    In fact, I reported the bug (first noticed with Chrome 21) to Google beginning October 2012 (see bug reports on my page http://code.google.com/p/chromium/issues/detail?id=154494). But recently, I got the feeling, that there seems to be little interest in solving this problem. Actually, after I had informed Google about it, they even rolled out new versions of Chrome containing the bugs, instead of repairing it.
    Do you know any work around or can you offer any help?
    Kind regards,
    in-tanz

    Chrome uses a proprietary build of the plug-in called "PepperFlash" because it's a PPAPI plug-in where the ActiveX and standard plug-in are NPAPI. That may have something to do with it.

  • Deep-linking SEO problem

    It used to be that you could create multiple entry points to
    a single SWF using a sitemap. For instance, you could define url
    such as
    http://www.example.com/store?product=100
    and have that url return HTML content with the description of the
    product for SE consumption, and then load the SWF that then
    navigates to the particular product. However, after last weeks
    announcement, googlebot will happily press every link button in the
    app and read all the text for everything that's reachable from this
    url. If you have properly designed this entry point, it will be
    indexed using the text from your entire site! In fact, every entry
    point will be indexed with exactly all the text of your entire
    site. Does the crawler stop when the 'state' of the page is changed
    (i.e. when the value for a bookmark changes to represent a state
    change)?
    How can we get around this?

    More succinctly, if Google doesn't store anything after the #
    in a URL, how will it ever deep link into a Flex app?

  • IR (interactive report) Rows found: 1 + No data found on deep linking

    I am using a deep linking to a page with interactive report on it with following URL: http://...../f?p=my_app_id:target_page::::target_page:param1, param2:param1_value, param2_value
    After login, I arrive on the page wit "No data found" message in the report region.
    Clicking on "Session" link, I see that app/page variables are set. Passing in debug mode, I see"Printing rows. Row window: 1-15. Rows found: 1" right before "No data found" message.
    If I use the select with values, I get several lines of result.
    has anyone fell on this problem and solved it?
    Igor

    OK, solved :o)))
    Inside the package function returning URL to call, I insert a row into the table to query and I return its sequence number. The function is launched by an application outside APEX.
    So, if I don't make commit immediately before returning URL, APEX sees nothing.
    I have added a commit before returning from the function and now everything is OK.

  • Deep links in Flash Player not working

    The German support-team of Adobe asked me to introduce this question here again:
    They have already verified the problem with their systems.
    Chrome versions 21 - 33 (at least 32-bit versions on Windows (at least XP up to Windows 7) do no longer jump to Flash-links like
    http://www.domain.xxx/.../xxx.php#two
    All other browsers do resp. earlier Chrome-versions did jump correctly to frame / reference #two.
    It does not matter, what deep link you want to jump to (two, three, four etc.), Chrome always starts with „one“ - i.e. at the beginning of the Flash-animation.
    Like all other browsers (I successfully tested: Opera, Safari, Firefox, Internet-Explorer) Chrome should jump directly to the deep link #two, #three, etc.
    In August 2012 this bug was implemented in Chrome 21.
    You will find a test-suite explaining and showing the problem here:
    http://www.in-tanz.de/test-chrome/test.php
    Does anyone know any help?

    Chrome uses a proprietary build of the plug-in called "PepperFlash" because it's a PPAPI plug-in where the ActiveX and standard plug-in are NPAPI. That may have something to do with it.

  • Deep linking questions

    I have pages in an app that i want to link to from a non apex site. I want the user to log in to apex app and then automatically go to different pages based on the original link to apex. I also want to pass apex login page a value through the link. The value will be stored in an application item named GS_VAR.
    The following link works fine. GS_VAR has the value of 'PASS' in page 101.
    http://apex.oracle.com/pls/otn/f?p=F45196:101:::::GS_VAR:PASS
    The following link does not pass the value to GS_VAR in page 101, however, when it gets to page 2 the value is set correctly.
    http://apex.oracle.com/pls/otn/f?p=F45196:2:::::GS_VAR:PASS
    Only the link to the login page itself gets the value in GS_VAR set in page 101.
    It seems that when I do deep linking to a page other than 101 the app does not set the application item GS_VAR until after you log in. The problem is i always need the the value of GS_VAR set in page 101 for login processing. Is there a workaround for this?
    Thanks
    Rob

    Rob,
    You want a value set in session state before a session has been established. The session assignment for the request doesn't get settled until after authentication. When you pass the value directly in a request to page 101 (essentially a public page), it does set the value in the current session but that's no guarantee that the final session assigned will be the same one -- and if it isn't the value won't be accessible on the after-login page. What you might do is create a before-header process on page 101 to parse the URL (owa_util.get_cgi_env('QUERY_STRING')) and look for the item name/value. If you find it then you can set session state in that same process and hope the session ID doesn't change on you (which it usually doesn't).
    Scott

  • Deep Linking between applications

    I've asked about this before but my problem is a little different this time.
    I have multiple projects (jpr) with an app def file in each one of them so they are all separated into different folders. I have setup the projects so that there is a main project that is dependant on all the others. I can change the URL to go to any of my projects this way. I want to setup deep linking so that it will deep link from one project into another.
    Do I need all the page defs in one common folder for this to work and also is it possible to get JHS to point to a pagedef folder outside its current project folder?
    Bar

    Bar,
    Why do you create separate projects? You can have multiple app defs in one project, all generating into their own subdirectories. See chapter on Team-based development in Dev Guide for more info.
    Anyway, even with separate projects (meaning separate web applications when running within JDev, you could still deploy everything in one ear file) this can be done. In this case, the deep link should be a goLink rather than a commandLink, and you should pass the deeplink query context as a request parameter, for example
    UrlToCallOtherApp?deepLinkId=123
    Then, in the deeplink target group, you should set the Enable DeepLinking expression to something like #{param.deepLinkId!=null} (or #{param.deepLinkId!='', if first one does not work}
    Steven Davelaar,
    JHeadstart Team.

  • Deep linking not working in Flex 4

    Deep linking is working in Flex 4 (using Flash Builder) when I debug and run the application, but not when I do an export release build.
    So I tried using the files from the bin-debug directory, and noticed that deep linking only works when the files are in the bin-debug directory. If I move them from there, they don't work.
    And to make things worse, my Flex 3 builder is not generating the HTML wrapper when using the Flex 4 SDK and deep linking. So I am screwed in every way. I really need help to get my app launched. It is finished, but stuck on my computer.
    Is this a know problem? Thanks very much for any help.

    If anyone run into this poblem, I just figured out half the problem. The javascript file (history.js in the history directory) only checks for url with (http://), so if you are testing and in your browser you have file://loc_of_html_file, then it will not work.
    On the other hand, my next problem is still unresolved:
    Flex Builder 3 is not generating the HTML wrapper when using deep linking AND with the Flex 4 SDK.
    Thanks.

  • Mac OS X - deep links in youtube not working, fast forward not working

    Specs: Mac mini 1.66 Intel Core Duo, OS 10.6.8 Snow Leopard, Flash 11.1.102.64
    Adding, for example #t1m30s, to the end of a youtube url does nothing, videos always start at the beginning. Yes this is an older computer but deep linked youtube videos work fine in Firefox but not Safari. I have another Mac Mini slightly newer, a Mac mini 1.83 Intel Core 2 Duo with same software specs and deep links work fine on it.
    Also I can't seem to drag the marker anymore. Very frustrating.

    While you might get an answer from someone here (I'm interested in knowing too, I run into the drag problem from time to time) I think you'll have better luck over on YouTube's forums.
    Chris

  • Collaboration Room Deep Linking

    Wonder if anyone has looked at this before ?
    I know you can deep link direct to a collaboration room using a URL such as:
    http://xyz.com/irj/portal?NavigationTarget=CollaborationConnector://portal_content/com.sap.ip.collaboration/Rooms/7068630d-c3dd-2e10-89ba-c179eadcef5a/workset/
    Does anyone know if its possible to drill down further than this whilst at the same time maintaining the portal context .... so down into a folder structure under Documents and Links for example.
    I dont want just a KM URL for the document - which is what happens if you do a "Send To" command on an item.
    Thanks in advance.
    Haydn

    If anyone run into this poblem, I just figured out half the problem. The javascript file (history.js in the history directory) only checks for url with (http://), so if you are testing and in your browser you have file://loc_of_html_file, then it will not work.
    On the other hand, my next problem is still unresolved:
    Flex Builder 3 is not generating the HTML wrapper when using deep linking AND with the Flex 4 SDK.
    Thanks.

  • Deep linking to iBook chapter gone?

    Hi all,
    A few weeks ago I started playing with iTunes U Course Manager and found that when referencing an iBook in an assignment, one could choose the chapter that will open when the link is clicked.
    Today that option isn't there. I'm using Apple's official iOS 5.1 User Guide, and know that the chapter links were working previously.
    The iTunes U Guidelines (http://www.apple.com/support/itunes-u/docs/iTunesUCourseGuidelines0712.pdf) state:
    Anyone know where my user error is here?
    Thanks,

    Hi there,
    I have also been having the same issues. When linking an iBook from the iTunes store link, My Materials or from my Mac I am able to link the book, but the 'Link to a Chapter' pop-up does not appear as it should to allow deep-linking.
    Believe me, I have tried every possible combination of resources and approaches, all with correctly referenced contents data, but I just can't get the deep linking option to show!
    I am currently in email discussion with iTunes U support to try to resolve the issue. We have tried linking identical iBooks in our iTunes U courses and the screenshots from the support team show the 'Link to Chapter' option, yet in my course the option never appears!
    I am beginning to think this may be a regional problem, as the support team is in the USA while I am based in Switzerland. He has said that he will pass it on to the engineers to see if they have a solution, so I will keep you updated once I hear more...
    Really want to use this feature, as it makes life much easier for my younger students.

  • Deep Link URL - Calendar (Monthly)

    Hello,
    Does anybody know how to construct a Deep Link URL so that when users click on that link it displays the Calendar to a specified month and year instead of the current? Let me explain further.
    We've built a calendar page that loads the monthly view by default. We've incorporated filters in the monthly view so users can fine tune the events/info displayed. The administrators of the calendar (from time to time) build marketing collaterals such as eBlasts, Newsletters promoting certain events that have been entered into the system. - they use 'Deep Links' so they can be prescriptive about what users can view.
    The problem is we can't work out how to load a month that is outside of the current month. So for the pruposes of this discussion, let's assume that today is the month of February, is there a way that APEX can load the month of April? Better yet, is there a way that we can load a specific target month and year view?
    This is a example of the deep link we currently use: http://apacsalesenablementcalendar.oraclecorp.com/pls/apex01/f?p=134:27:::::P27_X_COURSETYPE:CDT Oracle Policies and Contracts
    The "P27_X_COURSETYPE": is the search/filter item and "CDT Oracle Policies and Contracts" is the variable that is being queried
    The ver of Application Express is 3.1.0.00.32
    Cheers,
    Glenn
    Edited by: Glenn Maramara on Feb 11, 2013 11:59 AM
    Edited by: Glenn Maramara on Feb 11, 2013 12:00 PM
    Edited by: Glenn Maramara on Feb 11, 2013 12:01 PM

    Hi Glenn,
    Take a look at this http://insum-apex.blogspot.nl/2008/07/apex-calendar-enhanced-behavior.html
    Kees Vlek

  • How can I properly embed deep links that contain http: twice

    Hi,
    We have an online bookstore where we need to embed deep links to a booktopia page. I have tested the links given to us by the affiliate program (DGM performace) and they work perfectly but when I embed them into muse and hit publish they give me a server not found page.
    http://academyhypnoticscience.businesscatalyst.com/academy-bookstore.html
    I have established that this seems to be an error in the way muse is interpretting the link (or maybe business catalyst) as the link I paste into muse is:
    http://t.dgm-au.com/c/63052/71095/1880?u=http%3A%2F%2Fwww.booktopia.com.au%2Ftrancework-an -introduction-to-the-practice-of-clinical-hypnosis-michael-d-yapko%2Fprod9780415952590.htm l
    but when I click on the link on the website (on the image of the first book) I get this:
    http://http%3a%2f%2fwww.booktopia.com.au%2ftrancework-an-introduction-to-the-practice-of-c linical-hypnosis-michael-d-yapko%2fprod9780415952590.html/?clickid=yV0WHZyIfUJsUl0wAFyspSG PUkW3tATpbw2qTw0
    and when I right click on the image and copy the link location I get this:
    http://t.dgm-au.com/c/63052/71095/1880?u=http%253A%252F%252Fwww.booktopia.com.au%252Ftranc ework-an-introduction-to-the-practice-of-clinical-hypnosis-michael-d-yapko%252Fprod9780415 952590.html
    Any ideas?
    Cheers,
    Tina

    You can't have two http in a URL. Why do you have two? Try taking one out.

  • Setting the Link Group Name in  Deep Link based on the value of a column

    Using Jdeveloper 11g, Jheadstart 11g
    Is it possible to override the link group name in deep linking. For example can I conditionally set that field based on the value of the item.
    Regards
    Edited by: aliegeh on Jul 25, 2010 8:35 AM
    Edited by: aliegeh on Jul 25, 2010 8:43 AM

    Thanks for the suggestion.
    Here is what I am trying to do:
    I have a table with one visible column that has the following entries:
    1. Create
    2. Modify
    3. Verify
    4. Approve
    5. View
    If the user clicks on row 1 (Create) then the link group name should be "CreateEmployees" to create new employees
    If the user clicks on row 3 (Verify) then the link group name should be "MaintainEmployees" for verification and so on.
    (This is role based and each role will have access to one or more of the rows in the tabler)
    It basically mimics a work-flow type of scenario.
    I tried to modify the template and looked at the line:
    action="$JHS.facesConfigGenerator.addItemGroupLinkTaskFlowCall((${JHS.Current.item})}" but got stuck there.
    Is there a way to change "JSH.current.item" in the template to read the group link name from another column say by using #if statements.
    One way I also tried was to introduce a column for each action such as CreateAction, VerifyAction etc which kind of agrees with your suggestion but the drawback is the need to modify the table if another task is required.
    Regards
    Edited by: aliegeh on Jul 25, 2010 8:36 AM
    Edited by: aliegeh on Jul 25, 2010 8:42 AM

  • "Link Problem" in Incident Form does not seem to work right? How do I do it correctly?

    1. The Link Problem tool in the task pane on our Incidents, do not seem to actually link the Incident to the Problem.
    2. I can link the two by going to the Problem and adding it on the related items tab, but this is very time consuming in a call center environment, especially during an outage where we are relying a lot more on Problem and root cause analysis.
    3. I have tried creating the incident and applying, then doing the Link Problem tool and selecting the problem, then applying again and selecting OK to close the incident. Again it doesn't work for me.
    What am I doing wrong, number one?
    Can we do this without manually opening the problem for every incident and attaching from there?
    3. Can I build an incident template that will automate the Attachment to the problem at creation? (Tried this today to and it wouldn't work, but then again, the Link Problem might again be the culprit) This would be great for real time  saving during
    an outage. Once outage is found, I could create the template with all the necessary items filled out, and would like to have it automatically attach to the specific problem I choose at template creation, and that way analysts can simply apply template, and
    click OK when they get a call related to the outage.

    Thanks  for the response Thomas!
    The functionality seems to work just fine. I use the LINK PROBLEM and it pops up the problem search box, I search for and select a Problem, I then select it and click ok, and I get no error saying the relationship was not created.
    The problem is, when I open the problem after that, there is never any relationship showing in related items there, as it says there should be.
    Also, to point out, I am talking about newly created Incidents. I tried even using APPLY prior to doing the LINK PROBLEM but it still did not work. I suspect it may be a workflow problem, where the workflow to create the incident has not completed, there
    for the relationship is not completed.... and I get no error.
    In my work environment, we have analysts during outages taking a call every 30 seconds, and I need a more efficient way for this system to work. As of now, they spend 1-2 minutes doing the ticket, and that is too long.
    I have decided to try a newb way, where I created an Incident (GENERIC OUTAGE) that folks can use, and every 15-30 minutes during an outage, I can open the problem and search for open incidents with that title, and attach all that I find from the problem
    side. This is assuming that once attached they will not show up in the search to attach the next time lol. Also this assumes that if attached from the problem, they will auto resolve when the problem is resolved.
    I am rusty on my programming, and am currently trying to get refreshed. I am sure that would come in handy for this :)
    Oh and lastly, one additional tidbit that will make this clearer, with regard to work flow, we re also running our Service Manager in our help desk, virtualized, as they have not upgraded to Win 7 yet :(. So that compiles my time to add ticket issue :(.

Maybe you are looking for

  • Crystal Reports 2008 and BOXI3.1 issue

    Hi, Can somebody please help me finding a solution ? Here is the Problem: Environment Details DEV: BOXI 3.1product version 12.1.0.882 Crystal Reports 2008 DB2 database. Environment Details UAT BOX BOXI 3.1product version 12.2.0.290 Crystal Reports 20

  • Need to know LSMW by IDoc Method

    Does any one know the step-by-step procedure for LSMW by IDoc method? Please forward it to me. Regards, Bala Raja

  • WIFI at starbucks and McD's

    I have the New Ipad and after moving to ios 6 I have had problems connecting to free wifi used at Starbucks and McDonalds. A lot of the time I can connect but safari runs super slow and my iphone has no problems when I try using it. I have no problem

  • Manifest file and main class location problem

    my main class is in not in the root of the jar file, it is down a package tree structure, and whenever I run the jar it says Failed to load Main-Class manifest attribute from xxxxx.jar How do I specify the location of the main class? like this?? Main

  • Zones hung

    Hiya Chaps, I've a T5120 with 4 shared IP zones running for a few months without issue, however the other night all four non-globals hung, couldn't connect to them via zlogin, or ssh directly to them. zoneadm list form the global showed all four as r