List & Label .NET
combit.Reporting.Web.WebReportViewer Namespace / WebReportViewerController Class / OnProvideFormElements Method
Contains form element data (Key: property "Field Name" if set, otherwise a unique id. Value: the input from the user). Key must be unique. Duplicate keys will lead to the value being overwritten. It is therefore recommended to set the "Field Name" property as a formula with a unique result.
Duplicate keys, which lead to the original value being overwritten in formElements, will be listed inside this object.


In This Topic
    OnProvideFormElements Method
    In This Topic
    This virtual method is called when a project's form element button is clicked in the Web Report Viewer. Override this to work with the user input.
    Syntax
    'Declaration
     
    
    Public Overridable Sub OnProvideFormElements( _
       ByVal formElements As Dictionary(Of String,String), _
       ByVal duplicateKeys As List(Of String) _
    ) 
    public virtual void OnProvideFormElements( 
       Dictionary<string,string> formElements,
       List<string> duplicateKeys
    )
    public:
    virtual void OnProvideFormElements( 
       Dictionary<String^,String^>^ formElements,
       List<String^>^ duplicateKeys
    ) 

    Parameters

    formElements
    Contains form element data (Key: property "Field Name" if set, otherwise a unique id. Value: the input from the user). Key must be unique. Duplicate keys will lead to the value being overwritten. It is therefore recommended to set the "Field Name" property as a formula with a unique result.
    duplicateKeys
    Duplicate keys, which lead to the original value being overwritten in formElements, will be listed inside this object.
    Requirements

    Platforms: Windows 10 (Version 21H2 - 22H2), Windows 11 (22H2 - 25H2), Windows Server 2016 - 2025
    .NET: .NET Framework 4.8, .NET 8, .NET 9, .NET 10

    See Also