04-17-2023
08:27 AM
- last edited on
05-24-2023
12:00 PM
by
JackLacava
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.
Thanks!
04-18-2023 03:45 AM
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
04-18-2023 03:49 AM
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.
04-18-2023 03:58 AM
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.