Show TOC

Background documentationSource Code Locate this document in the navigation structure

 

You can use this tab page to view the generated html source code for the created dashboard. You can append the existing source code with additional CSS or Javascipts from the SAP MII Workbench. The Javascripts are added to the generated source code in the section that is marked for user-entered script. When you choose Edit, the entire source code area is split into two parts:

  • Left (or upper) part represents the generated HTML source code which is not editable

  • Right (or lower) part represents the hook points that can be edited. This section is further split into two areas: custom code and Script Assistant. In custom code area, you can add additional code that must be available at runtime. You can use any objects that are created in the generated code area or the available APIs to modify the behavior of the objects at runtime. In Script Assistant, you can add function calls that are available for each object type. For more details, see Script Assistant.

You can undo, redo, or reset the changes by choosing the relevant buttons. You can change the layout view by choosing Switch View.

Activities

  1. For the selected dashboard, choose   Source Code   Edit  .

    The screen displays the uneditable and editable source codes.

  2. To add a CSS or Javascript file, choose Add Include(s). Browse or enter a file in File Path field. Choose OK.

  3. You can choose methods or queries or methods from the Script Assistant tab and choose Insert.

    The selected method, applet, or query is displayed in the Add Custom Code box.

  4. Choose Apply.

    The content is added in the <script></script> tag within the section marked as "Your code starts here" and "Your code ends here".