C-DEngine 5.105

TheNMIEngine..::..AddSmartControl Method (TheThing, TheFormInfo, eFieldType, Int32, Int32, Int32, String, Boolean, String, Action<(Of <(<'TheFieldInfo, cdeP>)>)>, ThePropertyBag)

Adds a control to a Form

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

Syntax


public static TheFieldInfo AddSmartControl(
	TheThing MyBaseThing,
	TheFormInfo pMyForm,
	eFieldType tType,
	int fldOrder,
	int flags,
	int pACL,
	string pHeader,
	bool RedOnFalse,
	string OnUpdateName,
	Action<TheFieldInfo, cdeP> OnUpdateCallback,
	ThePropertyBag BagItems
)
Public Shared Function AddSmartControl ( _
	MyBaseThing As TheThing, _
	pMyForm As TheFormInfo, _
	tType As eFieldType, _
	fldOrder As Integer, _
	flags As Integer, _
	pACL As Integer, _
	pHeader As String, _
	RedOnFalse As Boolean, _
	OnUpdateName As String, _
	OnUpdateCallback As Action(Of TheFieldInfo, cdeP), _
	BagItems As ThePropertyBag _
) As TheFieldInfo
public:
static TheFieldInfo^ AddSmartControl(
	TheThing^ MyBaseThing, 
	TheFormInfo^ pMyForm, 
	eFieldType^ tType, 
	int^ fldOrder, 
	int^ flags, 
	int^ pACL, 
	String^ pHeader, 
	bool^ RedOnFalse, 
	String^ OnUpdateName, 
	Action<TheFieldInfo^, cdeP^>^ OnUpdateCallback, 
	ThePropertyBag^ BagItems
)

Parameters

MyBaseThing
Type: nsCDEngine.Engines.ThingService..::..TheThing
pMyForm
Type: nsCDEngine.Engines.NMIService..::..TheFormInfo
tType
Type: nsCDEngine.Engines.NMIService..::..eFieldType
fldOrder
Type: Int32
flags
Type: Int32
Binary Flags for the Field: 1= Show content as * (Password); 2= Write Enabled Field (Sends update to Plugin) 4 =Hide from Mobile (RETIRED: Use AddPlatBag(eWebPlatform.Mobile,new nmiPlatBag { Hide=true }); 8 =Hide From Table (RETIRED: Use AddPlatBag(eWebPlatform.Mobile,new nmiPlatBag { HideInTable=true }); 16=Hide From Form (RETIRED: Use AddPlatBag(eWebPlatform.Mobile,new nmiPlatBag { HideInForm=true }); 32=Advanced Editior 64=The OnUpdateName is not on the MyBaseThing but on a Thing referenced by the cdeMID in the records of the corresponding MirrorCache Data Table 128=Do not show this control after second node (i.e. via Cloud) 256=Allow HTML5 Markup in PropertyBag and Value
pACL
Type: Int32
User Access Level of the control - only users with a matching level can see this control
pHeader
Type: String
Title/Label of the Control
RedOnFalse
Type: Boolean
NO LONGER SUPPORTED:Please use SetUXProperty instead. OLD: If the content of the Property in the OnUpdateName is true, the background color of this control will be set to green, else the background will be set to red
OnUpdateName
Type: String
Property to watch for changes. The content of the property will be displayed in this control in the NMI
OnUpdateCallback
Type: Action<(Of <(<'TheFieldInfo, cdeP>)>)>
Fires when the property in the OnUpdateName changes
BagItems
Type: nsCDEngine.Engines.NMIService..::..ThePropertyBag
List of Properties to be set on the control

Return Value