Skip to main content

Workflow that searching three different URLs and displaying the results from the three layers,

Comments

6 comments

  • Permanently deleted user
    Hi Majdoleen,

     

    I’m not sure if I understand correctly your question. I think it could be interpreted in 2 ways:

     

    - Search parcels with same criteria across 3 layers

     

    - Search for one parcel that meets criteria of 3 layers

     

    In either way I think result is achievable with one workflow

     

    For first case you could change your workflow by adding as many querytask activities (or any other activity that returns a feature set) as layers that you would like to search. Each individual resulting featureSet can be displayed to the user using SelectFeature activities. You would need to assign same “Collection Name” to all SelectFeature activities and “Combined Mode” = “Geocortex.Workflow.Activities.CombineMode.Replace” to the first SelectFeature activity and leave “Combined Mode” property empty for all the others.

     

    For second case you would need to build a logic to return the parcel that meets criteria in a featureSet and then display it with SelectFeature activity.

     

    I hope this helps.

     

    If I misread your question please post a flow to help to clarify the logic that you would like to implement and/or the workflow code of image above.

     

    Thank you
    0
  • Permanently deleted user
    Dear (https://support.geocortex.com/GSCProfile?communityId=09a6000000008Qu&userId=005600000054tZA&showHeader=false) Francesca Operti ,

     

    I would like to thank you for sparing time in answering my question, I think you got my idea, and to clarify more, if I have a parcel with number=1, Block Number =2, community= Ramallah, I want my workflow to search for this parcel in the layers and display the results from these layers, taking into consideration that this parcel may be exist in one layer only, or two.

     

    In the below link, you will find two workflows, the first one which all fields are required but the second one are optional, we are using the one with optional fields, I am try my best to develop our workflows even I am not a developer, I highly appreciated if you show me how to configure this workflow to cover our needs.

     

    http://www.mediafire.com/file/dd9v1gdfot7iq2z/Parcel+Seach+Workflow.rar

     

    Thank you in advance

     

    Best,

     

    Majdoleen

     

     
    0
  • Permanently deleted user
    Hi Majdoleen,

     

    I reworked a bit your workflow with optional fields. I hope the overall logic still correct.  Instead of having queryTasks that cover every single option I progressively created a string containing the whereClause and then used it for the query task. I think this is more maintainable in case you need make changes and easier to debug. I added an alert with the where clause string just for debug purpose ... once that you are happy of the result obviously it can be removed.

     

    Copy code below into a notepad and save it with name and extension of your workflow (RegisteredParcel_all feilds are optional.xaml). You can then open it with workflow designer.

     

    Please test it properly because I had to write blind code and I could not test it.

     

    If you need to have a workflow with all mandatory fields I think you could just extend this workflow:

     

    Add additional argument that tells you if it allows optional parameters, duplicate the form activity and make one with mandatory fields and the other one with optional and use the argument to call the right display form activity. From ConfigureWorkflowContainer activity onwards the workflow should be the same.

     

    Please let me know if you need more info or help.
    0
  • Permanently deleted user
    Sorry, I could not copy workflow here: too big.

     

    See compressed file at address below.

     

    http://www.mediafire.com/file/e17ofsnyb6s82t4/RegisteredParcel_all+feilds+are+optional_F.zip

     

    Thank you
    0
  • Permanently deleted user
    Hi Majdoleen,

     

    Was the workflow that I posted what you were looking for?

     

    Thnak you
    0
  • Permanently deleted user
    Dear Francesca,

     

    Sorry to be late, I just have a look on your workflow, and it is very helpful.

     

    Thank you so much, really appreciate your effort, it was very helpful. Thank you again

     

     
    0

Please sign in to leave a comment.