|
POST
|
Hello I can create zip file but the zip file is empty. zipshape(r"E:\mypath","open")
... View more
01-21-2022
09:43 AM
|
0
|
3
|
1114
|
|
POST
|
Hello I am having problem to add date to my file I am getting this error in ArcPro I am having problem to set copy features output. I tried with code here too
... View more
01-19-2022
08:58 AM
|
0
|
0
|
2250
|
|
BLOG
|
Hello all I have these so have and I am getting this error: JS Code function returnFeatures2(ID,Token){
var xmlhttp = new XMLHttpRequest();
var token = Token // This is a field token calculation
var url = "https://services.arcgis.com/*****/ArcGIS/rest/services/******/FeatureServer/0"
+"query?where=vehicle_id%3D%27"
+ ID // The parameter filter
+ "%27&objectIds=&time=&resultType=none&outFields=*&returnHiddenFields=false&returnIdsOnly=false&returnUniqueIdsOnly=false&returnCountOnly=false&returnDistinctValues=false&cacheHint=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&having=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pjson"
+ "&token=" + token
xmlhttp.open("GET",url,false);
xmlhttp.send();
if (xmlhttp.status!=200){
return "Error1"
} else {
var outValue = xmlhttp.responseText;
}
return outValue;
} Xlsx Form
... View more
01-18-2022
09:00 AM
|
0
|
0
|
9527
|
|
BLOG
|
I am thinking my code is not correct I will test it Thanks a lot
... View more
01-14-2022
01:42 PM
|
0
|
0
|
9564
|
|
BLOG
|
Hello @Jesan90 I have this code but I am getting error of Token. Basically, I want user type scooter ID and get some information from survey for example vehicle_company or etc. function returnFeatures2(ID,Token){
var xmlhttp = new XMLHttpRequest();
var token = Token // This is a field token calculation
var url = "https://services.arcgis.com/****/ArcGIS/rest/services/-*****/FeatureServer/0"
+"query?where=vehicle_id"
+ ID // The parameter filter
+ "%27&objectIds=&time=&resultType=none&outFields=*&returnHiddenFields=false&returnIdsOnly=false&returnUniqueIdsOnly=false&returnCountOnly=false&returnDistinctValues=false&cacheHint=false&orderByFields=&groupByFieldsForStatistics=&outStatistics=&having=&resultOffset=&resultRecordCount=&sqlFormat=none&f=pjson"
+ "&token=" + token
xmlhttp.open("GET",url,false);
xmlhttp.send();
if (xmlhttp.status!=200){
return "Error1"
} else {
var outValue = xmlhttp.responseText;
}
return outValue;
}
... View more
01-14-2022
12:33 PM
|
0
|
0
|
9592
|
|
BLOG
|
Hey @HelenZhou Could you send your steps specially JS code and how to link to another hosted service? I couldn't find any code sample.
... View more
01-13-2022
08:58 AM
|
0
|
0
|
9619
|
|
POST
|
Hello, In first survey I have ID number question which user type. In 2nd survey I want user to type ID and bring all information from first Survey which they type ID on that. I know I can do this by JaveScript and pulldata but I don't know JS. basically, I need users put ID number and then all info from first survey show on 2nd survey. I appreciate if I have step by step instruction with JS code. Thanks
... View more
01-12-2022
12:33 PM
|
0
|
6
|
4491
|
|
BLOG
|
Hello, In first survey I have ID number question which user type. In 2nd survey I want user to type ID and bring all information from first Survey which they type ID on that. I know I can do this by JaveScript and pulldata but I don't know JS. basically, I need users put ID number and then all info from first survey show on 2nd survey. I appreciate if I have step by step instruction with JS code. Thanks
... View more
01-12-2022
10:43 AM
|
0
|
0
|
9659
|
|
POST
|
Hello I have this code to get all Race from living atlas but this arcade give me error. I am trying to use it on pop up. I don't want to bring layers to webmap and I just want to use FeatureSetByPortalItem Error Execution Error:Runtime Error: Cannot call member property on object of this type. B03002_003E //intersect to determine population density in the tract
var portal = Portal("https://www.arcgis.com")
var popu = FeatureSetByPortalItem(Portal,
"23ab8028f1784de4b0810104cd5d1c8f",2,
['B03002_003E','B03002_004E','B03002_005E','B03002_006E'
,'B03002_007E','B03002_008E','B03002_009E','B03002_012E']
, true);
var fields = [
{ value: $feature["B03002_003E"], alias: "White Alone, not Hispanic" },
{ value: $feature["B03002_004E"], alias: "Black or African American Alone, not Hispanic" },
{ value: $feature["B03002_005E"], alias: "American Indian and Alaska Native Alone, not Hispanic" },
{ value: $feature["B03002_006E"], alias: "Asian Alone, not Hispanic" },
{ value: $feature["B03002_007E"], alias: "Native Hawaiian and Other Pacific Islander Alone, not Hispanic" },
{ value: $feature["B03002_008E"], alias: "Some Other Race Alone, not Hispanic" },
{ value: $feature["B03002_009E"], alias: "Two or More Races, not Hispanic" },
{ value: $feature["B03002_012E"], alias: "Hispanic or Latino" }
];
// Returns the predominant category as the alias
// defined in the fields array. If there is a tie,
// then both names are concatenated and used to
// indicate the tie
function getPredominantCategory(fieldsArray){
var maxValue = -Infinity;
var maxCategory = "";
for(var k in fieldsArray){
if(fieldsArray[k].value > maxValue){
maxValue = fieldsArray[k].value;
maxCategory = fieldsArray[k].alias;
} else if (fieldsArray[k].value == maxValue){
maxCategory = maxCategory + "/" + fieldsArray[k].alias;
}
}
return IIF(maxValue <= 0, null, maxCategory);
}
getPredominantCategory(fields);
... View more
12-03-2021
08:28 AM
|
0
|
1
|
2455
|
|
IDEA
|
@AbdoulayeDiop Could you share your Arcade code? I am trying to do same thing but couldn't find solution.
... View more
11-23-2021
08:31 AM
|
0
|
0
|
4029
|
|
POST
|
Hello I think instant apps have problem today. I can't publish and also I can't choose another basemap for switch basemap.
... View more
11-09-2021
07:19 AM
|
0
|
1
|
528
|
|
POST
|
Hey @jcarlson Thanks for this this is great but I know some arcade code doesn't allow you to create actions. is it normal or I need to change the code to enable Action.
... View more
11-08-2021
06:42 AM
|
0
|
0
|
767
|
|
POST
|
Hello, I am trying to aggregate all answers which user choose other and type his/her respond on the box in survey123. I just want to show how many other respond but I don't want to see actual answers. you can see below a screen shot which i couldn't find the way and I just want to have one bar for all other together. I have this arcade code which group each respond but I don't know how can I add other to. // Reference layer using the FeatureSetByPortalItem() method.
var fs = FeatureSetByPortalItem(Portal('https://www.arcgis.com'),
'itemID' , 0,
['neighborhood'], false);
// Empty dictionary to capture each hazard reported as separate rows.
var choicesDict = {'fields': [{ 'name': 'split_choices', 'type': 'esriFieldTypeString'}],
'geometryType': '', 'features': []};
var index = 0;
// Split comma separated hazard types and store in dictionary.
for (var feature in fs) {
var split_array = Split(feature["neighborhood"], ',')
var count_arr = Count(split_array)
for(var i = 0; i < count_arr; i++ ){
choicesDict.features[index++] = {
'attributes': { 'split_choices': Trim(split_array[i]),
}
}}}
// Convert dictionary to featureSet.
var fs_dict = FeatureSet(Text(choicesDict));
// Return featureset after grouping by hazard types.
return GroupBy(fs_dict, ['split_choices'],
[{ name: 'split_count', expression: 'split_choices', statistic: 'COUNT' }]);
... View more
11-04-2021
12:46 PM
|
0
|
2
|
823
|
|
POST
|
Thanks @ABishop I know this way. However, the data come from survey123 and I don't want to touch the survey and publish it again. i am thinking maybe I can add arcade to webmap something like popup or using arcade and add fields
... View more
10-21-2021
06:32 AM
|
0
|
3
|
1668
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-26-2023 07:59 AM | |
| 8 | 01-15-2025 08:56 AM | |
| 1 | 01-15-2025 08:57 AM | |
| 1 | 03-30-2022 08:49 AM | |
| 2 | 10-24-2024 06:53 AM |