Forum Discussion
sameburn
8 months agoContributor II
To resolve parameters at runtime for all users, please consider using a DashboardExtenderFunctionType.LoadDashboard function (DashboardExtender). There are lots of examples in Golfstream. That is a generic error that states that one of your parameters is not resolved in your logic. So you either need (a) null handling in your logic (which is best practice) and / or (b) LoadDashboard logic when your dashboard is invoked e.g. setting parameter values as defaults e.g.
Select Case args.FunctionType
Case Is = DashboardExtenderFunctionType.LoadDashboard
If args.FunctionName.XFEqualsIgnoreCase("OnLoad") Then
'Implement Load Dashboard logic here.
If args.LoadDashboardTaskInfo.Reason = LoadDashboardReasonType.Initialize And args.LoadDashboardTaskInfo.Action = LoadDashboardActionType.BeforeFirstGetParameters Then
Dim loadDashboardTaskResult As New XFLoadDashboardTaskResult()
loadDashboardTaskResult.ChangeCustomSubstVarsInDashboard = True
loadDashboardTaskResult.ModifiedCustomSubstVars.Add("Param_Account", "AccountName")
Return loadDashboardTaskResult
End If
End If
End Select
Related Content
- 12 months ago
- 4 months ago