Skip to content

Map picker-Odata Query for retrieving markers #103

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
14 changes: 10 additions & 4 deletions src/en/developer-guide/applications/controls/mappicker.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ author: Jan Losenicky

Map Picker is a Power Apps component.

It can function in two modes - **default** or **show records from fetch xml**.
It can function in three modes - **default** , **show records from fetch xml**, **show records from retrieving Odata query**.

## Default Mode

Expand All @@ -24,6 +24,10 @@ This mode is just for showing markers. You will not be able to output address to

The pcf first tries to show marker location using latitude and longitude attributes. When it is null, it will look on address attribute value and tries to retrieve results from map api. If there is any, it will show the first one.

## Show records from retrieving Odata query

This mode is also just for showing markers. The pcf retrieves records using Odata query parameter and entity name and render it on the map. Pcf will try to show marker based on Attributes we provided in Odata query input, order of retrieving is same as fetch XML, so PCF will first try to make markers trough latitude and longitude if they are null pcf will use address attribute.

## Binding Field

Control can be binded to any field of type SingleLine.Text.
Expand Down Expand Up @@ -52,8 +56,10 @@ Default Map Picker
- Latitude
- Longitude

Retrieve markers from fetch xml
- Fetch XML - Singe line of fetch xml that is used to retrieve records. You can also link entities to get related data.
Retrieve markers from fetch xml or Odata query
- Fetch XML - Singe line of fetch xml that is used to retrieve records. You can also link entities to get related data
--or--
Odata query - Single line of odata query which is used to retrieve records
- Entity Name - Name of entity to be retrieved.
- Latitude Attribute - Name of attribute where the latitude will be stored. Use dot notation for linked entities: **talxis_address.talxis_lat**.
- Longitude Attribute - Name of attribute where the longitude will be stored. Use dot notation for linked entities: **talxis_address.talxis_long**.
Expand Down Expand Up @@ -104,4 +110,4 @@ A text block in a template to display name of account will look like this:
"wrap": true,
"text": "{$Resources(localization/talxis_salesappsdefault):pinDetail.name }: ${$root.name}"
}
```
```