Dashboard Extender Event after Selecting Parameter Values

agent09
New Contributor II

Hi,

 

Anyone knows what the LoadDashboardReasonType or LoadDashboardActionType after the user selects the parameters for the prompt upon opening the dashboard?

 

I want to put a code after the user selects values for the dashboard parameters (see below) and click OK on the prompt.

agent09_0-1681734402450.png

 

Thanks!

3 REPLIES 3

JackLacava
Community Manager
Community Manager
args.LoadDashboardTaskInfo.Reason = LoadDashboardReasonType.Initialize And _
args.LoadDashboardTaskInfo.Action = LoadDashboardActionType.BeforeFirstGetParameters

Note that the action type has two more states you can work with:

LoadDashboardActionType.BeforeGetDashboardDisplayInfo
LoadDashboardActionType.BeforeSubsequentGetParameters

agent09
New Contributor II

Hi Jack,

Thanks for the response. I have tried to put my code under: args.LoadDashboardTaskInfo.Reason = LoadDashboardReasonType.Initialize And _ args.LoadDashboardTaskInfo.Action = LoadDashboardActionType.BeforeFirstGetParameters but the ModifiedCustomSubstVars dictionary still does not have the value for my parameter during this event.

I am trying to find the event after the user clicks OK on the parameter prompt.

Ah yes sorry, didn't read your post properly.

First, you'll have to set your rule to run on All Actions.

Then, in code, you can check on BeforeGetDashboardDisplayInfo, which should run after  BeforeFirstGetParameters.