Select to view content in your preferred language

Customized Flex Viewer Application

4606
12
Jump to solution
07-10-2012 08:45 AM
LawrenceRover
Deactivated User
I have recently created a web map application utilizing the flex viewer, the out of the box application looks great however there are a couple extra functions I would like to include and I am unsure how to do so.

1. include a login and password (preferably inbedded into the splash screen) that relates/utilizes to my arcgis server user roles (to allow only certain users access to edit, view, etc.).
2. Customize the popup windows for the query button.
3. Customize the popup windows for the edit button (setting aliases or using the aliases set up in the sde geodatabase).

Any help would be greatly appreciated.

Thanks,

Larry Rover
GIS Manager
RA Consultants, Cincinnati Ohio
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
LawrenceRover
Deactivated User
Bjorn,

I removed my service and republished and it seems to be working now.

Thanks,

Larry

View solution in original post

0 Kudos
12 Replies
BjornSvensson
Esri Regular Contributor
1. include a login and password (preferably inbedded into the splash screen) that relates/utilizes to my arcgis server user roles (to allow only certain users access to edit, view, etc.).

If you are using ArcGIS 10.1 (and even 10.1 SP1 to some extent) with Flex Viewer 3.0 some of this will work automatically.  The ArcGIS Security is driven by the security set up for a Map Service, and the Flex Viewer will prompt automatically when a log-in is needed for a service.

2. Customize the popup windows for the query button.

Assuming you mean the Query Widget, then depending on what customization you are thinking about you might be able to do it with the application builder or configuration files.  The alternative is to work with the source code to compile your own viewer.  If you share more specifics on what customization you are looking for, we could probably help you with more specifics.

3. Customize the popup windows for the edit button (setting aliases or using the aliases set up in the sde geodatabase).

The aliases from the SDE database, and from the ArcMap document is automatically used by the Edit Widget.  Is this not working for you?
0 Kudos
LawrenceRover
Deactivated User
Thanks Bjorn, I have not had any success with the Aliases set up in sde database showing up in the viewer.  They show up when I am in the .mxd but will not show in the flex web map. Any idea on why they won't relate?

Thanks,

Larry Rover
GIS Manager
RA Consultants, Cincinnati Ohio
0 Kudos
BjornSvensson
Esri Regular Contributor
Thanks Bjorn, I have not had any success with the Aliases set up in sde database showing up in the viewer. They show up when I am in the .mxd but will not show in the flex web map. Any idea on why they won't relate?


I'm assuming you mean field aliases. When you publish the Map Service, does it get listed as aliases in the Service Directory?

See for example http://sampleserver6.arcgisonline.com/arcgis/rest/services/SF311/FeatureServer/0
req_type ( type: esriFieldTypeString , alias: Request Type , editable: true , nullable: true , length: 40 )


This where the Flex application will get the aliases from...

If this doesn't help you, is your map service publicly available?
0 Kudos
LawrenceRover
Deactivated User
Bjorn,

I removed my service and republished and it seems to be working now.

Thanks,

Larry
0 Kudos
KennethLyons
Emerging Contributor
I have recently downloaded the compiled version of Flex Viewer 3.0 and when I attempt to import into Flashbuilder, I recieve an error stating, "Not a valid archived project".  Has anyone else run into this issue?  If so, has anyone fixed it?  And is there anywhere I can begin to look for answers?

Thanks.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Kenneth,

  From the looks of the zip file name you are trying to import the COMPILED flex viewer and not the source code version. The source code version would be named something like flexviewer-3.0-src.zip. You need to download it for the github website https://github.com/ArcGIS/ArcGISViewerForFlex/tags
0 Kudos
KennethLyons
Emerging Contributor
Rob,
Thanks I was able to import that into flashbuilder... Thanks! 
Now when I try to run the program, it appears to be mission the index.hmtl file.  Did I import this incorrectly?  I don't remember having these issues on previous upgrades... I tried to try to see if copying that file from another location fixes it, but I had no luck with that.  do you have any other solutions?

Thanks again.
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Kenneth,

   The likely scenario is that you missed the instructions in the readme.txt (in the viewer zip) that states you have to go and download the Flex API swc and include it into your projects libs folder. You probably have a lot of errors in your problems window in Flash builder and thus are not getting an index built because of these errors.
0 Kudos
KennethLyons
Emerging Contributor
Rob,
Thanks again.  I ended up restarting the whole import again but before I ran it, I put the swc into the libs folder.  Good to go now..

Thanks
0 Kudos