Zum Hauptinhalt gehen

Convert Geometry point back to original selected address?

Kommentare

8 Kommentare

  • Permanently deleted user

    Update: So I found out I could something along the lines of creating a Session Variable that will store the value, and can be called later on in the workflow.

    However i'm not sure how to do this in the Workflow Designer as there is nothing in the toolbox that jumps out. 

    Any ideas would really be appreciated.

    Thank You!

    Laura

    0
  • Permanently deleted user

    Hi Laura,

    I assume you are using a form to display the possible addresses and a variable to store the value of the address they selected in order to pass it to an activity that would create a geometry point?

    If so, you should be able to just re-use that variable that stores the address they selected (if you don't reassign it at some point), and pass it later in the workflow to the Report. If that variable does get reassigned, maybe you could create a new variable to hold the original value?

    Otherwise, could you provide more information on how you are "converting" the address to a geometry point, and what object type is the address? String? AddressCandidate? Graphic?

    -Victoria

    0
  • Permanently deleted user

    Hi Victoria,

    The variable does get reassigned, so I need to create a new variable to hold the original value.  My problem is, i'm not sure how to go about that.

    Any suggestions would be amazing at this point, i've definitely been staring at it too long.

    Thank You!

    Laura

    0
  • Permanently deleted user

    You should be able to simply create a new variable in the Variables section at the bottom of the Designer window, and use an Assign activity to assign the value of the original variable to the new one. Insert the Assign activity into the workflow at some point before the value of the original gets changed.

    -Victoria

    0
  • Permanently deleted user

    Hi Victoria, 

    I implemented your suggestion, but because in the Assign activity I said the New Object = the Original Object (aka the selected address from the list), it still takes on the reassigned form of the original selected address later when it compiles the report.

    In the Variables, for the New Object, should I put some specific in the Default section? It's currently blank.

    Thank You,

    Laura

    0
  • Permanently deleted user

    Hi All, 

    I still haven't figured this out yet. So if anyone can help, I would really appreciate it.

    I implemented Victoria's suggestion from above, but b ecause in the Assign activity I said the New Object = the Original Object (aka the selected address from the list), it still takes on the reassigned form of the original selected address later when it compiles the report.

    In the Variables, for the New Object, should I put some specific in the Default section? 

    It's currently blank.

     

    Thank You,

    Laura

    0
  • Permanently deleted user

    Hi Laura,

    Could you provide some more information on what your object types are, how you're converting the addresses into Geometries, and how you're adding them to the report?

    If you are just wanting to pass the text of the address, you should be able to create a new variable of type String, and then depending on the type of your Address object, assign newStringAddress = oldAddressObject.ToString(). This will hold just the value of the address text in the string variable, which means it won't be pointing to the same address object and so get changed when the object changes.

    A snippet of your workflow might be helpful to show us what's going on. 

    -Victoria

    0
  • Permanently deleted user

    That fixed it! So fabulous!

    Thank you Victoria! 

    0

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