brixxbox Wiki
  • Einstieg und Feature-Übersicht
    • Technische Übersicht
    • Praxisbeispiele
    • Responsive Design
    • Rollen und Rechte
    • Mandanten und Währungsfähigkeit
    • Multi-Language
    • Integrierte KI
    • Integriertes Archiv
  • App Erstellung
    • Design-Cockpit
    • How Tos
      • Custom Grid Column Date Format
      • Create Report REST
      • Telerik Extension Functions
        • Telerik Page Footer Sum
        • Telerik Page Header Sum
      • Printing in LAN
  • Client API Reference
    • Functions
      • addCalendarEventSource
      • addClassToGridRowCell
      • addEventListener
      • addToolbarButton
      • brixxGPT
      • businessBrixx
        • DHL Shiping
          • CreateShipment
          • GetLabel
        • DPD Shiping
          • CreateShipment
        • UPS Shiping
        • Inventory Movement
        • Currency Conveter
        • Datev Export
          • Datev Export SqlDataRead Example
          • Datev Export sqlMainData Example
          • Datev Export sqlGetCounter Example
        • GS1 Code Splitter
        • SEPA Export
        • Diamant Connector
          • Diamant OpenStack
          • Diamant Transaction
          • Diamant CloseStack
      • cancelCalendarChanges
      • callWebHook
      • changeHelpText
      • clearGridSelection
      • cloudPrint
      • cloudQuery
      • closeModal
      • composeEmail
      • createPublicAppUrl
      • copyConfigRecordById
      • createReport
        • ZUGFeRD
      • deleteAttachment
      • deleteConfigRecordById
      • deleteRecord
      • displayRecord
      • downloadAttachments
      • disableGridHyperLinks
      • enableNotifications
      • enableValidator
      • excludeFromReadonly
      • executeStoredProcedure
      • getAttachmentId
      • getAttachmentById
      • getAttachmentByFileName
      • getAttachmentsForCurrentRecord
      • getLastAttachmentByRecordId
      • getBrowserToken
      • getControlUnmodifiedValue
      • getCustomMessage
      • getCustomSetting
      • getCalcDateTime
      • getHtmlElement
      • getDate
      • getCalcDate
      • getFieldValue
      • getSessionToken
      • getUserClaim
      • getConfigRecordAttachmentIdByFileName
      • getSignatureImageBlob
      • getGeoLocation
      • getLabelText
      • globalSearch
      • initAllControls
      • initControl
      • isModal
      • isUserInRole
      • isRowSelected
      • inviteUser
      • localValue
      • loadAndDisplayRecord
      • loadAndDisplayRecordById
      • loadConfigRecordByValue
      • loadConfigRecordById
      • loadRecord
      • loadRecordById
      • logAdd
      • logout
      • markAllControlsAsUnModified
      • messageBox
      • newGridEntry
      • newRecord
      • printBlob
      • print
      • readOnlyMode
      • refresh
      • refreshAttachments
      • refreshDataSource
      • refreshBadges
      • reInitValidation
      • replaceText
      • serverFunction
      • setControlUnmodifiedValue
      • setFieldValue
      • setLabelText
      • setTooltipText
      • setToolbarButtonMode
      • setEnable
      • setVisibility
      • startBrixxbox
      • startMode
      • startScanner
      • showBlob
      • showMessage
      • showAttachments
      • showDiscussion
      • showWikiPage
      • sqlReadValue
      • sqlWrite
      • sqlRead
      • saveCurrentRecordWithoutEvents
      • saveCurrentRecord
      • saveConfigRecord
      • saveStructure
      • setBackgroundColor
      • setFontStyle
      • setFontWeight
      • setGridDefaults
      • setTextColor
      • setFocus
      • setDecimalDigits
      • switchTagControl
      • selectGridRows
      • showRowDetailPanel
      • showRowDetailButton
      • setGridAutoRefresh
      • setGridGrouping
      • showMessageBox (deprecated)
      • showTabPage
      • setFieldUnit
      • takePicture
      • triggerEvent
      • toggleGridSelection
      • unselectGridRows
      • uploadAttachment
      • updateTitle
      • validateInput
      • queryStoredProcedure
      • setValidatorValue
    • Variables
      • userId
      • recordId
      • record
      • isLoadingRecord
    • Controls
      • Accordion
      • AppConfig
      • Badge
      • Button
      • Camera
      • Chart
      • CheckBox
      • ComboBox
      • DateBox
      • DateTimeBox
      • DocViewer
      • FileImport
      • FormGroup
      • FormGroupRow
      • FullCalendar
      • Grid
      • GridConfig
      • GroupBox
      • HorizontalLine
      • HtmlTable
      • HtmlTemplate
      • Image
      • Label
      • MultilineTextBox
      • NumBox
      • TabControl
      • TabPage
      • TextBox
      • LinkLabel
      • RadioButton
      • Report
      • Row
      • Scanner
      • SignaturePad
      • Tag
      • TemplateGrid
      • TemplateGridElement
      • TimeBox
      • Unit
      • WedgeScanner
      • Widget
      • WidgetContainer
      • WysiwygText
    • Events
      • onAppStart
      • onAppInitialized
      • onAttachmentDeleted
      • onAttachmentsShow
      • onAttachmentsHide
      • onChange
      • onCellClick
      • onCellEdit
      • onClick
      • onChildAppClosed
      • onDataTransform
      • onEventClick
      • onEventChange
      • onFileImport
      • onKeyDown
      • onKeyPress
      • onModalClose
      • onMailHistoryShow
      • onRowClick
      • onRecordLoad
      • onRecordLoaded
      • onRecordSave
      • onRecordSaved
      • onRowSelectionChanged
      • onRowCreated
      • onRecordNew
      • onRecordDelete
      • onRecordDeleted
      • onKeyUp
      • onScan
      • onReturnFromModal
      • onSubDataRequest
      • onTabShown
      • onTimeSelected
      • onPictureTaken
      • OnCheckPermissions
    • Tips and Tricks
      • Date and Time
        • The moment.js Library
  • Server API Reference
    • Functions
      • loadConfigRecordById
      • saveConfigRecordById
      • sqlWrite
      • sqlRead
      • sendEmail
      • createReportPdfBlob
      • cloudPrint
      • businessBrixx
  • Configuration
    • Workspace Settings
      • CustomHeaderFooterBackgroundColor
      • CustomInviteText
      • CustomLogoBackgroundColor
      • CustomLogoUrl
      • RecordLockWaitTime
      • WhiteLabeling
    • App Editor
      • Custom HTML Templates
        • jsTree
        • Slider
      • App Editor Properties
        • AddToAttachements
        • AppAltViewName
        • AppAttachments
        • AppColor
        • AppConfigToStartName
        • AppConfigToStartSourceField
        • AppConfigToStartTargetField
        • AppDiscussion
        • AppHistory
        • AppIcon
        • AppMailHistory
        • AppMasterTable
        • AppParameters
        • AppPrefix
        • AppPreviewRecordId
        • AppTitle
        • AttaDocType
        • AttachementFilename
        • AutoDisableOnEdit
        • ButtonStyleClass
        • BlockInputDuringEventExecution
        • CascadeCopy
        • CascadeDelete
        • ChartData
        • ChartData
        • ChartDataJson
        • ChartLabel
        • ChartLabelAxesX
        • ChartLabelAxesY
        • ChartType
        • ComboBoxEditButton
        • ComboBoxListButton
        • ComboboxKey
        • ComboboxMinSearchLength
        • ComboboxMultiselect
        • ComboboxValue
        • ConcurrencyControl
        • CreateMenu
        • CssTemplateContent
        • Data
        • DateTimeUtc
        • DecimalDigits
        • DefaultValue
        • DevMode
        • DisableGridResponsiveness
        • EditAbsoloutGridHeight
        • EditDefineUnit
        • Enable
        • GridAutoRefreshIntervals
        • GridCellEdit
        • GridColumnFilter
        • GridColumnOrder
        • GridFilterVisibility
        • GridFooter
        • GridInlineEdit
        • GridNoHyperLink
        • GridPageSizeVisibility
        • GridRowOrderDragDropParam
        • GridSelectMode
        • GridSortingMode
        • GridToolbarVisibility
        • GroupGridColumns
        • HelpText
        • HiddenGridColumns
        • HideEditButtonColumn
        • HideSelectCheckboxColumn
        • HtmlTableClasses
        • HtmlTableDisablePagination
        • HtmlTemplateContent
        • Id
        • IncludeInGlobalSearch
        • InputMaskRegEx
        • InputTag
        • Label
        • LabelWidthClass
        • LabelWrap
        • LoadRecordOnLeave
        • ManualRefreshOnly
        • NoSpinButton
        • RecordObservation
        • RefersToConfig
        • ReportCulture
        • ReportId
        • RowReorder
        • SearchPrefixes
        • SelectAllOnFocus
        • ServerSidePaging
        • ServerSidePagingIndexColumns
        • SmoothScroll
        • TagValue
        • TextColor
        • ToolTip
        • ValidateInputBeforeExecution
        • ValidatorMessage
        • Visibility
        • WidthClass
        • WysiwygHtmlCleanup
        • WysiwygHtmlFragment
      • Controls
        • grid
        • combobox
    • Template Gallery
      • Extended CRM-System
      • Time Recording
      • Project Management
      • Digital Visitor-Management
      • Data Archive
      • Ticket-System
      • Digital Adressbook
      • Driver's Logbook
      • Order Management
      • Basic CRM
      • 🇩🇪 Erweitertes CRM-System
      • 🇩🇪 Zeiterfassung
      • 🇩🇪 Digitales Besuchermanagement
      • 🇩🇪 Datenarchiv
      • 🇩🇪 Projektmanagement
      • 🇩🇪 Ticketsystem
      • 🇩🇪 Digitale Adressverwaltung
      • 🇩🇪 Fahrtenbuch
      • 🇩🇪 Auftragsverwaltung
      • 🇩🇪 Basis CRM
    • Apps
      • ApiKeys
      • CloudGateway
      • Attachments
      • AuditHistory
      • DevelopmentChangeHistory
      • DocumentTypes
      • Jobs
        • Cron Definitions
      • Menu Editor
      • Reports
      • Roles
      • ServerSideFunction
      • SqlFunction
      • SqlStoredProcedure
      • SqlTrigger
      • StandardDatasources
      • StandardMessages
      • StdSqlEditor
      • Translations
      • UserDashboards
      • Users
      • WorkspaceFirewall
      • WorkspaceSettings
        • CustomInviteEmailContent
Powered by GitBook
On this page
  • brixxApi Functions
  • ==
  • brixxApi Events
Export as PDF

Client API Reference

PreviousPrinting in LANNextFunctions

Last updated 1 year ago

brixxApi Functions

The brixxApi provides a set of functions for each brixxbox. These functions can be used inside brixxbox events, to interact with the brixxbox and modify the behaviour of the application.

App Functions

Field Manipulation

Printing and Documents

Data Storage

Build in Tools

  • composeEmail(emailOptions) // emailOptions is a JSON object, it contains options like to, cc, bcc, text, and subject etc which can be used to send an email.

  • getGeoLocation()

  • showWikiPage(string pageName, bool global) // If global is true, global wiki page is shown. Otherwise workspace wiki page is shown.

  • showDiscussion(bool show) // Default show value is is true.

  • showAttachments(bool show) // Default show value is is true.

  • showMessage(messageOptions) // messageOptions is a JSON object.

  • showMessageBox(messageBoxOptions) // messageBoxOptions is a JSON object.

  • messageBox(messageBoxOptions) // messageBoxOptions is a JSON object.

  • refreshAttachments()

  • getAttachmentById(Number id)

  • getAttachmentByFileName(string fileName)

  • getAttachmentsForCurrentRecord()

  • getAttachmentId(string fileName)

  • getConfigRecordAttachmentIdByFileName(string appName, Number recordId, string fileName)

  • downloadAttachments(downloadOptions) //downloadOptions is a JSON object. It iscludes resquestedIds list and file name for downloaded file.

  • uploadAttachment(blob data,Number documentTypeId, string fileName) // documentTypeId and fileName are optional parameters.

  • deleteAttachment(Number attachmentId)

  • replaceText(string text, additionalReplacement) // additionalReplacement is a JSON object with key value pairs.

  • callWebHook(string url, string message)

  • getCustomMessage(string messageName, params, string targetLanguage) // params is a JSON object.

  • getCustomSetting(string settingName)

  • serverFunction(string funcName, funcParams, options) // funcParams and options are JSON objects and optional parameters.

Business Brixx

  • DhlShiping

    • CreateShipment → Creates a DHL Shipping Label.

    • GetLabel → Shows the shipment Label again.

  • DPDShipping

    • DPD Shipping

Starting brixxboxes

  • startBrixxbox(startOptions) // startOptions is a JSON object with start parameters.

  • addEventListener(string eventName, string controlId,function func) // ControlId is optional parameter.

  • closeModal()

  • isModal()

  • createPublicAppUrl(options) //options is a JSON object.

  • closePublicAppUrl(options) //options is a JSON object.

  • logout()

Date and Time

  • The moment.js Library

Variables

  • userId

  • recordId

  • record

  • isLoadingRecord

  • isInitializing

Controls

  • NumBox

  • TextBox

  • Button

  • CheckBox

  • ComboBox

  • Grid

  • TabControl

  • TabPage

  • Accordion

  • Badge

  • FullCalendar

  • Camera

  • Chart

  • DateTimeBox

  • DateBox

  • DocViewer

  • AppConfig

  • FileImport

  • FormGroup

  • FormGroupRow

  • GridConfig

  • GroupBox

  • HorizontalLine

  • HtmlTable

  • HtmlTemplate

  • Image

  • Label

  • LinkLabel

  • MultilineTextBox

  • Report

  • Row

  • Scanner

  • SignaturePad

  • Tag

  • TemplateGrid

  • TemplateGridElement

  • TimeBox

  • Unit

  • WedgeScanner

  • Widget

  • WidgetContainer

  • WysiwygText

==

  • Common Functions →

  • App Functions →

  • Field Manipulation → Functions which manipulate properties, values or behaviors of a control.

  • Printing and Documents →

  • Data Storage →

  • Build in Tools →

  • Business Brixx →

  • Starting brixxboxes →

  • Date and Time →

  • Variables →

brixxApi Events

The brixxApi Events are used to react on certain events. This way you can customize the behaviour of the brixxbox to your own purpose. Some events will be raised befor the brixxbox executes their own logic for this event. In that case, you can return 'true' to avoid the brixxbox build in event. Otherwise the brixxbox will do its own logic after your event.

  • onClick → When a control is clicked.

  • onRowClick → When a grid row is clicked.

  • onCellClick → When a grid cell is clicked.

  • onChange → When a control content is changed.

  • onRecordLoad → Before a Record is loaded.

  • onRecordLoaded → After a Record is loaded.

  • onRecordSave → Before a Record is saved.

  • onRecordSaved → After a Record is saved.

  • onRowSelectionChanged → After a the selected row of a grid has changed.

  • onRowCreated → Modify a grid row. Apply a color for the row based on its values for example.

  • onRecordNew → After initializing the Form. The new Record is not saved yet but can be modified with initial values.

  • onRecordDelete → Before a record is deleted.

  • onRecordDeleted → After a record was deleted.

  • onChange → After a control value has changed.

  • onKeyPress → When a key is pressed

  • onKeyUp → When a key goes up

  • onKeyDown → When a key goes down

  • onModalClose → When a modal brixxbox app closes.

  • onAppStart → When the app is started but befor it is initialized.

  • onAppInitialized → When the app is initialized onAppStart has happend).

  • onScan → When a code is scanned.

  • onAttachmentsShow → Just before attachments panel opens.

  • onFileImport → When a file is uploaded for import.

  • onReturnFromModal → When a modal child app is closed, the parent will get this event

  • onAttachmentsShow → When the sidebar for attachments opens

  • onMailHistoryShow → When the sidebar for the mail history opens

  • onSubDataRequest → When the subdatasource of a control is requested

  • onChildAppClosed → When a childapp of your app closes.

  • onTabShown → Fires when a tab page is changing to visible.

  • onAttachmentDeleted → Triggers when the user deletes an attachment in the sidebar.

  • onAttachmentsHide → This event occurs when the attachment sidebar gets closed.

  • onDataTransform → The event can be used to transform a datasource line to a calender event.

  • onEventClick → The event occurs the user clicks on one of the events.

  • onEventChange → The event occurs the user moves or modifies an event.

  • onTimeSelected → The event triggers when the users selects a time period in the calendar.

) // Value can be of any javascript value type i.e. string, integer, Date etc.

// Value can be of any javascript value type i.e. string, integer, Date etc.

// visible(default True) and subControlare optional parameters.

// visible(default True) and subControl are optional parameters.

// If used without parameter, refreshes all controls.

// groupConfiguration can either null, undefined or columnId.

// inputDate can be of Date type or a controlId of date/datetime control.

// inputDate can be of Date type or a controlId of date/datetime control and accuracy can be seconds(default), minutes, or hours.

// enable can be true(default)/false.

// If no value is given for unitName then unit will be removed.

// Value can be of any javascript value type i.e. string, integer, Date etc.

// Value can be of any javascript value type i.e. string, integer, Date etc.

// editMode is optional parameter.

// colorName can be "default", "primary", "secondary", "success", "danger", or "warning".

// fontWeight can be normal or bold.

// fontStyle can be italic or normal.

// colorName can be "default", "primary", "secondary", "success", "danger", or "warning".

// Type can be of png(default) or svg.

//eventSource is a JSON Object.

) // Value can be of any javascript value type i.e. string, integer, Date etc.

// Value can be of any javascript value type i.e. string, integer, Date etc.

// visible(default True) and subControlare optional parameters.

// visible(default True) and subControl are optional parameters.

// If used without parameter, refreshes all controls.

// groupConfiguration can either null, undefined or columnId.

// inputDate can be of Date type or a controlId of date/datetime control.

// inputDate can be of Date type or a controlId of date/datetime control and accuracy can be seconds(default), minutes, or hours.

// enable can be true(default)/false.

// If no value is given for unitName then unit will be removed.

// Value can be of any javascript value type i.e. string, integer, Date etc.

// Value can be of any javascript value type i.e. string, integer, Date etc.

// editMode is optional parameter.

// colorName can be "default", "primary", "secondary", "success", "danger", or "warning".

// fontWeight can be normal or bold.

// fontStyle can be italic or normal.

// colorName can be "default", "primary", "secondary", "success", "danger", or "warning".

// Type can be of png(default) or svg.

//eventSource is a JSON Object.

// Id of report control which is to be printed.

// printDoc is a document which is to be printed.

// CreateOptions is a JSON object. It contains options like print, archive, saveFile etc. for report creation.

// additionalValues is a JSON object, it contains values need to be modified in target record.

// options is a JSON object which include properties id, noConfirmationMessage.

// record is a JSON like object.

// procedureParameters and queryOptions are JSON objects.

// procedureParameters and queryOptions are JSON objects.

// Refreshes controlId. If used without parameters, it refreshes all controls with datasources.

// additionalParameters and queryOptions are JSON objects.

// additionalParameters and queryOptions are JSON objects.

Common Functions
inviteUser(string email)
setToolbarButtonMode(string toolbarButtonId, string mode)
addToolbarButton(toolbarButtonOptions)
readOnlyMode(bool readOnly, options)
excludeFromReadonly([])
startScanner(string controlId, scanOptions)
isUserInRole(string role)
globalSearch(string searchTerm)
getDate(Date date)
getUserClaim(string claimName)
getSessionToken()
getBrowserToken()
logAdd()
enableNotifications()
setToolbarButtonMode(string toolbarButtonId, string mode)
addToolbarButton(toolbarButtonOptions)
readOnlyMode(bool readOnly, options)
excludeFromReadonly([])
startScanner(string controlId, scanOptions)
isUserInRole(string role)
globalSearch(string searchTerm)
getDate(Date date)
getUserClaim(string claimName)
getSessionToken()
getBrowserToken()
logAdd()
enableNotifications()
setFieldValue(string controlId, value
getFieldValue(string controlId)
setLabelText(string controlId, string labelText)
initAllControls()
initControl()
setControlUnmodifiedValue(string controlId, string valueToCompare)
getControlUnmodifiedValue(string controlId[[[[markAllControlsAsUnModified|markAllControlsAsUnModified()]]]]
getHtmlElement(string controlId)
setVisibility(string controlId, bool visible, string subControl)
setEnable(string controlId, bool visible, string subControl)
triggerEvent(string eventName, string controlId)
refresh(string controlId)
refreshBadges()
showTabPage(string controlId)
setGridGrouping(string controlId, groupConfiguration)
setGridAutoRefresh(string controlId, Number autoRefreshSeconds )
getCalcDateTime(inputDate, accuracy)
enableValidator(string controlId, string validatorName, bool enable)
reInitValidation()
setFieldUnit(string controlId, string unitName)
setDecimalDigits(string controlId, Number value)
addClassToGridRowCell(eventParameter, columnId, className)
showRowDetailButton(Row, bool show)
showRowDetailPanel(Row, bool show)
clearGridSelection(string controlId)
selectGridRows(string controlId, string columnId, value)
unselectGridRows(string controlId, string columnId, value)
toggleGridSelection(string controlId)
isRowSelected(string controlId, line)
switchTagControl(string controlId, bool editMode)
setFocus(string controlId, bool select)
setTextColor(string controlId, string colorName)
setFontWeight(string controlId, string fontWeight)
setFontStyle(string controlId, string fontStyle)
setBackgroundColor(string controlId, string colorName)
disableGridHyperLinks(string controlId, bool disable)
getSignatureImageBlob(string controlId, string type)
cancelCalendarChanges(string controlId)
addCalendarEventSource(string controlId, eventSource)
setFieldValue(string controlId, value
getFieldValue(string controlId)
setLabelText(string controlId, string labelText)
initAllControls()
initControl()
setControlUnmodifiedValue(string controlId, string valueToCompare)
getControlUnmodifiedValue(string controlId[[[[markAllControlsAsUnModified|markAllControlsAsUnModified()]]]]
getHtmlElement(string controlId)
setVisibility(string controlId, bool visible, string subControl)
setEnable(string controlId, bool visible, string subControl)
triggerEvent(string eventName, string controlId)
refresh(string controlId)
refreshBadges()
showTabPage(string controlId)
setGridGrouping(string controlId, groupConfiguration)
setGridAutoRefresh(string controlId, Number autoRefreshSeconds )
getCalcDateTime(inputDate, accuracy)
enableValidator(string controlId, string validatorName, bool enable)
reInitValidation()
setFieldUnit(string controlId, string unitName)
setDecimalDigits(string controlId, Number value)
addClassToGridRowCell(eventParameter, columnId, className)
showRowDetailButton(Row, bool show)
showRowDetailPanel(Row, bool show)
clearGridSelection(string controlId)
selectGridRows(string controlId, string columnId, value)
unselectGridRows(string controlId, string columnId, value)
toggleGridSelection(string controlId)
isRowSelected(string controlId, line)
switchTagControl(string controlId, bool editMode)
setFocus(string controlId, bool select)
setTextColor(string controlId, string colorName)
setFontWeight(string controlId, string fontWeight)
setFontStyle(string controlId, string fontStyle)
setBackgroundColor(string controlId, string colorName)
disableGridHyperLinks(string controlId, bool disable)
getSignatureImageBlob(string controlId, string type)
cancelCalendarChanges(string controlId)
addCalendarEventSource(string controlId, eventSource)
print(string controlId)
printBlob(printDoc)
showBlob(string controlId, blobData)
createReport(reportControlId, createOptions)
loadRecord(string controlId)
loadRecordById(Number recordId)
loadConfigRecordById(string configName, Number recordId)
deleteConfigRecordById(string configName, Number recordId)
copyConfigRecordById(string configName, Number recordId, additionalValues)
loadAndDisplayRecord(Number keyFieldId)
loadAndDisplayRecordById(Number recordId)
displayRecord(myRecord,string myKeyControlId)
deleteRecord(options)
validateInput()
saveCurrentRecord(string configName, record)
saveCurrentRecordWithoutEvents()
saveConfigRecord(string configName, Number recordId)
newRecord()
newGridEntry(string gridControlId)
executeStoredProcedure(string procedureName, procedureParameters, queryOptions)
queryStoredProcedure(string procedureName, procedureParameters, queryOptions)
refreshDataSource(string controlId)
localValue(string keyName, string keyValue)
sqlRead(string statementName, additionalParameters, queryOptions)
sqlWrite(string statementName, additionalParameters, queryOptions)
sqlReadValue(string statementName, additionalParameters, string columnName queryOptions)