|
POST
|
That is true. You would need a dummy map layer in the service to get the tables to publish. You can see we have similar in our REST endpoint (Search_Tables) Reading above is sounds like a 1 to many relationship and not a 1 to 1 .this changes things too... thinking.... Now I am not 100% on this.... but you might be able to do a 'relate' on the table and then publish. Once published you will want to look at the executeRelationshipQuery QueryTask | API Reference | ArcGIS API for JavaScript 3.19 Drew
... View more
02-09-2017
01:02 PM
|
0
|
2
|
1506
|
|
POST
|
William, Can you provide some details What database are you using? (SQL, Oracle, other..) Are the 2 tables in the same database? Are you connecting with a database AND user that is registered with your ArcGIS Server (as Robert mentioned) Is this your own ArcGIS Server or and ArcGIS online/portal account? I just assumed AGS. When you are in the process of publishing the service what errors do you see when you do an 'Analyse' ? If I had to guess you have not registered the correct database connection with the server. All participating tables in the view must be registered with ArcGIS Server Drew
... View more
02-09-2017
11:13 AM
|
1
|
1
|
1506
|
|
POST
|
Your Close.. Point your "URL_OF_ARCGIS_REST_SERVICE" to the 'layer' Sample http://<MYDOMAIN>arcgis/rest/services/MyTableService/MapServer/1
... View more
02-07-2017
01:27 PM
|
1
|
1
|
1937
|
|
POST
|
So you published a map service with the table in it? You can test your data by clicking on the table in the REST endpoint and selecting the 'Query' operation link at the bottom of the page. Just query where 1=1 and you should see some results. In JavaScript you can just use the QueryTask to query the data. QueryTask | API Reference | ArcGIS API for JavaScript 3.19 Drew
... View more
02-07-2017
07:51 AM
|
1
|
3
|
1937
|
|
POST
|
You would have to know the database, table name and the credentials to connect to the database. • Assuming it’s a SQL Server database, its just like connecting to SDE and adding data the same way. • Add a database connection in ArcCatalog • In ArcMap just use the add data button and browse to your table. • Once added got to the table of contents and select the ‘List by Source’ icon to see the able listed. • Publish to ArcGIS Server o You might have to register the database with ArcGIS Server • Navigate to the map services REST endpoint and look for your table. • You now have a layer you can query using the JSAPI Drew
... View more
02-07-2017
05:57 AM
|
1
|
5
|
4719
|
|
POST
|
As mentioned below, maybe you don't even need a service. Can you add the 'non-ArcGIS database' as a table in the Map Document (mxd) and publish it? Once in the service you can just query it like any ArcGIS service.
... View more
02-06-2017
04:01 PM
|
1
|
7
|
2782
|
|
POST
|
Better late that never.. Someone will find this useful I am sure. Sample var locator = new Locator(this.config.locatorAddress);
var mySearchOptions = {
sources: [
{
"locator": locator,
"name": "Geocoding Service",
"placeholder": "Search Address...",
"enableSuggestions": true,
}
]
}; Drew
... View more
01-26-2017
05:56 PM
|
1
|
0
|
647
|
|
POST
|
Here is how I would do it.. Add the graphic On graphic-add call the Edit activate function and pass in the newly created graphic. Finally, buy me a beer Drew
... View more
01-26-2017
10:18 AM
|
1
|
1
|
1531
|
|
POST
|
Or on 'graphic-add' just call the activate function
... View more
01-26-2017
10:01 AM
|
0
|
1
|
1531
|
|
POST
|
The Edit module will allow you to edit the graphics nodes. You turn it on and off when you want. When the user clicks the graphic just call the activate function
... View more
01-26-2017
10:00 AM
|
0
|
2
|
1531
|
|
POST
|
You can use the Edit module to do this assuming you are using v3.XX API Edit | API Reference | ArcGIS API for JavaScript 3.19 Sample require([
"esri/toolbars/edit", ...
], function(Edit, ... ) {
var editToolbar = new Edit( ... );
//Use the edit toolbar to edit vertices
editToolbar.activate(Edit.EDIT_VERTICES , evt.graphic);
...
});
... View more
01-26-2017
09:46 AM
|
1
|
4
|
1535
|
|
POST
|
William, I would look into the WebAPI by Microsoft to create your Web Service. It's RESTful and easy. Check out YouTube for some tutorials. WebAPI ASP.NET Web API | The ASP.NET Site Another idea is to just add your standalone table into a map service. Not all data in an MXD has to be Spatial. You can query tables too. Drew
... View more
01-26-2017
08:16 AM
|
1
|
0
|
1937
|
|
POST
|
Add a !important on the end to force it. .esri-popup__header {
position: relative;
font-size: 10px !important;
align-items: flex-start;
justify-content: space-between;
flex: 0 0 auto;
background-color: #336ba2 !important;
color: #FFF !important;
}
... View more
01-25-2017
08:30 AM
|
0
|
1
|
2321
|
|
POST
|
You could just override the CSS and style it the way you want. Use your browsers development tools to inspect the HTML and see how it is styled. SAMPLE .esri-popup__header {
position: relative;
font-size: 12px;
align-items: flex-start;
justify-content: space-between;
flex: 0 0 auto;
background-color: #336ba2;
color: #FFF;
} Drew
... View more
01-25-2017
06:01 AM
|
1
|
3
|
2321
|
|
POST
|
If you look in the code you will see there are some public properties available to do this.. pointSymbol:null, polylineSymbol:null, polygonSymbol:null, textSymbol:null, When you create the widget use those properties to define the symbols. i.e. var db = new DrawBox({ pointSymbol: myPointSymbol, polylineSymbol: myPolylineSymbol, ..... },node) Drew
... View more
01-24-2017
10:04 AM
|
1
|
1
|
1158
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 12-04-2013 09:40 AM | |
| 1 | 12-11-2012 10:19 AM | |
| 1 | 05-25-2015 10:46 AM | |
| 1 | 05-10-2016 06:31 AM | |
| 1 | 01-17-2017 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
12-31-2021
09:54 AM
|