Forum Discussion

agent09's avatar
agent09
New Contributor II
2 years ago

Dashboard Extender Event after Selecting Parameter Values

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!

  • JackLacava's avatar
    JackLacava
    Honored Contributor
    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's avatar
      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.

      • JackLacava's avatar
        JackLacava
        Honored Contributor

        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.