From 91da9d565446a34c6eba977869cc241de17c3183 Mon Sep 17 00:00:00 2001 From: inda-gvozdjar <61481841+inda-gvozdjar@users.noreply.github.com> Date: Thu, 9 Mar 2023 13:58:39 +0100 Subject: [PATCH] Map picker-Odata Query retrieving markers Implementation of Odata Query retrieving markers for showing them on Map. --- .../applications/controls/mappicker.md | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/src/en/developer-guide/applications/controls/mappicker.md b/src/en/developer-guide/applications/controls/mappicker.md index 3c7983da0..0aec466fd 100644 --- a/src/en/developer-guide/applications/controls/mappicker.md +++ b/src/en/developer-guide/applications/controls/mappicker.md @@ -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 @@ -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. @@ -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**. @@ -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}" } -``` \ No newline at end of file +```