I’ve got a requirement to create versions of the org chart monthly and archive the older versions. These older versions will need to be able to be rendered easily without manually configuring a new web part.
To make an archive version, I was going to save the current structure from the UPS to a SharePoint list. What I’d like to do is present a list of org chart version to the user, and make the org chart display the chart based on which list (org chart version) is selected.
Is there a way I can pass the list name to the org chart config to use?
I afraid there is no way to change the data source for a chart automatically without setting it up in the Configuration Wizard.
I would suggest to add one more webpart with a list as the data source and just choose there a list that you would like to show at a particulat moment. It will prevent losing settings for the user profiles data source.
In the screenshot below I have shown how to pick up a custom list for using it as the data source in Org Chart:
Yes, what I was hoping to do was be able to dynamically change the SharePoint list in the config as I’ll have several list versions available, but with different names. This solution requires me to manually change the list name in the config.
That seems to have worked! Though I need to clear the cache before the new list shows. Is there also a way to force the chart to clear the cache on load?