C-DEngine 5.105

TheNMIEngine..::..AddFormToThingUX Method (TheThing, TheFormInfo, String, String, Int32, Int32, Int32, String, String, ThePropertyBag)

This method creates an NMI Form and adds it to the Dashboard specified in the first parameter

Namespace:  nsCDEngine.Engines.NMIService
Assembly:  C-DEngine (in C-DEngine.dll)

Syntax


public static TheDashPanelInfo AddFormToThingUX(
	TheThing pOwnerThing,
	TheFormInfo pForm,
	string pClassName,
	string pFormTitle,
	int pOrder,
	int pFlags,
	int pACL,
	string pCategory,
	string OnChangeName,
	ThePropertyBag pPropertyBag
)
Public Shared Function AddFormToThingUX ( _
	pOwnerThing As TheThing, _
	pForm As TheFormInfo, _
	pClassName As String, _
	pFormTitle As String, _
	pOrder As Integer, _
	pFlags As Integer, _
	pACL As Integer, _
	pCategory As String, _
	OnChangeName As String, _
	pPropertyBag As ThePropertyBag _
) As TheDashPanelInfo
public:
static TheDashPanelInfo^ AddFormToThingUX(
	TheThing^ pOwnerThing, 
	TheFormInfo^ pForm, 
	String^ pClassName, 
	String^ pFormTitle, 
	int^ pOrder, 
	int^ pFlags, 
	int^ pACL, 
	String^ pCategory, 
	String^ OnChangeName, 
	ThePropertyBag^ pPropertyBag
)

Parameters

pOwnerThing
Type: nsCDEngine.Engines.ThingService..::..TheThing
The Onwer Thing of this Form
pForm
Type: nsCDEngine.Engines.NMIService..::..TheFormInfo
All the Form Parameter
pClassName
Type: String
Style ClassName
pFormTitle
Type: String
Caption of the Dashboard Icon
pOrder
Type: Int32
If the Dashpanel has multiple forms, this order sorts the forms
pFlags
Type: Int32
1=Show On Local Relay 2=Show on Cloud Relay 4=Hide on Mobile 8=Do not include with ShowAll
pACL
Type: Int32
Access Level for this Form
pCategory
Type: String
Category in the Dashboard this Form will be in
OnChangeName
Type: String
Name of a Thing-Property this form is monitoring
pPropertyBag
Type: nsCDEngine.Engines.NMIService..::..ThePropertyBag
Propertybag with custom properties of the form

Return Value

Returns a GUID of the new Form. Guid.Empty is returned if this function failed