Macro data source and universal viewer integration

Quang Lai asked on February 2, 2020 22:18

I'm using a macro data source to get external hierarchical data in the form of an ArrayList, and want to connect it to a universal viewer (UV). But nothing is being shown on the page except for the UV's HTML envelope before/after bit. I put debugging information in my macro and I am getting data - it just doesn't seem integrated with the UV control. I've used UV with custome query before and that's worked great. I don't see the column mapping properties (ID, ParentID, Level, etc) in the UV control vs the UV with custom query control.

I see this documentation on UniView: https://docs.kentico.com/k11/references/kentico-controls/generic-controls/uniview#UniView-Displayingdatausinghierarchicaltransformations but I'm hoping that I don't need to create a custom web form for this.

Recent Answers


Dat Nguyen answered on February 3, 2020 00:03

See if this applies to you:

Delaying the resolving of web part macros

If that does not help you, can you share the macro and how you're using it as a data source in the UV? I'm not sure what you need to do until I see exactly what you're doing.

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on February 3, 2020 14:58

I'd recommend you to implement custom data source web part that retrieved data from third party and passes to UV. Here are some ideas of how you could get it done.

0 votesVote for this answer Mark as a Correct answer

Quang Lai answered on February 3, 2020 19:41

Thanks @Dat, unfortunately the delay did not help. The macro gets store locations from an external API, stores it in an ArrayList, and on the frontend, I would like to display the data points in alphabetical groupings - thus using the hierarchical transformations and universal repeater. I've done similar things before successfully, but only when it's a custom query (Universal viewer with custom query). Seems like using a custom macro data source loses some of the mapping magic?

@Roman: did you forget to include some links?

0 votesVote for this answer Mark as a Correct answer

Roman Hutnyk answered on February 3, 2020 20:01

Indeed, I’ve missed a link. Here you go: https://bitsorchestra.com/idea/Feb-2017/Cloud-Data-Source

0 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.