Skip to Content
author's profile photo Former Member
Former Member

How to include a JavaScript file in a BW Query iView

Hello:

We have a BW iView which access data out of a BW Query. We export them as iView file and import them in to Portal, for integration. Under HTML tab of the BW Web Application Designer, I am editing the object tags, and writing some JavaScript code there, for Client side eventing between a Java iView on the same page and this BW iView.

How to copy the JavaScript code inside the BW iView in to a file and refer it, instead of writing the JavaScript code as inline content ?

This is what I did.

I went in to /sap/bw/Mime/BEx/JavaScript folder on the BW server, and created a MIME object as Text file and added all the JavaScript in to it, and saved it. I could able to edit it and save also. (I could not create the MIME object as javascript file, but only text file). But I could refer this file in the HTML code and invoke some javascript functions out of it. But when I change the javascript file on the BW server, it is not being refreshed, I keep getting the old code results. How to overcome this problem ? Is this process I am doing a approved one ?

Thank you very much,

Prasad Nutalapati.

SAP America, Inc.

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Mar 10, 2004 at 06:47 PM

    Hi Prasad,

    You have the right idea, just the wrong location :). Any custom JavaScript includes as well as icons, JPEGs etc. should be stored in the /sap/public/bw/bex/customer folder. Please use transaction SE80 ('Mime Repository' button) for any work such as creating folders and uploading files.

    Oliver

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 11, 2004 at 04:00 PM

    Hi Heike:

    Sweeeet. Thank you. You are my man !! You helped me once again !!

    I was able to create/change the MIME, (in this case a

    common JavaScript file to be included in all the BW

    iViews), but the changes are not visible. The trick to

    run smicm transaction did the trick.

    Basically I have a question. Why SAP doesn't publish these

    things in the documentation clearly ? Why we should waste

    a lot of time and energy, and finally needs a product

    development person like You and Oliver respond to these

    basic features ?

    May be I am asking non-sense !!

    Thank you again,

    Prasad Nutalapati

    SAP America,Inc.

    Chicago, NW consulting.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.