Adrian,
good afternoon. thanks for replying quickly. Sorry I did not give too many details and tried to keep the question simple. To explain my situation, I have provide a detailed explanation as to why we want this.
Our feature n map server layer is of national extent. we implemented a widget using the sample blank widget template from ESRI with state/county/ and point feature layer names for a guided navigation for 2 purposes:
1. to search a point feature by state/county as people using this might not know the actual geographic location,
2. lock down users based on the state they are allowed to view.
When a user who is allowed to work on California, the state dropdown has only 1 entry and when the users select that 1 entry, all other point features are hidden when the application also zooms to California extent. The application would load all the counties of CA. NV state features are set to hidden from the feature layer display on the map element. the attribute grid changes to reflect the dams in the new extent but contains NV and AZ state records.
What we want to accomplish is that when we are programmatically removing point features belonging to NV and AZ from the visible extent after the application zooms to CA, at the same time, we want to programmatically do something as though the user click on filter by attributes of the attribute table to set the NV and AZ point feautres to hidden.
We are already using eSearch wizard (by Mr. Robert S., GISP of AL) for our searching and report creation purposes.
thanks once again for your help. have a good weekend.
regards
ravi.