Select to view content in your preferred language

Filter Operational Layer

528
3
10-04-2011 07:46 AM
AyieKepong
Emerging Contributor
hi everyone,

I'm trying to filter operational layer display in map and didn't solve yet.

<operationallayers>
            <layer label="San Francisco 3-1-1 Incidents" type="feature" visible="false" alpha="1.0"
                   popupconfig="popups/PopUp_311.xml"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/SanFrancisco/311Incidents/FeatureServer/0"/>
            <layer label="Earthquakes" type="feature" visible="true"
                   url="http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Earthquakes/Since_1970/MapServer/0"/>
            <layer label="Data Extract Incidents" type="dynamic" visible="false" alpha="0.6"
                   url="http://sampleserver4.arcgisonline.com/ArcGIS/rest/services/HomelandSecurity/Incident_Data_Extraction..."/>
    </operationallayers>


From the operational layers above, i'm trying to filter the layer based on users level. For example, UserA is just able to display layer (San Francisco 3-1-1 Incidents) while UserB is able to display layer (Earthquakes and Data Extract Incidents).

Is there any way to filter this layer display based on users level? I'm already trying to update page MapManager.mxml and ConfigManager.as but not successful yet.
If I don't want to add list of operational layer in config.xml, which is exactly files that must be updated if i want to add  any 'hardcode' operational layer in Flex Viewer?

Your ideas or suggestion is highly appreciate.

Thanks
Tags (2)
0 Kudos
3 Replies
BjornSvensson
Esri Regular Contributor
i'm trying to filter the layer based on users level. For example, UserA is just able to display layer (San Francisco 3-1-1 Incidents) while UserB is able to display layer (Earthquakes and Data Extract Incidents).


If you would like different users to see different lists of layers, the easiest way is to have to separate configuration files, then tell user A to go to ...flexviewer/index.html?config=configA.xml and user B to go to ...flexviewer/index.html?config=configB.xml
0 Kudos
AyieKepong
Emerging Contributor
Hi Bjorn Svensson, Thanks for your response.

For your info, there have around 50 different group of users. So, I'm trying to filter the layer in ConfigManager.as.

The operation layer is able to filter now based on layer name but the widget is so difficult to filter when i'm grouping the search widget under 'query' group. From example, I'll create 3 query widget under query group.

<widgetgroup label="Query" icon="assets/images/i_folder.png">
            <widget label="Search_San_Francisco_Incidents" left="430" top="90"
             icon="assets/images/i_search.png"
             config="widgets/Search/Search_San_Francisco_Incidents.xml"
             url="widgets/Search/SearchWidget.swf"/>
            <widget label="Search_Earthquakes" left="430" top="90"
             icon="assets/images/i_search.png"
             config="widgets/Search/Search_Earthquakes.xml"
             url="widgets/Search/SearchWidget.swf"/>
            <widget label="Search_Data_Extract_Incidents" left="430" top="90"
             icon="assets/images/i_search.png"
             config="widgets/Search/Search_Data_Extract_Incidents.xml"
             url="widgets/Search/SearchWidget.swf"/>
        </widgetgroup>

So, query list also is depend on operational layer. UserA will have (San Francisco 3-1-1 Incidents)query while UserB will have (Earthquakes and Data Extract Incidents) query.

How can i filter the query list based on users because i'm already trying but not successful yet for query widget list.

Your ideas or suggestion is highly appreciate.

Thanks
0 Kudos
MattShetzer
Deactivated User
Did you ever figure this out?  If so, it would be a great help to see your solution.

Thank you,
Matt

Hi Bjorn Svensson, Thanks for your response.

For your info, there have around 50 different group of users. So, I'm trying to filter the layer in ConfigManager.as.

The operation layer is able to filter now based on layer name but the widget is so difficult to filter when i'm grouping the search widget under 'query' group. From example, I'll create 3 query widget under query group.

<widgetgroup label="Query" icon="assets/images/i_folder.png">
            <widget label="Search_San_Francisco_Incidents" left="430" top="90"
             icon="assets/images/i_search.png"
             config="widgets/Search/Search_San_Francisco_Incidents.xml"
             url="widgets/Search/SearchWidget.swf"/>
            <widget label="Search_Earthquakes" left="430" top="90"
             icon="assets/images/i_search.png"
             config="widgets/Search/Search_Earthquakes.xml"
             url="widgets/Search/SearchWidget.swf"/>
            <widget label="Search_Data_Extract_Incidents" left="430" top="90"
             icon="assets/images/i_search.png"
             config="widgets/Search/Search_Data_Extract_Incidents.xml"
             url="widgets/Search/SearchWidget.swf"/>
        </widgetgroup>

So, query list also is depend on operational layer. UserA will have (San Francisco 3-1-1 Incidents)query while UserB will have (Earthquakes and Data Extract Incidents) query.

How can i filter the query list based on users because i'm already trying but not successful yet for query widget list.

Your ideas or suggestion is highly appreciate.

Thanks
0 Kudos