Dynamic Layer Parameter

479
1
Jump to solution
08-22-2012 06:24 AM
sapnas
by
Occasional Contributor III
I'm working on some of the wpf sample codes and in one of the sample code the application utilizes dynamic layer. I browsed to the dynamic layer url (http://servicesbeta4.esri.com/arcgis/rest/services/USA/MapServer/dynamicLayer) from internet explorer and passed in the following layer parameter. Clicking "get dynamic layer" button causes 'layer' param invalid error. I followed the instruction from http://resources.arcgis.com/en/help/rest/apiref/dynamicLayer.html link and did not find any issue. Am I missing any attributes in the layer parameter.

[HTML]
{"source":{
"type":"dataLayer",
  {
      "type": "dataLayer",
      "dataSource":    
   {
         "type": "table",
         "workspaceId": "MyDatabaseWorkspaceIDSSR2",
         "dataSourceName": "egdb.DBADMIN.USLakes"
           }
      }
}
}
[/HTML]
Tags (2)
0 Kudos
1 Solution

Accepted Solutions
TanuHoque
Esri Regular Contributor
here is the correct syntax:

{     "source": {         "type": "dataLayer",         "dataSource": {             "type": "table",             "workspaceId": "MyDatabaseWorkspaceIDSSR2",             "dataSourceName": "egdb.DBADMIN.USLakes"         }     } }

View solution in original post

0 Kudos
1 Reply
TanuHoque
Esri Regular Contributor
here is the correct syntax:

{     "source": {         "type": "dataLayer",         "dataSource": {             "type": "table",             "workspaceId": "MyDatabaseWorkspaceIDSSR2",             "dataSourceName": "egdb.DBADMIN.USLakes"         }     } }
0 Kudos