Documents 5.0d Client SDK
Version: 5.0d, Copyright: 2016-2018 otris software AG
Examples for using the Documents Client SDK
DocumentsContext
Version: 5.0d, Copyright: 2016-2018 otris software AG
The universal interface for user-exits, gentable and gadgets. It includes opening of dialogs and navigation to folders, files, the extended search other etc. Additional interfaces are available via the UserContext, FileContext and the GentableContext.
UserContext
Version: 5.0d, Copyright: 2016-2018 otris software AG
The UserContext provides access to information related to the current user like the used language, login name, accessProfiles and custom properties.
FileContext
Version: 5.0d, Copyright: 2016-2018 otris software AG
The FileContext provides general information about a document, the possibility to execute scripts, control the edit mode and gives access to various GUI functions like get/set field values, change the color of fields, change the focus to a specific field etc.
documents.sdk.exitRegistry.registerFileFieldExitCallback("crmAccount", "crmCountry", function(documentsContext, options) {
//get the FileContext
var fileContext = documentsContext.getFileContext();
//get the value of the field "crmCountry"
var country = fileContext.getFileFieldValue("crmCountry");
var scriptParams = {
country : country
};
//execute the script "countryScript"
var region = fileContext.executeScript("countryScript", scriptParams);
//set the return of the script as options of a select menu
fileContext.setFileFieldOptions("crmRegion", region, { 'keepSelected' : false });
});
GentableContext
Version: 5.0d, Copyright: 2016-2018 otris software AG
The GentableContext provides full access to the GentableGridModel, GentableGridColumnModel and the GentableGridRowModel. It also provides basic functions like copyRow, moveRow and resetSelection.
ExtendedSearchContext
Version: 5.0d, Copyright: 2016-2018 otris software AG
The ExtendedSearchContext provides access to the Extended Search Dialog and gives access to various GUI functions like get/set field values, change the color of fields, change the focus to a specific field etc.