| |
TreeDB; CField; FieldCollection;
|
obout Tree_DB ASP.NET control
Methods
|
| | |
TreeDB
TestConnection()
|
Tests if the connection to the database was set up correctly. Optional
Returns a string with the error message (if any), otherwise it returns "Connection is OK"
string sMessage = oTreeDB.TestConnection();
|
ExecuteEvent()
|
Executes the selected action with the specified data, depending on this.EventType property
This method returns 1 if the operation was successful
Example:
string sResult = oTreeDB.ExecuteEvent();
|
ExecuteEvent(EventTypes eventtype)
|
Executes the selected action with the specified data, depending on argument eventtype.
- Add node: EventTypes.Add
- Edit node: EventTypes.Edit
- Remove node: EventTypes.Remove
- Update level: EventTypes.UpdateLevel
- Move node: EventTypes.MoveNode
This method returns 1 if the operation was successful
Example:
string sResult = oTreeDB.ExecuteEvent(EventTypes.Add);
|
|
|
|
|
CField
SetProperties(string dbFieldName, string dbFieldType)
|
Set DbFieldName and DbFieldType property of additional data. Optional
Example:
oTreeDB.Fields["Address"].SetProperties("Address", "text");
oTreeDB.Fields[TreeDB.StandardFields.ID].SetProperties("NodeID", "numeric");
|
|
|
|
|
FieldCollection
Add(string FieldName, string FieldType)
|
Add additional data field. Optional
Example:
oTreeDB.Fields.Add(Address", "text");
|
Add(string FieldName, string FieldType, string Data)
|
Add additional data field. Optional
Example:
oTreeDB.Fields.Add(Address", "text", address);
|
|
|
|
|
| "You really do have an outstanding support at Obout, which I like very much." |
Rick Langevoort |
|
| | |
|
|
|
|