I’m trying to add a custom card above a listview in a contentapp. I want the card to display a message based on some calculations. To do the calculations I need to get the content of the listview and also get data from some fields of the page where the content app is.
The method GetValue has a parameter “parentId” but that seems to be always null
Anyone got any ideas how to do this? Can it be done?
Best regards
Patrik
In v.13, I think this could only be achieved by ‘hacking’ the AngularJS scopes.
People have done that for getting the data of the Document, and is somehow fragile and also worth mentioning not something we recommend.
The recommendation from me would be to upgrade your project to v.17 — The new architecture using Context API enables you to read the data of the Document without trouble (Using Property Dataset Context)
V.17 does thought not provide an extension for this particular spot(as v.13 neither does), but you may be able to inject(Similar to v.13, just need to get into shadow-doms) or wrap the Core ‘collection’-workspace-view in a custom view that appends this in the top, this would properly be the best choice. (Collection is the new term for List-View, and Workspace View is the new term for Content App).