1 Reply Latest reply on Jun 14, 2010 10:41 PM by BhaskerChari

    call flex app from dashboard with auto login & data retreival

    drenner1 Level 1

      i would like to make a call to a flex app  from a dash

      board and automatically login and display user-requested data;

      thus, the login and data retreival should be handled

      'behind the scenes' so that the when flex is called, the first thing (the only thing) the user sees is the data that has been requested; the login credentials and data request info has been passed to flex as parameters. can this all be done by passing such parameters on the URL ?

       

      eg, http;//myserver:portno/myflexapp.html?user=usrid&passwd=password&month1=01/01/2010&month2 =02/01/2010

       

      does anyone know of code examples that shows this approach ? I really need some code examples of how to do this.

       

      thank you very much

        • 1. Re: call flex app from dashboard with auto login & data retreival
          BhaskerChari Level 4

          Hi drenner1,

           

          Check the link below ....this shows how you can access the query string parameters in your Flex application..

           

          http://www.adobe.com/livedocs/flex/201/html/wwhelp/wwhimpl/common/html/wwhelp.htm?context= LiveDocs_Book_Parts&file=passingarguments_086_06.html

           

          So in your flex application creationComplete you should write a logic such that you first check for the query parameters passed to the Flex application...if the parameters doesn't exist you will show the login screen(However this case may not appear as you always pass these parameters.)

           

          Say if you have passed these query parameters you will access these parameters in your Flex application and try to authenticate the user in the background with the parameters passed ...you do not show the login screen for this type of authentication since you are authenticating the user in the background...So if the user is successfully authenticated then you will try to fetch the data required to display on the user screen and after the data has been returned you will display it to the user, until then you will not display anything the user.

           

          If this post answers your question or helps, please kindly mark it as such.


          Thanks,

          Bhasker Chari