Skip to main content
.NET 6.0+

ActionBase.DiagnosticInfo Property

Specifies information on an Action. This information is appended to the information on the remaining Actions and their Controllers and displayed via the DiagnosticInfo Action.

Namespace: DevExpress.ExpressApp.Actions

Assembly: DevExpress.ExpressApp.v23.2.dll

NuGet Package: DevExpress.ExpressApp

Declaration

[Browsable(false)]
public string DiagnosticInfo { get; set; }

Property Value

Type Description
String

A string which represent information on the current Action.

Remarks

When building an application, you may need to determine why an Action or Controller is not activated in a particular Window. This assists in finding bugs, and fixing them. For this purpose, the XAF provides the DiagnosticInfo Action. It is available in an application (whether a Windows Forms or ASP.NET Web Forms application), if the EnableDiagnosticActions key in the configuration file’s appSettings section has the True value. If you click it, a dialog window will be invoked. This window provides information on each Controller loaded to the Application Model, Actions and the current Template’s Action Containers.

You can supply custom diagnostic information on an Action. To do this, use the DiagnosticInfo property. Its value will be set for the AdditionalInfo item within the corresponding Controllers | Controller | Actions | Action section (see the diagnostic info snippet below).

<Controller Name="SetPriorityController" 
            FullName="MainDemo.Module.SetPriorityController" Active="True">
  <ActiveList>
    <Item Key="View is assigned" Value="True" />
    <Item Key="Activating is allowed" Value="True" />
    <Item Key="!ViewChanging.Cancel" Value="True" />
  </ActiveList>
  <Actions>
    <Action ID="SetPriorityAction" TypeName="SingleChoiceAction" 
         Category="RecordEdit" Active="False" Enabled="True" AdditionalInfo="Hello!">
      <ActiveList>
        <Item Key="EmptyItems" Value="True" />
        <Item Key="Controller active" Value="True" />
        <Item Key="ObjectType" Value="False" />
        <Item Key="HideActionsViewController" Value="True" />
      </ActiveList>
      <EnabledList>
        <Item Key="EmptyItems" Value="True" />
        <Item Key="ByContext_RequireMultipleObjects" Value="True" />
      </EnabledList>
    </Action>
  </Actions>
</Controller>
See Also