C-DEngine 5.105

TheNMIEngine..::..AddNewWizard Method (TheThing, Guid, String, ThePropertyBag, Action<(Of <(<'TheThing, TheClientInfo>)>)>, Action<(Of <(<'TheThing, TheClientInfo>)>)>)

Adds a new Wizard to the NMI Model

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

Syntax


public static cdeConcurrentDictionary<string, TheMetaDataBase> AddNewWizard(
	TheThing pBaseThing,
	Guid pTableReference,
	string pTitle,
	ThePropertyBag pPropertyBag,
	Action<TheThing, TheClientInfo> pB4InsertCallback,
	Action<TheThing, TheClientInfo> pAfterInsertCallback
)
Public Shared Function AddNewWizard ( _
	pBaseThing As TheThing, _
	pTableReference As Guid, _
	pTitle As String, _
	pPropertyBag As ThePropertyBag, _
	pB4InsertCallback As Action(Of TheThing, TheClientInfo), _
	pAfterInsertCallback As Action(Of TheThing, TheClientInfo) _
) As cdeConcurrentDictionary(Of String, TheMetaDataBase)
public:
static cdeConcurrentDictionary<String^, TheMetaDataBase^>^ AddNewWizard(
	TheThing^ pBaseThing, 
	Guid^ pTableReference, 
	String^ pTitle, 
	ThePropertyBag^ pPropertyBag, 
	Action<TheThing^, TheClientInfo^>^ pB4InsertCallback, 
	Action<TheThing^, TheClientInfo^>^ pAfterInsertCallback
)

Parameters

pBaseThing
Type: nsCDEngine.Engines.ThingService..::..TheThing
Owner Thing of the Wizard
pTableReference
Type: Guid
Guid of the Table that contains the defDataSource for the Wizard
pTitle
Type: String
Title of the wizard
pPropertyBag
Type: nsCDEngine.Engines.NMIService..::..ThePropertyBag
Control Properties of the Wizard
pB4InsertCallback
Type: Action<(Of <(<'TheThing, TheClientInfo>)>)>
A callback that is called right before the new record would be inserted in to the StorageMirror of the Table referenced by the TableReference. If the cdeMID of the "TheThing" parameter is set to Guid.Empty, the new record will NOT be inserted to the StorageMirror
pAfterInsertCallback
Type: Action<(Of <(<'TheThing, TheClientInfo>)>)>
A callback that is called after the new record was written to the StorageMirror and RegisterThing was called. This does NOT garantee that the instance of TheThing object was completely initialized!

Return Value