Saurabh,
Adding the login screen requires a recompile of the Viewer source code after changes have been made so you can not use the compiled viewer for this.
Hello Everyone
I have a complied version of flexviewer 3.6 . Can anyone suggest me how to put a logoin screen in that .
Regards
Saurabh
If you want to implement this into your own application copy lines 24 through 137, add line 21 into your application tag (to set the current state to login) and within your code for your map add "includeIn="Viewer" That will set the default state of the application to Log in and then when the user logs in the state will change to viewer which is your map. The login would just allow users to get into your application, whatever you enable in your application is what they would have access to. If you want to enable editing of a feature layer there are some nice samples available, like this one, if you are using ArcServer 10.1 there is also some new security features like this one
What I did was a create a .NET wrapper application and simply host the flex application in one of the aspx pages. There is another thread about flex login here:http://forums.arcgis.com/threads/25899-Login-Screen-for-the-Flexviewer?p=168298#post168298
This is awesome!!! Thank you so much for this! I am starting to learn how to use VS so this is perfect! I am not using flex viewer so if I want to allow users to view my application do I just deleted the code to get access to flexviewer ( lines 135 forward) and include the code for my web application ?Also, the login would just to get to the web application and not to edit any feature layers, right? Is there a way to implement editing of the feature layers so the logged users can edit it?
Los miembros registrados pueden publicar, seguir actualizaciones y más. ¿Nuevo aquí? Regístrate gratis.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.