Technology Blogs by SAP
Learn how to extend and personalize SAP applications. Follow the SAP technology blog for insights into SAP BTP, ABAP, SAP Analytics Cloud, SAP HANA, and more.
cancel
Showing results for 
Search instead for 
Did you mean: 
0 Kudos


Following my previous blog post, i wanted to point out the most interesting capability made available using Extension Points.

I will show how you can inject some code in your webi DHTML interface. Hopefully this very simple example will be a little "eye-opener" on the potential of this feature for anyone who deals with webi.

Note: Make sure the customization is enabled, please refer to Simply customize your WebIntelligence User Interface.

user_extension("LEFTPANEL",
{
title: "My own custom button",
iconURL: "customize/samples/hello.jpg",
align: "left",        //left, right
targetPage: "customize/samples/Left_Panel/hello.jsp",
appendViewerContextParameters: true
});


 

This will create a new button on the left panel of the report and call a JSP page where we inserted a small javascript message.

Just create the hello.jsp page with the following javascript code:

alert ("Hello world!");

Now, as soon as a user will access this new button, this will call the javascript messagebox alert...Simple isn't it?

And the great news is that you can leverage this JSP with Report Engine SDK (REBEAN) in order to interact with the webintelligence report (note: only available using DHTML viewer)

Now let's look at some real-life examples of application (any other ideas welcome)

- Create your own treeview with Javascript's JQUERY / AJAX that will list the measures and dimensions and replace them dynamically in the report

- Create a form that will insert/update/delete datas from your report.

- Access a third-party application like Google Maps to visualize the locations mentionned in your report.

If you have other ideas/suggestions or questions, maybe we can discuss its feasibility on this blog.

Cheers,

3 Comments