Members
(static) objectNamesInTitles :boolean
Shows the object names in titles for debugging
Type:
- boolean
Methods
(static) convertLaunchContainerParams(opts)
- Description:
- Converts CLAPI launchContainer options to core launchContainer options 
 
- Source:
Parameters:
| Name | Type | Description | 
|---|---|---|
| opts | Launch container options | 
Returns:
LaunchContainer options
(static) invokeServerTask() → {Promise.<Window>}
Parameters:
| Name | Type | Description | |||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|
| opts.name | string | The Business Task or Business Entity fully qualified class name | |||||||||
| opts.methodName | string | The method name to invoke | |||||||||
| opts.paramObj | object | The method parameters Properties
 | |||||||||
| opts.showWaitCursor | boolean | Displays wait cursor starting from uiContext dynObject | |||||||||
| opts.uiContext | dynObject | The dynObject source of the wait cursor | |||||||||
| opts.throwDataError | boolean | Optional flag to reject promise when dataset contain errors | 
Returns:
Returns a promise with the output parameter
- Type
- Promise.<Window>
(static) loadScreen() → {Promise.<LayoutObject>}
Example
// dynamically load a frame into an existing window
akioma.swat.loadScreen({
    // frame name to load
    containerName: "<frame name>",
    // into a tabbar's tab frame
    target: eventSource.window.getObject("MyTab")
});Parameters:
| Name | Type | Description | |||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
| opts.containerName | string | The object name to launch | |||||||||||||||
| opts.pages | string | The initial pages to load, for example,  | |||||||||||||||
| opts.target | object | The target object to load the frame into | |||||||||||||||
| opts.view | string | The view name to use for the new repository object (requires target). | |||||||||||||||
| opts.caller | object | The caller object where the container is launched from | |||||||||||||||
| opts.dynGuid | boolean | The dynamic guid. Useful when loading a tab where you could load the same repository object multiple times and the links need to be unique. | |||||||||||||||
| opts.autoAdd | boolean | Automatically add a new record on the resulting screen PrimarySDO datasource. | |||||||||||||||
| opts.fetchOnInit | boolean | If the new repository screen should load its data or not (calls the datasource openQuery). | |||||||||||||||
| opts.repositionTo | string | Positions the PrimarySDO datasource to the SelfHdl given value. Can also be a function call. | |||||||||||||||
| opts.allowMultipleInstances | string | Specifies if allowing multiple screen instances is allowed | |||||||||||||||
| opts.customData | string | object | Information for repositioning the PrimarySDO datasource. Can also be a function call. | |||||||||||||||
| opts.foreignKeyProvider | string | Function call for setting the new record initial values. | |||||||||||||||
| opts.params | any | Properties
 | 
Returns:
Returns a promise with the container object
- Type
- Promise.<LayoutObject>
(static) queryBusinessEntity() → {Promise.<any>}
Example
// query business entity
akioma.swat.App.queryBusinessEntity({
    name:   'Akioma.Crm.MasterData.System.ParameterEntity',
    filter: [{field: 'groupHdl', operator: 'eq', value: 'UserImg'}]
}).done((data) => {
   console.log(data);
}).fail((err) => {
   console.log(err.message);
});Parameters:
| Name | Type | Description | 
|---|---|---|
| opts.name | string | The Business Entity fully qualified class name | 
| opts.filter | object | The KendoUI filter | 
Returns:
Returns a promise with the query data
- Type
- Promise.<any>