Forum Discussion
RobbSalzmann
2 years agoValued Contributor II
Your code here is hard-coded to set the load method to TransformLoadMethodTypes.Append on line 42.
Your Radio Button Group is tied to a Bound Parameter. This is what is being updated by the user's selection. Base your decision logic on that parameter, set the api.LoadMethod to the appropriate TransformLoadMethodTypes value.
Something like this:
Dim strLoadMethod as String = BRApi.Dashboards.Parameters.GetLiteralParameterValue(si, False, args.PrimaryDashboard.WorkspaceID, "TestParameter")
api.LoadMethod = TransformLoadMethodTypes.Append
If(strLoadMethod.Equals("Replace"))Then
api.LoadMethod = TransformLoadMethodTypes.Replace
EndIf
Related Content
- 4 months ago
- 7 months ago
- 7 months ago