Zum Hauptinhalt gehen

Example of or help a workflow that has a spatial aspect to it

Kommentare

4 Kommentare

  • Permanently deleted user

    Thank you John.

    I am going to work on this. I am very new to all of this so it is going to take me awhile. Thank you so much for the help. This is great. I will keep you posted.

    I am having an issue with another workflow. It is basically the Search by Schools workflow, but instead of using Zip Codes, I am using Electoral Wards. I have the work flow developed and it looks like it should work. Infact I can get as far as selecting a Ward and retrieving the schools within the ward, but when I click on a school or click on the search button I get this odd error Message. I have attached an image of the error message. I am not sure what to do now. Everything Points to the workflow executing properly until I go to select the schools that appear in the drop down list...or click on search.

    I can send you the link to my live site where you can see what I mean. I am also going to post this on the forum.

    Thanks for your help.

    /customer/servlet/servlet.FileDownload?file=00P6000000elzrlEAA

     

    0
  • John Nerge

    The workflow error message is telling you there's something wrong with step 1:33 Assign. What I usually do is rename each of my activities so that I can tell exactly which one it is that breaks. Another good debugging method is to put alerts into your workflow so you can tell that it succeeded up to the points where you put them.

    0
  • Permanently deleted user

    Hi John,

    Thanks for getting back to me. I have isolated the code that I am having an issue with, I just wish i could see what is wrong with it.

    this is what I see adn this is where the alert stops me: 

                                <InArgument x:TypeArguments="x:String">["WARD="+Ward.ToString()+"'"]</InArgument>

    My variables are as such: (hard to see, but the Ward variable is Object.

    I am at a loss! lol!

    /customer/servlet/servlet.FileDownload?file=00P6000000em1NPEAY

     

    0
  • Permanently deleted user

    Hi LJohnstone

    Are you sure that Ward is actually being set to something. Odds are that Ward is actually null and therefore will give issues with the .ToString

    You could probably drop the () off the .ToString also.

    How are you setting Ward?  (Setting  as compared to declaring)

    John, I agree with the use of the Alerts. Problems arise at times when using that strategy due to Alert being a Client-side activity and there may be variables in scope at the time that the Alert that is used that is not readily serialized on the Server-side such as DataTables. When going from Client-side to Server-side and vice versa all variables must be packaged up for transmission to the 'other side'

    Regards

    Ralph

    PS this thread should probably end here and continue here: https://support.geocortex.com/SupportForums/EditPost.aspx?thread=57662&forumid=20&mid=2&pageid=0&pagenumber=1 since it is effectively the same topic.

    0

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