Skip to main content
LinkedIn
Copied!

Table of Contents

Nearby cases

The feature “Nearby Cases” is used to view locations of other cases, which are present near the given case. The type of cases to be seen and the range/radius can be set, and once you click on search, based on the casetype and range selected, the cases are visible on a map as shown below. When clicked on the location pin, the details of the case are shown.

There are two main steps involved in this functionality.

  1. Saving the given location by the user into database.
  2. Populating nearby cases, based on the location persisted in the previous step.

    The address is persisted into the index table as shown below. A location parameter is passed to the persist proximity location step.

Sample example of nearby cases feature

  1. Persist proximity location: In this step, we will persist the given location into the index table(Index-Location class in the database), using a declare index, “ProximityLocation”. The location parameter, i.e., the address property which has to be stored has to be passed as a parameter to this step. For example, my first step is manage interview, in which my address property is stored in “.interview.LocationDetails.Location” and this is now passed as a parameter to persist this location into the index table.
  2. Nearby Cases: In this step, the same location parameter is sent likewise in step 1. This step fetches the latitude and longitude values of the given location using a google API. When the end user selects the type of case and the range/radius, a datapage, D_pzFetchProximityCases is run and all the selected cases present in the given range are fetched, they are shown on the map.
Suggest Edit
Did you find this content helpful?

Have a question? Get answers now.

Visit the Collaboration Center to ask questions, engage in discussions, share ideas, and help others.

Ready to crush complexity?

Experience the benefits of Pega Community when you log in.

We'd prefer it if you saw us at our best.

Pega Community has detected you are using a browser which may prevent you from experiencing the site as intended. To improve your experience, please update your browser.

Close Deprecation Notice
Contact us