Interface ICustomView
The system entity for a Custom View, which holds the design for a view in the UI
See https://web.lemonedge.com/help/custom-views/ for more information
Inherited Members
Namespace: LemonEdge.API.Entities
Assembly: API.dll
Syntax
[EntityDefinition(EntityID.CustomView, "dbo.LT_CustomViews", "CustomView", LabelColumn = "Name", IsStandingDataEntity = true, HelpURL = "custom-views")]
[DefaultEntityIcon(ImageType.CustomView)]
public interface ICustomView : IBaseEntityWithPermissions, ISetCopier, IShareAcrossAccounts, IBaseEntity, IEquatable<IBaseEntity>, INotifyPropertyChanged, INotifyPropertyChanging, ICloneableAsync, ICanTrackProperties
Properties
Description
A user friendly description of this view
Declaration
[EntityProperty(SQLType.NVarChar, (short)2000, true)]
[EntityDescription("A user friendly description of this custom view.")]
string Description { get; set; }
Property Value
Type | Description |
---|---|
System.String |
EntityTypeID
Indicates which entity you want to design a view for
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false, IsEntityTypeLink = true)]
[EntityDescription("Holds the entity type this view ccan display information for.")]
Guid EntityTypeID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
IconID
The id of a system or ImageID
Declaration
[EntityProperty(SQLType.UniqueIdentifier, false)]
[EntityDescription("The icon for this view.")]
Guid IconID { get; set; }
Property Value
Type | Description |
---|---|
System.Guid |
LoadDynamically
This indicates the system will dynamically load your View into UI client applications immediately.
The alternative is the designer can provide you the actual code for this view.You can incorporate that code in your own DLL and add that as an Add-In to the platform itself using our Add-In Modules.
Declaration
[EntityProperty(SQLType.Bit, false, "0")]
[EntityDescription("Indicates this custom view definition is to be dynamically loaded into the system. When set to false, you can export the code and incorporate into your own addin dll.")]
bool LoadDynamically { get; set; }
Property Value
Type | Description |
---|---|
System.Boolean |
MaxHeight
Optional. Provides a maximum height the controls will take up.Even if the view itself is bigger than this height the controls will not be and will wrap, stack or otherwise conform to this max height. Mostly used when the panel type for the view is a Grid.
Declaration
[EntityProperty(SQLType.Int, true)]
[EntityDescription("Maximum width this view should take up..")]
int? MaxHeight { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
MaxWidth
Optional. Provides a maximum width the controls will take up.Even if the view itself is bigger than this width the controls will not be and will wrap, stack or otherwise conform to this max width. Mostly used when the panel type for the view is a Grid.
Declaration
[EntityProperty(SQLType.Int, true)]
[EntityDescription("Maximum width this view should take up..")]
int? MaxWidth { get; set; }
Property Value
Type | Description |
---|---|
System.Nullable<System.Int32> |
Name
[Key] A friendly uniquely identifying name for this view
Declaration
[EntityProperty(SQLType.NVarChar, (short)500, false)]
[EntityDescription("The unique name of this custom view.")]
[Required]
string Name { get; set; }
Property Value
Type | Description |
---|---|
System.String |
ReplaceCoreView
Provides a list of other views in the system for this Entity Type. You can override any of those views with this Custom View. Whenever the system would load that view, if you've overridden it, then it will load this one instead.
Declaration
[EntityProperty(SQLType.NVarChar, (short)250, true, FriendlyLabel = "Replace System View")]
[EntityDescription("Indicates this view should replace the specified system view, whenever it is referenced in a layout, this view will be used instead.")]
string ReplaceCoreView { get; set; }
Property Value
Type | Description |
---|---|
System.String |