Show TOC

Background documentationFunctions and Views Required to Create an Extension File for Customized Tabs Locate this document in the navigation structure

 

An extension file for SSCE must contain the following functions:

Functions

Description

Example

getSidePaneView()

Returns project name, view name, and UI5 view files

Note Note

All the items and objects must be marked to drag in the CreateContent view. For example, for ImageLayout to be visible in SSCE, you must mark image layout as imageLayout.data("draggable", "true", true).

End of the note.

If you have created a project, Extensiontest, folder Views and UI5 view files (“Radio.view.js”, “Radio.controller.js”) inside the folder Views, then output is CM.Extensiontest.Views.Radio

generateHTML(data)

Process the JSON data and returns html string that is rendered during design time of SSCE. The JSON data is the same data that was provided in the draggable object.

getKey() , getExtensionName ()

Returns string that is same as extension name.

If you have given Extension_test as the name, this function returns "Extension_test".

getMainJSFile()

Returns the same path that is used while saving an extension in Workbench.

Returns "Extension_test/CustomExtension.js"

renderModelDesign(data)

Process the JSON data and returns html string that is rendered during design time of SSCE. The JSON data is the same data that was provided in the draggable object.

is getUtilJSFile()

Use this function to include additional javascript. Returns comma (,) that is separated string of path of JS files.

Returns "Extension_test/extnUtil.js"