Class DBSheetConfig
Helper module for easier manipulation of DBSheet definition
Inheritance
Namespace: DBaddin
Assembly: DBaddin.dll
Syntax
public class DBSheetConfig
Fields
| Improve this Doc View SourceclipboardDataRow
public clipboard row for DBSheet definition rows (foreign lookup info)
Declaration
public static DBSheetDefRow clipboardDataRow
Field Value
Description |
---|
existingName
if an existing DBSheet is overwritten, this is set to the existing DBModifier Name
Declaration
public static string existingName
Field Value
Description |
---|
existingPwd
for DBSheetCreateForm, store the password once so we don't have to enter it again...
Declaration
public static string existingPwd
Field Value
Description |
---|
Methods
| Improve this Doc View SourcecreateDBSheet(String)
create lookups (with dblistfetch) and a dbsetquery that acts as a list-object for a CUD DB Mapper
Declaration
public static void createDBSheet(string dbsheetDefPath = "")
Parameters
Name | Description |
---|---|
dbsheetDefPath |
getEntry(String, String, ref Int32)
fetches value in entryMarkup within XMLString, search starts optionally at position startSearch (default 1)
Declaration
public static string getEntry(string entryMarkup, string XMLString, ref int startSearch = 1)
Parameters
Name | Description |
---|---|
entryMarkup | |
XMLString | |
startSearch | start position for search, position of end of entryMarkup is returned here, allowing iterative fetching of multiple entryMarkup elements (see getEntryList) |
Returns
Description |
---|
the fetched value |
getEntryList(String, String, String, String, Boolean)
fetches entryMarkup parts contained within lists denoted by listMarkup within parentMarkup inside XMLString
Declaration
public static object getEntryList(string parentMarkup, string listMarkup, string entryMarkup, string XMLString, bool fetchListMarkup = false)
Parameters
Name | Description |
---|---|
parentMarkup | |
listMarkup | |
entryMarkup | element inside listMarkup that should be fetched, if empty take whole listMarkup instead |
XMLString | |
fetchListMarkup | if true, take listMarkup elements where entryMarkup was found, else take entryMarkup element |
Returns
Description |
---|
list containing parts, if entryMarkup = "" then list contains parts denoted by listMarkup |
setEntry(String, String)
creates markup with setting value content in entryMarkup, used in DBSheetCreateForm.xmlDbsheetConfig
Declaration
public static string setEntry(string entryMarkup, string content)
Parameters
Name | Description |
---|---|
entryMarkup | |
content |
Returns
Description |
---|
the markup |