Show TOC

 Adding Menu Entries with JavaScriptLocate this document in the navigation structure

You can insert new entries in the context menu using JavaScript calls.

Features

With the JavaScript function sapbi_addToMenu you can enhance the context menu with additional entries.

The parameters belonging to the above JavaScript function are listed below:

Parameter Description

label

Labeling text in the menu

func

 

JavaScript Function for Processing the Command

You implement this function in JavaScript and use it to execute commands after you have selected the menu entry.

parameter

Free parameter

This parameter is passed to the JavaScript function 'func' and you can evaluate it there as required. The parameter allows you to use a function 'func' for more than one menu entry.

cell_type

 

' ' = No restriction

 

'CHARACTERISTIC' = Characteristic

 

'CHARACTERISTIC_VALUE' = Characteristic value

 

'STRUCTURE' = Structure

 

'STRUCTURE_MEMBER = Structural component

 

'DATA' = Data cell

 

'EXCEPTIONS' = Exceptions item

 

'CONDITIONS' = Conditions item

 

'DOCUMENT_LIST' = Document list item

Context of the entry

If you want the menu entry to appear only in certain contexts and not in all context menus, you can define this with 'cell_type' and 'filter'.

filter

 

Context of the entry

Different values are suitable, depending on the value of 'cell_type':

'CHARACTERISTIC', 'CHARACTERISTIC_VALUE', 'STRUCTURE', 'STRUCTURE_VALUE': Iobjnm

'EXCEPTIONS': Exception ID

'CONDITIONS': Condition ID

'DOCUMENT_LIST': Document ID

See the example under Command Processing

position

 

 

Position of the entry

'TOP' = Before the "normal" entries

'BOTTOM' = After the "normal" entries

The entries are inserted in the order in which they were called up. You can choose whether the entry is to appear before the "normal" entries or after them in the menu. You cannot position the entries in between the "normal" entries.

Data_provider

 

Name of the Data Provider

Name of the data provider (if the entry is to be made only for a specific data provider).

Item

 

Name of the Web item

Name of the Web item (if the entry is to be made only for a specific Web item).