Customizing DashboardViewer may take a lot of time for testing with questionable success.
Alternate approach: Trigger your source control manually.
- create a method to export your changes. example:
#; find actual changes
&SQL(select List(documentname) into :list
where timemodified-now()+1>0 )
- next define an Action (in a KPI) that calls you method
- next define a Control "button" to your main Widget and add this Action to activate your source management.
I admit. It's no an automatic & generic solution as directly inside DashboardViewer (engineering may have a hint howto use it)
but you get the advantage to decide which dashboard you want to manage and when
since not every change in dashboards may need to go immediately to source control
And it's definitely simpler than to do it our of Studio.