Skip to main content
Version: 4.2.1

Parameters

Parameters are values that are passed into a function, or method to provide input data. These parameters can be created in the dashboard definition from its designer, and assigned from the web dashboard component programmatically.

Example

The following example demonstrates how to assign the parameter values programmatically:

ParameterItems parameters = new ParameterItems();
parameters.Add(new ParameterItem
{
Name = "UserId",
Format = InfoArch.Common.Core.Structures.Enums.DataType.Numeric,
Value = 2
});

DashboardViewModel viewModel = new DashboardViewModel(...);
viewModel.SetParameters(parameters);
...
viewModel.LoadInitialConfiguration();
note

The LoadInitialConfiguration() method must be after the parameter's assignment throughout the SetParameters method.