POST
|
Hi, Portal for ArcGIS has the option to set a custom popup of a web app layer and set hyperlink by: -> layer options -> Configure Pop-up -> Display [A custom attribute display] -> Configure Can I do it using python API? I have followed this thread but this only allows to set existing fields. Even if i set my URL as an attribute, how can I make it a hyperlink? Note: I want to use a combination of attributes in the URL something like arcgis-survey123://?itemID=5914fdb0eea642f882e3dcb2b1d3&field:zone={ZONES}&field:wilayat={Wilayat}&field:area={Area}&field:coordinat_x={Point_X}}&field:coordinat_y={Point_Y}&field:substation_name={NAME} Thanks
... View more
03-02-2020
12:16 AM
|
0
|
0
|
535
|
POST
|
Since Indexed-repeat is still not compatible with Survey123 yet, a workaround for this can be by joining the repeat values with a delimiter (,) and then splitting them with Custom JavaScript Function in extension Step 1: join the required repeat values using join in calculation : join(',',${cal_total_tx_leaking}) Step 2: Create a folder named "extensions" in your form folder and add a js file in it. Add your function to split the string and return the required value: function getValFromString(data, idx) { return data.split(",")[idx-1] } Step 3: To calculate index of each item with repeat, use once(count(${cal_total_tx_leaking})) Step 4: Call your custom function inside repeat using pulldata Hope this helps.
... View more
02-16-2020
12:26 AM
|
2
|
1
|
623
|
POST
|
I solved it by using it in a separate Require() function instead of loading it at the top with dojo libraries. require(["https://cdn.datatables.net/v/dt/jq-3.2.1/dt-1.10.16/datatables.js"], function () {
$(document).ready(function () {
var table = $('#customerTable').DataTable();
});
});
Surprisingly despite of this new require function itself being inside the main require function, where the dojo is loaded, this works somehow. require(["esri/Map",
"esri/views/MapView",
"esri/layers/MapImageLayer",
"esri/geometry/Point",
"esri/geometry/projection",
"esri/geometry/SpatialReference",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/Graphic",
"esri/layers/GraphicsLayer",
"dojo/domReady!"],
function (Map,
MapView,
MapImageLayer,
Point,
projection,
SpatialReference,
SimpleMarkerSymbol,
SimpleLineSymbol,
Graphic,
GraphicsLayer) { ... //New Require Function
... View more
04-14-2019
12:44 AM
|
0
|
0
|
2180
|
POST
|
Hi I have a Web GIS app using ArcGIS API for JS 4.11. I want to use Datatables in it but I get the following errors on loading the datatables js files: Error: multipleDefine Error: scriptError: https://js.arcgis.com/4.11/dojo/jquery.js Pretty much similar to this guy: https://community.esri.com/thread/217497-fixing-dojos-and-jquery-dependant-libraries-multipledefine-conflict-via-javascript Do we have a workaround for this?
... View more
04-13-2019
11:26 PM
|
0
|
1
|
3253
|
POST
|
Thanks alot Joe! this is exactly what I needed. About using ArcFM, that really was my first approach. I spent 2 weeks understanding the documentation and doing it through Downstream Trace but I got stuck very bad. I asked a couple on questions on GIS Stack Exchange which no one answered and I did not have a Schneider account to post on their forum. After two weeks I gave up and did it with Forward Star, since my deadline was reaching. Will surely go back to that method once I complete it for now.
... View more
03-11-2019
01:00 AM
|
0
|
0
|
910
|
POST
|
Hi there. Thank you for your response. Yes this is a copy of the original code. These are variables,coming as parameters, in the original code. So I changed them here for the clarity of code. The spellings are correct in the original code. One tricky property for me is the "instance". I'm not really sure which is the correct value to use. If I right click my ArcSDE database in ArcCatalog, and click on "Connection Properties", the instance value is same as my Server name (raecgissql) But when I open the connection properties from the SQL Server Management Studio, The Instance is shown to be empty. When I use, empty string in my code. No exception is thrown, but it asks for the credentials again. When I use "raecgissql" (similar to ArcCatalog) then an exception is thrown , something like "SDE not found in the listings".
... View more
03-10-2019
08:18 PM
|
0
|
0
|
864
|
POST
|
I'm trying to open SDE Workspace Factory using IWorkspaceFactory.Open I give the complete Property set in the code to open. ESRI.ArcGIS.esriSystem.IPropertySet propertySet = new ESRI.ArcGIS.esriSystem.PropertySetClass();
propertySet.SetProperty("SERVER", "myServer");
propertySet.SetProperty("INSTANCE", "myinstance");
propertySet.SetProperty("AUTHENTICATION_MODE", "DBMS");
propertySet.SetProperty("DATABASE", "myDatabase");
propertySet.SetProperty("USER", "sde");
propertySet.SetProperty("PASSWORD", "sdePassword");
propertySet.SetProperty("VERSION", "sde.DEFAUALT");
IWorkspaceFactory workspaceFactory = new ESRI.ArcGIS.DataSourcesGDB.SdeWorkspaceFactory();
IWorkspace workspace = workspaceFactory.Open(propertySet,0); But When the workspaceFactory.Open is called, a dialogue box is opened to ask for credentials again. Why does this happen? Also, Can someone tell me what does the second parameter of IWorkspaceFactory.Open "hWnd" represent? I couldnt find a proper explanation in the documentation.
... View more
03-10-2019
12:56 AM
|
0
|
4
|
1348
|
POST
|
I have a Geometric Network of electric dataset and I'm working on a downstream trace addin using Forward Star. While tracing, I need to obtain an extra attribute ("Feeder ID") from the source of my geometric network, which is not present in the network attributes. So far, I have the EID of the Edge, and its geometry, during the trace iteration. fStar.QueryAdjacentEdges(ref adjEdgeEIDS, ref adjRevOrientations, ref adjEdgeWeights); for (int i = 0; i < adjEdgeCount; i++) { int connectedEdgeEID = adjEdgeEIDS; IGeometry edgeGeom =(IGeometry) _geomNet.get_GeometryForEdgeEID(connectedEdgeEID); // Get source of Edge EID to get FeederID Attribute } Now, I have researched a little and found out that this will be achieved through INetworkSource. I can obtain SourceID and SourceOID from the INetworkElement of that edge. What I am unable to figure out is that how to obtain the corresponding NetworkElement from the EID or Goemetry of the Edge I have. I hope I am going in the right direction. Any help would be appreciated. Note: I do not have the Network Analyst Extension. I need to do it without needing the Network analyst extension.
... View more
03-09-2019
08:32 PM
|
0
|
2
|
1112
|
Title | Kudos | Posted |
---|---|---|
2 | 02-16-2020 12:26 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|