Skip to main content


         This documentation site is for previous versions. Visit our new documentation site for current releases.      
 

Extending a new entity for nearby entity search

Updated on May 6, 2021

Add a new entity apart from the PGP-provided entities, as a part of nearby entity search, in the Nearby locations component.

For example, the AddressList property contains the addresses of a person. While saving the person details, the PersistEmbeddedPage activity (CL:PegaPS-Data-Entity-Person) runs which has the logic to save AddressList in PegaPS-Data-Address table.

    Show new entity as one of the type in nearby cases and entities

  1. In the navigation panel of Dev Studio, click Data types.

  2. Click Data typesOption map.

  3. Click the Records tab.

  4. Click Add record to add a new entity with Field Name / Group as Entity.

  5. Save as NearbyCasesList_Ext data transform and set pyClassName to new entity class when pyLabel is new entity.

  6. Save as FetchProximityEntity report definition (CL:PegaPS-Data-Entity-Facility) into New entity class and remove the Name property from columns.

  7. Create a new data page similar to D_FetchFacilityProximity and call the report definition created in the previous step.

  8. To show a different marker pin, on the map, for the new entity, save as SetEntityMarker data transform into the new entity class and set the MarkerImage property with any binary file.

  9. Save as SetNearbyAddressList_Ext activity, and load the data page created in step 7.

  10. Save as SetNearbyCasesEntitesResult_Ext data transform and append data page results to NearbyCasesEntities property.

Have a question? Get answers now.

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

Did you find this content helpful?

Want to help us improve this content?

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

Pega.com is not optimized for Internet Explorer. For the optimal experience, please use:

Close Deprecation Notice
Contact us