Client API Reference
Last updated
Was this helpful?
Last updated
Was this helpful?
The Gebra Suite provides a set of functions for each application. These functions can be used inside events, to interact with the app and modify the behaviour of the application.
Diamant OpenStack
Diamant Transaction
Diamant CloseStack
closePublicAppUrl(options) //options is a JSON object.
isInitializing
The Api Events are used to react on certain events. This way you can customize the behaviour of the app to your own purpose. Some events will be raised before the app executes their own logic for this event. In that case, you can return 'true' to avoid the app build in event. Otherwise the app will do its own logic after your event.
//eventSource is a JSON Object.
//eventSource is a JSON Object.
// enable can be true(default)/false.
// enable can be true(default)/false.
// inputDate can be of Date type or a controlId of date/datetime control and accuracy can be seconds(default), minutes, or hours.
// inputDate can be of Date type or a controlId of date/datetime control and accuracy can be seconds(default), minutes, or hours.
// Type can be of png(default) or svg.
// Type can be of png(default) or svg.
// If used without parameter, refreshes all controls.
// If used without parameter, refreshes all controls.
// 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.
// colorName can be "default", "primary", "secondary", "success", "danger", or "warning".
// colorName can be "default", "primary", "secondary", "success", "danger", or "warning".
// 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 subControl are optional parameters.
// visible(default True) and subControl are optional parameters.
// If no value is given for unitName then unit will be removed.
// 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.
// fontStyle can be italic or normal.
// fontStyle can be italic or normal.
// fontWeight can be normal or bold.
// fontWeight can be normal or bold.
// 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.
// groupConfiguration can either null, undefined or columnId.
// colorName can be "default", "primary", "secondary", "success", "danger", or "warning".
// colorName can be "default", "primary", "secondary", "success", "danger", or "warning".
// visible(default True) and subControlare optional parameters.
// visible(default True) and subControlare optional parameters.
// groupConfiguration can either null, undefined or columnId.
// editMode is optional parameter.
// editMode is optional parameter.
// 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.
// CreateOptions is a JSON object. It contains options like print, archive, saveFile etc. for report creation.
// Id of report control which is to be printed.
// printDoc is a document which is to be printed.
// 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.
// procedureParameters and queryOptions are JSON objects.
// procedureParameters and queryOptions are JSON objects.
// Refreshes controlId. If used without parameters, it refreshes all controls with datasources.
// record is a JSON like object.
// additionalParameters and queryOptions are JSON objects.
// additionalParameters and queryOptions are JSON objects.
// emailOptions is a JSON object, it contains options like to, cc, bcc, text, and subject etc which can be used to send an email.
//downloadOptions is a JSON object. It includes resquestedIds list and file name for downloaded file.
// params is a JSON object.
// messageBoxOptions is a JSON object.
// additionalReplacement is a JSON object with key value pairs.
(int attachmentId, int documentTypeId)
// funcParams and options are JSON objects and optional parameters.
// Default show value is is true.
// Default show value is is true.
// messageBoxOptions is a JSON object.
// messageOptions is a JSON object.
// If global is true, global wiki page is shown. Otherwise workspace wiki page is shown.
// documentTypeId and fileName are optional parameters.
(_connect.BRAIN)
-> Get information about the connected devices
-> Get the version of _connect.BRAIN
-> Send a BxNet command to a device
-> Receive the asked information from a device
-> Send a IxNet command directly to a device
→ Creates a DHL Shipping Label.
→ Shows the shipment Label again.
// ControlId is optional parameter.
//options is a JSON object.
// startOptions is a JSON object with start parameters.
→ When the app is initialized onAppStart has happend).
→ When the app is started but befor it is initialized.
→ Triggers when the user deletes an attachment in the sidebar.
→ This event occurs when the attachment sidebar gets closed.
→ Just before attachments panel opens.
→ When a grid cell is clicked.
→ When a control content is changed.
→ When a childapp of your app closes.
→ When a control is clicked.
→ The event can be used to transform a datasource line to a calender event.
→ The event occurs the user moves or modifies an event.
→ The event occurs the user clicks on one of the events.
→ When a file is uploaded for import.
-> The event occurs when a data cell in a grid has been modified via inline edit.
→ When a key goes down
→ When a key is pressed
→ When a key goes up
→ When the sidebar for the mail history opens
→ When a modal app closes.
→ Before a record is deleted.
→ After a record was deleted.
→ Before a Record is loaded.
→ After a Record is loaded.
→ After initializing the Form. The new Record is not saved yet but can be modified with initial values.
→ Before a Record is saved.
→ After a Record is saved.
→ When a modal child app is closed, the parent will get this event
→ When a grid row is clicked.
→ Modify a grid row. Apply a color for the row based on its values for example.
→ After a the selected row of a grid has changed.
→ When a code is scanned.
→ When the subdatasource of a control is requested
→ Fires when a tab page is changing to visible.
→ The event triggers when the users selects a time period in the calendar.