clsImportKnowledgeBaseEntry Class |
Namespace: MARIInterface
The clsImportKnowledgeBaseEntry type exposes the following members.
| Name | Description | |
|---|---|---|
| clsImportKnowledgeBaseEntry | Initializes a new instance of the clsImportKnowledgeBaseEntry class |
| Name | Description | |
|---|---|---|
| CardCode |
Business Partner
| |
| Company |
SMALLINT (2) Company
| |
| Content |
Content: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
| |
| Description |
NVARCHAR (254) Description text - mandatory
| |
| Internal |
SMALLINT (2) Internal
| |
| ItemDate |
ItemDate
| |
| ItemType |
SMALLINT (2) ItemType
| |
| KBItemID |
Internal ID of the knowledge base entry INT (4) Unique ID (via MPTAN). In access can be <100000 to align the positions
| |
| KeyWordList |
Place keywords separated by ";" in this fields. Keywords are stored in table KnowledgeBaseEntryKeyWords
| |
| LanguageCode |
LanguageCode internal language id linked to table MPSysKundenSprachen - mandatory. If a default is defined, the default is used.
| |
| Source |
Source: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
| |
| Summary |
Summary: When the string starts with <!DOCTYPE HTML> a simplified html format will be accepted
|
| Name | Description | |
|---|---|---|
| bSaveRSToMDB | (Overrides clsImportBasebSaveRSToMDB(MPInterface, DataRow, DataTable).) |
public int CreateKnowledgeBaseEntry() { clsImportKnowledgeBaseEntry oKBEntry = new clsImportKnowledgeBaseEntry(); oKBEntry.Description = "MS Office Installation Tipp"; oKBEntry.LanguageCode = 100000; //See Table MPSysKundenSprachen.CustomerLanguageID or view MARISysCustomerLanguages.CustomerLanguageID oKBEntry.Content = "Details in English"; oKBEntry.Source = "lorem ipsum"; oKBEntry.Summary = "lorem ipsum"; oKBEntry.Internal = true; oKBEntry.ItemDate = DateTime.Today; oKBEntry.ItemType = clsImportKnowledgeBaseEntry.eItemType.CurrentItem; oKBEntry.KeyWordList = "Office; Installation; Tipp"; // Create first Language Entry if (!oMPInterface.bImportKnowledgeBaseEntry(oKBEntry, clsImportBase.eImportMode.ValidateAndImport)) { // oTimeKeepingLine.oErrors contains all Errors throw new Exception(oMPInterface.oErrors.PrintErrors()); } else { return oKBEntry.KBItemID; } }