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.
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
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