XafApplication.FindDetailViewId(Type) Method
Returns the ID of the Detail View which is used for objects of a specified type by default.
Namespace: DevExpress.ExpressApp
Assembly: DevExpress.ExpressApp.v24.2.dll
NuGet Package: DevExpress.ExpressApp
Declaration
Parameters
Name | Type | Description |
---|---|---|
objectType | Type | A string value that represents a business object type. |
Returns
Type | Description |
---|---|
String | A string value that represents the ID of the View used to display objects whose type is specified by the objectType parameter. |
Remarks
Use this method when you need to specify the ID of the View which must be created for the current object type. For instance, when using the XafApplication.CreateDetailView method to create a Detail View, you need to pass the ID of the View to be created. The FindDetailViewId method returns the value of the DefaultDetailViewId property of the Application Model‘s BOModel | <Class> node. This node defines the type passed as the viewId parameter.
You can use the analogous XafApplication.GetDetailViewId method to raise an exception if the appropriate View ID is not found.