MFilesSamplesAndLibraries icon indicating copy to clipboard operation
MFilesSamplesAndLibraries copied to clipboard

ComplexConfiguration doesn't load custom dashboard by default

Open tbeest opened this issue 1 year ago • 2 comments

The ComplexConfiguration VAF example includes a VaultApplication.Dashboard.cs, yet loads the basic Application Name/Version/Publisher text by default. image

Including the following code within the VaultApplication class will load the dashboard, though I am left to wonder if that is the intended way:

public override string GetDashboardContent(IConfigurationRequestContext context)
{
	return GenerateDashboard();
}

image

tbeest avatar Dec 14 '23 07:12 tbeest

Definitely going to apply the "bug" label to this, as I can't see the reason this would be like this unless it were by accident.

That said: early next year we will be looking at the samples and libraries, so it is possible that we'll fix this as part of that wider work, rather than individually.

It is only a couple of lines as a change though, if someone wants to submit a PR that includes it.

CraigHawker avatar Dec 14 '23 16:12 CraigHawker

I could submit a PR, but what I wonder if this is the right override to include.
In this forum post you mention that GetStatusDashboardRootItems or GetApplicationOverviewDashboardContent should be overridden, rather than the GetDashboardContent I use above.

As is it is not entirely clear to me which to use when.

tbeest avatar Dec 18 '23 07:12 tbeest