Select to view content in your preferred language

Login Screen for the Flexviewer

37034
121
03-15-2011 10:52 AM
andrewj_ca
Frequent Contributor
Just posted some code for a Flexviewer login screen.  I hope somebody can get some use from this.

http://www.arcgis.com/home/item.html?id=baebcaf317994d63902bc9735c0657e0
Tags (2)
0 Kudos
121 Replies
saurabhgupta2
Emerging Contributor

Robert

I have solved the config problem by making the usrconfig as global variable and setting default config in viewer container as that variable . I would like to know if that is  a good approach. ?

I can also see that service provide me the user name and last name . I want to pass that string to show on widget panel the logged in user along with logout option . Any insight regarding that.??

Regards

Saurabh

0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Saurabh,

   All of that is handled in the ViewerContainer.mxml file that is in the zip I provided a link for.

                //retrieve config from login and override FlashVar and URL

                if(FlexGlobals.topLevelApplication.usrConfigfile != ""){

                    configFile = FlexGlobals.topLevelApplication.usrConfigfile;

                }

The index.mxml has a public var called usrName that you can access for the logged in user.

0 Kudos