POST
|
Thank you for your response @MikeMillerGIS., Hereby the map with example data and the arcade expression. It is content on AGO. Normally it should run on AGS Enterprise 10.9.1.
... View more
07-05-2023
10:39 PM
|
0
|
0
|
354
|
POST
|
@MikeMillerGIS , I am really sorry if tagging is considered rude. You did help me immensely with this question. Would you mind helping me one more time with this question?
... View more
06-28-2023
11:13 PM
|
0
|
2
|
389
|
POST
|
Hello World, Based on the a related (1:M) table, Enterprise 10.9.1. I need to define the link to navigate to the source application. So I do get X (based on available names) separate bullets with links. If I copy/paste the link it is working. But If I click it, to start it within the PopUp, it will open the current WebMap again. Current result: I do have a feeling that I still need the concatenate somehow, but I do not get it fit in properly. If I use it at the end, it will cluster the multiple links again. var relatedtabel = FeatureSetByRelationshipName($feature,"XXXXX.SourceTable",["IDfield"]);
console (relatedtabel)
var related_results = [];
for (var row in relatedtabel){
push(related_results,"FirstStaticPartOfTheLink" + row.IDfield + "SecondStaticPartOfTheLink");
}
if(Count(related_results) == 0){
return "No Info"
}
var apple = slice(related_results);
return apple; Thank you in advanced.
... View more
06-26-2023
12:27 AM
|
0
|
3
|
465
|
POST
|
Hello World, Based on the a related (1:M) table, Enterprise 10.9.1. I need to define the link to navigate to the source application. So I do get X (based on available names) separate bullets with links. If I copy/paste the link it is working. But If I click it, to start it within the PopUp, it will open the current WebMap again. Current result: I do have a feeling that I still need the concatenate somehow, but I do not get it fit in. If I use it at the end, it will cluster the multiple links again. var relatedtabel = FeatureSetByRelationshipName($feature,"XXXXX.SourceTable",["IDfield"]);
console (relatedtabel)
var related_results = [];
for (var row in relatedtabel){
push(related_results,"FirstStaticPartOfTheLink" + row.IDfield + "SecondStaticPartOfTheLink");
}
if(Count(related_results) == 0){
return "No Info"
}
var apple = slice(related_results);
return apple; Thank you in advanced.
... View more
06-25-2023
10:30 PM
|
0
|
0
|
445
|
POST
|
@MikeMillerGIS , that did the trick. Thank you so much. Even though I also realize that I still have a long way to go to master Arcade as a subject matter.
... View more
06-18-2023
10:43 PM
|
0
|
0
|
365
|
POST
|
Hello world, I could use your help with the following issue: I'm trying to retrieve (string, text) values from a related table and present them in a PopUp (Enterprise 10.9.1, webmap). I think the issue is a combination of line 2, 10 and 17. Since the code is working on a basic number field. Who can help me out? (Thank you in advanced!) //Get information from the related table
var relatedtabel = FeatureSetByRelationshipName($feature,"XXXXXX.NAMETabel",["OL_FIRSTNAME","OL_LASTNAME","OL_DATE"]);
var cnt = Count(relatedtabel);
if (cnt > 0) {
console("Found value")
var num = 0; //not sure if this is needed.
var result = "";
var listvalues = [];
var info = (relatedtabel);
for (var num=0; num < cnt; num++) {
console("ascending number: [" + num + "]")
console("total numbers found: [" + cnt + "]")
var relatedinfo = "";
relatedinfo = Text(info.OL_LASTNAME + " | " + Month(info.OL_DATE) + "-" + Year(info.OL_DATE)) + TextFormatting.NewLine;
result += insert(listvalues,num,relatedinfo);
}
return Concatenate([listvalues]);
}
// if there are no related data at all
else {
console("no value found")
var nodata = "";
nodata = Text("Geen informatie");
return nodata
}
... View more
06-16-2023
02:02 AM
|
0
|
2
|
411
|
POST
|
Thank you @LauraBowden. That was the solution indeed.
... View more
11-24-2022
01:35 AM
|
0
|
0
|
499
|
POST
|
Is it still possible to download the confirmation of participation of Esri MOOC 2022 (Cartography). If so, where? Thank you in advanced!
... View more
11-23-2022
04:24 AM
|
0
|
2
|
636
|
POST
|
@HusseinNasser2 Thank you for your response. The case has been escalated, but to our knowledge it has not yet been resolved. It concerns: #02923240.
... View more
08-01-2022
07:23 AM
|
0
|
0
|
266
|
POST
|
The code is correct, but unfortunately it turns out to be a BUG. When Person 'A' is logged in and triggers the AR, the system recognizes Person 'A' with associated rights. Unfortunately, it seems that person 'B' & 'C', (both logging in from their own IP / User account) can edit with the rights of person 'A'. In other words, the trigger reacts once upon recognizing a profile and keeps it for others users to the same product. Only after resetting the service does the situation seem to have reset. Bug has been reported to Esri. No solution is know yet (02-12-2021).
... View more
12-03-2021
03:09 AM
|
0
|
2
|
357
|
POST
|
Hello World, I could use 'some extra eyes' on the following issue. I'm trying to combine the "GetUser" option with another action within a constraint Attibute Rule in a Enterprise 10.9.0 enviroment. Unfortunately I can't get it to work. It doesn't seem to recognize the getUser by using it as an Attribute Rule (constraint). It will however recognize me (user & groups) when I run the piece of code 1 on 1 within a popup-expression. Am I on the wrong track? Am I doing something wrong? //Variables----------------------------------------------------------------
//If the edit is on DEFAULT we need to check the user groups
var p = Portal("https://xxxxxxxxxxxx/portal");
//Get the user full object
var u = getUser(p);
//Get the user groups
var groups = u.groups;
//Check if the user is in the correct group
var insuperusergroup = (Find("<NameOfTheGroup>",groups) > 0 );
// If value of Checkfield = Yes. Disable that this object can be edited,
var Akkoord = ($originalFeature.Checkfield == 'Ja');
//Action------------------------------------------------------------------
// If user is in: insuperusergroup: This Attribute Rule should do nothing.
if (insuperusergroup) {
return true }
// this attribute rule should check what the value of Checkfield is. no? the user must be able to modify the object. Yes? The user may no longer be able to change anything to this object, and will receive an error.
else {
if (!Akkoord) {
return true }
else {
return {"ErrorMessage":" Sorry! You cannot edited this object"}
}
}
... View more
10-26-2021
06:06 AM
|
1
|
3
|
510
|
POST
|
Thank you @JohannesLindner for your time and energy, you helped me a lot, It is working! I still need to learn a lot! But I see the potentional of attribute rules! Mercy for this insight!
... View more
06-11-2021
04:28 AM
|
0
|
1
|
1103
|
POST
|
@JohannesLindner , thank you once again for the explaination, this is much appreciated. Here's a little clarification on the last part, I need to rewrite a value after a point is created and we did the check. For example: In the Polygon FC: $feature.PolygonFC_type == "Liftschacht" it should be $feature.PointFC_Type == "Lift" in the destinated pointFC.
... View more
06-10-2021
11:44 PM
|
0
|
1
|
1112
|
POST
|
@JohannesLindner Thank you for the additional information. I think I got point 1 & 2 partially working 🎂 But there are still a lot of unanswered questions. For example, why do they use an empty field called "Field" as a central point for the Attribute Rule? Is this necessary? And why return it widhout an action? I need to add a "definition query ", am I on the right track with this approach? And how can I rewrite "A" to "C" and "B" to "D" at this point? //If value of field X is "A" or "B" proceed, else do nothing (Insert or Update).
var IsCorrecteWaarde =($feature).X == "A" or ($feature).X == "B"
else {
return
} This is the current code: //----------------------------------------------------
//Create a centerpoint of the given polygon. Z=Zero, because of the Z-awareness of the FC.
var centroidFeatureR****e = Point({ 'x': centroid($feature).x, 'y': centroid($feature).y, 'z': 0, 'spatialReference':{'wkid':28992} })
//----------------------------------------------------
return {
//In the example they used a empty field! So do we! I do'nt really understand why (yet).
"result": $feature.field,
//this keyword indicates an edit that need to happen, its an array since we can make many edits [example text]
"edit": [
{
//The Point-FC (g**m.i***************t), what is the derivative of the source (g**m.r****e).
"className" : "g**m.i***************t",
//all fields & Geometry that we want to include in the new Featureclass.
"adds" : [
{
//the attribute of the feature we want to add,
// R****ID & the GlobalID will work as a 'offline relationshipclass'
"attributes":
{
"R****ID": $feature.globalid,
//All the another fields I deleted because of the AVG-law.
},
//The geometry will be the variable 'centroidFeatureR****e' we determined earlier.
"geometry": centroidFeatureR****e
}
]
}
]
} Thank you in advanced
... View more
06-09-2021
04:52 AM
|
0
|
3
|
1132
|
POST
|
Hello, In short: I am working on a Calculation Attribute Rule what should should 2 things: To create a centerpoint from polygon feature; To update all the available fields in a second featureclass when inserted or updatet. The original is a polygon, the second fc is a point featureclass. I did find and tried to use the following blog. But unfortunately this turned out not to be enough to get it working with my current level of knowledge. ArcGis Pro version: 2.7.1 Could you help me out and help me out to create this beautiful product? (Thank you in advanced).
... View more
06-08-2021
01:06 AM
|
0
|
7
|
1370
|
Title | Kudos | Posted |
---|---|---|
1 | 10-26-2021 06:06 AM |