Skip to main content

Setup Dynamic Dashboard

  1. Select assembly CalcByFreq.
  2. Select file DynamicDashboardSvc.vb in the Services folder.
  3. Search for FIX 1.

alt text

  1. As described in the comment underneath “FIX 1”, uncomment lines containing code and fix them by replacing the template REPLACE_WITH_CORRECT_FUNCTION with the actual api call GetDynamicComponentsForDynamicDashboard (use IntelliSense to complete to help avoid typos).
'Fix 1
'Fix as necessary
Dim comps AS WsDynamicComponentCollection = api.GetDynamicComponentsForDynamicDashboard(si, _
workspace, dynamicDashboardEx, _
String.Empty, Nothing, _
TriStateBool.Unknown, WsDynamicItemType.Unknown)
  1. Apply changes for FIX 2, in this case using the api method GetComponentUsingBasedOnName and the Embedded Component name embDBF.
'Fix 2
'Fix as necessary
Dim embComp AS wsDynamicDbrdCompMemberEx = comps.GetComponentUsingBasedOnName("embDBF")
  1. Apply changes for FIX 3. Use IntelliSense to locate the EmbeddedDashboardName property of the component, which we will manipulate.
'Fix 3
'Fix as necessary
embComp.DynamicComponentEx.DynamicComponent.Component.EmbeddedDashboardName = dashboardName
End If
' return all components
Return comps

  7. From OnePlace, expand Jan and select MyProcess.Import. A (dynamically defined) dashboard should display.

alt text

note

EXERCISE COMPLETED! 🎉 Stop here, or continue on to Exercise 3.