Zum Hauptinhalt gehen

Do you need to use the "Create Feature" activity first before you can use the "Add Features" activity?

Kommentare

2 Kommentare

  • Stefan Schweigert

    Hi Linda,

     

    Using Create Feature allows you to create a feature object using your configured properties for attributes, geometry, and symbol that can be used directly as an input to the Features property in the Add Features activity. There is no requirement to use this activity, but it does make the process easier.

     

    If you are not seeing the new feature on the map and if you are using GVH, you may need to use a Run Command activity with a PanToPoint command with the feature's geometry to pan to it, or a Refresh Layer activity afterwards.

     

    Thanks, Stefan

    0
  • Permanently deleted user

    Thanks @Stefan Schweigert?! I think there was a problem? with the syntax of my json to add a feature. Even when I formatted the json to create a feature, the new record showed nulls for all the attributes. I found someone else who asked a question about feature creation and used his example to edit my syntax. I wish there were more examples or validation or something. I understand the concept of the activity, but it's all the little details that trip me up.

    This was my syntax for attributes and it didn't work (copied from the developers page for creating a feature object according to ArcGIS and the notes from Latitude on creating features.

    =`{

        "OWNER" : "Joe Smith",

        "VALUE" : ${$form1.state.dropdownlist1.value},

        "APPROVED" : true,

        "LASTUPDATE" : 1227663551096

    }`

     

    This was what worked.

    ={'OWNER' : 'Joe Smith','VALUE' : $form1.state.dropdownlist1.value,'APPROVED' : true, 'LASTUPDATE' : 1227663551096}

    0

Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.