powercat-creator-kit
powercat-creator-kit copied to clipboard
[BUG]: Picker control - Documentation is not correct (Fix is provided too)
Describe the bug https://learn.microsoft.com/en-us/power-platform/guidance/creator-kit/picker
The documentation talks about "TagDisplayName" and "SuggestionDisplayName". An s is missing. It must be "TagsDisplayName" and "SuggestionsDisplayName" to work.
To Reproduce
- Create a canvas app
- Add a button with the following code as shown below.
- Add the "tagsPicker" code control.
- Add coll_Tags to the property "items(items)". Add coll_TagSuggestions to the property "Suggestions".
- As you will see, it looks to work (1 tag is shown) except that the tag/suggestions have no display name. Add the extra s as mentioned above will show the tag display names.
ClearCollect( coll_TagSuggestions, { SuggestionDisplayName: "Power Apps" }, { SuggestionDisplayName: "Power Automate" }, { SuggestionDisplayName: "Power BI" } ); ClearCollect( coll_Tags, { TagDisplayName: "Power Apps" } )
Expected behavior I expect tags to have a display name.
Screenshots
Wrong

Good

Desktop (please complete the following information):
Smartphone (please complete the following information):
Additional context A fix is provided here too (see "Describe the bug"). The better fix is imo to update the code so no extra s is needed. A naming without the extra s seems to be more precise imo.
Solution version used: CreatorKitCore_1_0_20220831_1_managed
Thanks for this @formsandflows - the dataset properties are all prefixed with the name of the property - so in this case 'Tags' and 'Suggestions'
@denisem-msft This needs an update to the docs.
@formsandflows This has been fixed in the latest release.