Page tree
Skip to end of metadata
Go to start of metadata

Table of contents

  1. Main page
  2. The main components of an Extension Point
  3. The user.js
    1. A closer look at the Custom View definition of the sample
  4. The main structure for a Custom Page
  5. Additional Samples

Additonal Samples

Schedule History

This set of samples basically demonstrate how to retrieve the list of scheduled instances for the document that is currently open.

All the samples in this set will contain the same of the following files:

  • showHistory_mainProcess.jsp
    This contains the main custom code. It uses the Report Engine SDK to retrieve the document/object id and the BusinessObjects Enterprise SDK to retrieve the scheduled instances.
  • wistartpage.jsp
    This is the same wistartpage.jsp that was included in the sample from the Innovation Center. This basically loads the major objects into session. Objects like the IEnterpriseSession (entSession) and the ReportEngines (reportEngines).

Do not forget to add the user_extension() function calls to the user.js. The appropriate user_extension() function calls are located on the Custom Page.

Using "dialogBox"

This sample will display the list of scheduled instances for the document in a Dialog Box.

Link to the sample: https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/20e1cae8-f479-2c10-16be-8e41f7a18d1e
File Description:

  • showHistory_dialog.jsp
    This is the Custom Page that the Menu Item should redirect to. It contains the include files, event listened and a reference to the main custom code to list the scheduled instances.
  • scheduleHistory_dialogBox_Icon.GIF
    This is just the image for the icon that will be added to the toolbar.

Using "inPlace"

This sample will display the list of scheduled instances for the document on the main pane (report pane) of the DHTML View.

Link to the sample: https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/0089c7c7-f579-2c10-f9b4-e731bba1cef5
File Description:

  • showHistory_inPlace.jsp
    This is the Custom Page that the Menu Item should redirect to. It contains the include files, event listened and a reference to the main custom code to list the scheduled instances.
  • scheduleHistory_inPlace_Icon.GIF
    This is just the image for the icon that will be added to the toolbar.

Using "customView"

This sample will display the list of scheduled instances for the document on the main pane of the Custom View.

Link to the sample: https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/a0cb338a-e979-2c10-c0a3-d829833a4aa9
File Description:

  • showHistory_customView_menuRedirect.jsp
    This file is not actually needed. It just contains the user_extension() function calls that should be placed in the user.js.
  • customView_content_showHistory.jsp
    This is the Custom Page that the Custom View redirect to. It contains the include files, event listened and a reference to the main custom code to list the scheduled instances.
  • showHistory_customView_menuRedirect_Icon.GIF
    This is just the image for the icon that will be added to the toolbar.

Using "customView" activated through code

This sample will display the list of scheduled instances for the document on the main pane of the Custom View. The difference between this sample and the previous one is that this make use of a Custom Page that will activate the Custom View.

Link to the sample: https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/00b54e50-f679-2c10-35ae-89af4d79cd71
File Description:

  • showHistory_customView_codeRedirect.jsp
    This is the Custom Page that the Menu Item should redirect to. It contains the include files, event listened and a reference to the custom code to activate the Custom View.
  • customView_content_showHistory.jsp
    This is the Custom Page that the Custom View redirect to. It contains the include files, event listened and a reference to the main custom code to list the scheduled instances.
  • showHistory_customView_codeRedirect_Icon.GIF
    This is just the image for the icon that will be added to the toolbar.

Custom Prompt

This sample will implement a custom prompt for documents that contains the prompt "State:". It will use a combo box containing a list of regions instead of the usually text input. Upon selection of a region, the states associated with that region will be used as the actual prompt value. As an additional requirement, the custom prompt will only be used if the "State:" prompt can accept multiple values.

Link to the sample: https://www.sdn.sap.com/irj/scn/index?rid=/library/uuid/b0a51220-ea79-2c10-8c9f-f3fea9f06ddc
File Description:

  • customPrompts_simple.jsp
    This is the Custom Page that the Menu Item should redirect to. It contains the include files, event listened and a reference to the main custom code to implement the custom prompt.
  • customPrompts_simple_process.jsp
    This contains the main custom code. It uses the Report Engine SDK to retrieve the prompt information.
  • customPrompts.gif
    This is just the image for the icon that will be added to the toolbar.
  • wistartpage.jsp
    This is the same wistartpage.jsp that was included in the sample from the Innovation Center. This basically loads the major objects into session. Objects like the IEnterpriseSession (entSession) and the ReportEngines (reportEngines).

Ted's blog

If you are interested in seeing more samples, I recommend that you take a look at Ted Ueda's blog.

  • No labels