POST
|
I am glad that worked out for you. I understand when trying to inherit code from another developer it an always be challenging but I am sure you will find a way out 🙂 Regarding the scope issue, I usually either pass it as a parameter from function to function or create a global class that holds all the variables and reference it throughout the application.
... View more
10-29-2020
03:27 PM
|
2
|
0
|
839
|
POST
|
Can you try with this instead createServerSideScratchLayer(tok) You can try to debug the code and see if you are receiving the token and also if the function is approachable. Or alternatively, you can move your code snippet in the response function instead. getFStokFromUrl: function () {
tok = ""
var gp = new Geoprocessor("gpServiceURL/execute");
var params = { "inSystem": "someInputParamValue"};
gp.execute(params, retTok);
function retTok(results) {
tok = results[0].value;
this.serverSideScratchLayer = new FeatureLayer(this.config.applicationFeatureLayer + '?token=' + tok , { outFields: ["OBJECTID"] }); } }, Try this if that helps. Cheers, Manish
... View more
10-28-2020
06:37 PM
|
2
|
2
|
839
|
POST
|
Hi James Crandall, The code looks correct, however it depends if your gp service is sync or async and whether the function waits till the response is received back. Ideally, you can check if the response is received and put the createServerSiteScratchLayer() in the getFStokFromUrl function's response. fsTok: null
startup: function(){
this.fsTok = this.getFStokFromUrl();
},
getFStokFromUrl: function () {
tok = ""
var gp = new Geoprocessor("gpServiceURL/execute");
var params = { "inSystem": "someInputParamValue"};
gp.execute(params, retTok);
function retTok(results) {
tok = results[0].value;
// this.fsTok = results[0].value; you can set this if you need to use it again
this.createServerSideScratchLayer(tok);//or pass as parameter to the function
}
},
createServerSideScratchLayer: function (token) {
this.serverSideScratchLayer = new FeatureLayer(this.config.applicationFeatureLayer + '?token=' + token,
{
outFields: ["OBJECTID"]
});
}, Cheers, Manish If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
10-28-2020
06:02 PM
|
2
|
4
|
839
|
POST
|
Hi Gil Grodzinsky Happy to help 🙂 Glad that it worked, also please dont forget to mark the reply as answered, this will help other users to find it quickly Have a good day ahead!! Cheers, Manish
... View more
10-18-2020
12:21 AM
|
0
|
0
|
1671
|
POST
|
Hi Gil Grodzinsky, The text property is a string that is returned, hence you can use the Python string replace function. five.text = five.text.replace("Sheet4.NEI2014v2_","Sheet4.NEI2014v_1") print(five.text) Output: Maximum: <dyn type="table" property="max" mapFrame="Map Frame" mapMemberUri="CIMPATH=map/cb_2018_us_county_500k.xml" isDynamic="true" field="Sheet4.NEI2014v_1" decimalPlaces="2" separator="true"/> Hope this helps. Cheers, Manish If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
10-16-2020
08:53 PM
|
2
|
2
|
1671
|
POST
|
Hi Anthony Von Moos, Not that I have ever come across, but I think what you could do is use either VBScript or Python and translate your Excel formula to python and use that in the field calculator to calculate the values. Hope this helps. Cheers, Manish If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
10-13-2020
03:55 PM
|
0
|
0
|
993
|
POST
|
Hi Arne Gelfert, Thanks for the suggestion, it seems there environment issue, when I tried to use a different location it seems to be working fine. Cheers, Manish
... View more
10-12-2020
05:19 AM
|
1
|
0
|
2457
|
POST
|
Hi Ethan McGhee, Additionally, will you be able to share either your web map or the layer so I can suggest what is the best possible way to view the attachments. Cheers, Manish
... View more
10-12-2020
04:43 AM
|
1
|
3
|
3043
|
POST
|
Hi Ethan McGhee, From the looks of the screenshot, it seems like the attachment is not enabled on the layer, rather it is a URL string in the 'MapLink' field, hence when you select the field it shows that no attachments found. Can you check if the attachments are enabled and try that again? Hope that helps. Cheers, Manish
... View more
10-12-2020
04:42 AM
|
1
|
0
|
3043
|
POST
|
HiNovica Josifovski, Just wondering if you managed to fix the code?? Cheers, Manish
... View more
10-12-2020
04:11 AM
|
0
|
0
|
719
|
POST
|
Hi Admin Admin, Glad you find the suggestion helpful, do update if the workaround works for you. Cheers, Manish
... View more
10-12-2020
04:09 AM
|
0
|
0
|
1239
|
POST
|
Hi Roman Kohut, By the look of the error it looks like the layer doesnt support global ids, please refer to the documentation at link Apply Edits (Feature Service/Layer)—ArcGIS REST API | ArcGIS for Developers for more information. supportsApplyEditsWithGlobalIds will be true if the layer supports applying edits. The documentation also states if useGlobalIds is true, the features are added while preserving their globalIds. If useGlobalIds is false or not specified, the globalIds submitted with the features are ignored and the service assigns new globalIds to the new features. Please feel free to share codepen with your example which will be easier for verifying if there is any change in code required. Hope this helps. Cheers, Manish If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
10-12-2020
04:08 AM
|
0
|
1
|
688
|
POST
|
Hi Paul, Admin Admin You may try to use the Where clause to limit the view. Please refer to the below link for more info. Prepare for editing existing survey data—ArcGIS Survey123 | Documentation Quick thoughts, Do you have users who need to sign off the submitted survey, set them as editors so you can set a field in the layer which contains the username and that could be used to filter the records. This would refrain the field workers to view any submitted surveys. If setting the editor is not an option you can alternatively you can use the same feature layer and create another survey where you can enable the inbox so the editors can view and sign off where required and this survey will not be visible to the field workers and the one which the field workers are using you can disable the inbox feature. I hope that makes sense 🙂 (I swear it made sense to me when I was thinking about it, but not sure if that might solve your concern.) Hope this helps. Cheers, Manish If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
10-09-2020
05:28 AM
|
2
|
2
|
1239
|
POST
|
Hi Tanu Hoque, Thanks for your reply. I did manage to write the python script to overwrite the dynamic text element and got it working perfectly fine. Cheers, Manish
... View more
10-05-2020
03:38 PM
|
1
|
1
|
4583
|
POST
|
Hi Altin Pojani, Your question doesnt make any sense? if you can elaborate and explain what you are exactly looking for might help to provide some guidelines. However, based on quick look it seems you want to find a way to join. Please refer to the technical article How To: Join an Excel spreadsheet (.xls) to a feature class in ArcMap Hope this helps. Cheers, Manish If this answer solved your question or if you found it helpful please mark it accordingly to help others who have the same question.
... View more
10-05-2020
04:16 AM
|
0
|
1
|
974
|
Title | Kudos | Posted |
---|---|---|
1 | 10-12-2020 05:19 AM | |
1 | 10-05-2020 03:38 PM | |
1 | 10-14-2021 07:54 PM | |
1 | 10-12-2021 08:01 PM | |
2 | 06-21-2021 10:29 PM |
Online Status |
Offline
|
Date Last Visited |
12-15-2023
05:55 AM
|