Bi 7.0: Integration of javascript in Webtemplate

Hello,
are there any documentations, howto's or examples how I can use simple javascript in the Webtemplate implemented with WAD? Important is that I am working with Bi 7.0
For example:
How can I access to the value of a variable in the variablesreen and display it in the template?
I know that there are two ways to use javascript: 1. using the Script Web Item or 2. using an external javascript file. But I could not manage it to display the value of the variable in the Template by a javascript function.
Can you give me an example?
Thanks
bertl

Hi,
try this[1].
[1] <http://help.sap.com/saphelp_nw04/helpdata/en/d9/4a853bc623c075e10000000a114084/content.htm>
Regards, Thomas

Similar Messages

  • Integration of javascript libraries with Acrobat Document Level Javascript

    I have a requirement to build a custom SOAP message and process a PDF document as a SOAP attachment sent to a specific endpoint.
    Document level javascript presents a tool that when coupled with a third party javascript library could be used to capture the PDF document and send it as a custom SOAP message built entirely with Javascript.
    Does document level javascript allow for integration with third party libraries like Dojo or the like?
    Any examples available of document level javascript including known third party javascript/ajax libraries?

    Ajax and other JS libraries can't really be used in Acrobat. You can load them, of course, but they're built for JS that runs in web-browsers and will not be of much use in a PDF.

  • Problem integrating own javascripts in a Custom build component

    Hi all,
    I have created an own component and included in the IC WebClient (CRM 2007). The component contains a view with a custom layout implemented directly in the related *.htm page in the respective BSP Application.
    This works great if I just add standard htmlb / thtmlb /... BSP Extensions to this view. But if I try to include javascript into this view things don't work any more. Especially if I try to include scripts loaded from an external file via the script... src= tag.
    This should normally be done in the header of an html page but I am not able to access the real header of the rendered html page in the component's view. So my question is: Are there any BSP Extensions or special tags I could use to integrate own scripts?
    The problem is that the javascript running quite perfect in a standalone BSP Application does not work properly inside the IC WebClient Component with strange JavaScript errors or no errors at all.
    Any help would be greatly appreciated.
    Many thanks.
    Jochen

    Hello Jochen,
    JS in the webclient is possible. SAP does make extensive use of this scripting language.
    If your scripts are important on a global scale you can include them in SCRIPTS.JS of BSP application THTMLB_SCRIPTS.
    I do not know why your scripts on the page do not work. Usually they should when you include them directly in the page. Have a look at component GS_CM in page DocTree.htm. Make sure they do not interfere with all the stuff SAP has put in there.
    My JS coding in WebClient has been limited to two simple functions. This worked fine when put directly on the page.
    cheers Carsten

  • Preserve frame rate when loading one swf into another

    Is there a way to preserve the frame rate of a swf when
    loading it into another swf that plays at a higher frame rate. I'm
    loading some flash ads that mostly run at around 12-15 frames a
    second into a portfolio site that runs at around 40 frames per
    second. All my ads play too fast. The link is:
    www.dg8tal.com/portfolioidea.html
    Thanks!

    As far as I understand it, there is no option to override the
    frame rate designated by the main movie you are loading into. The
    SWF file you are loading always inherits the framerate of the SWF
    you are loading it into. Here are some suggested work-arounds that
    might help:
    1) Lower the frame rate of the main movie on the website that
    you are loading into.
    2) Expand the timelines of the advertisements just for use in
    your portfolio
    3) Put your menu and thumbnails in one HTML frame that can
    then load each item in another HTML frame above it. Since each SWF
    would load on its own, the framerate of your main swf would not
    matter. You would lose your nice resizing effect though unless you
    did some more complicated integration with javascript I imagine.
    I would recommend going with option 2, since that will take
    the smallest amount of work while preserving your overall design.
    However, with the faster framerate, your advertisements would have
    difference performance characteristics that you'll need to assess.
    I'm trying to think of more options, but these seem to be the
    first things that come to mind.

  • ExternalInterface

    Simply, it's not working.
    What happens is PHP and MySQL populate the list of all
    available songs to play. JavaScript creates the playlist when the
    user clicks the songs they want the when the user chooses to play a
    song, the url, artist, and song title are transferred to Flash via
    ExternalInterface.
    The AS works in flash, but not when it's integrated with
    JavaScript.
    Code for the .php file and .as file are provided.
    Thanks for anyone's help.

    OK...
    I want the web coder to be able to have something like this
    in their code
    (javascript)...
    newText = getTheText();
    in the flash file there is a text box with an instance name
    of 'myText'
    What I ultimately need is an easy way of getting 'newText =
    getTheText();'
    to set the variable 'newText' as the text box content.
    Tim
    "kglad" <[email protected]> wrote in message
    news:fb97d8$7b$[email protected]..
    > what's the problem? you can send parameters with the
    call method.

  • Regarding look and feel

    Hi Experts,
           We are building our front end interface for Integrated planning solution using webtemplate ..can somebody give me some General suggestion to improve look and feel (ofcourse without hitting performance). Our BI reports are on Xcelsius(It does not allow input query), so obviously there is a comparison between these two tools..
    Thanks in advance

    We actually took a copy of the SAP standard reporting template to use as it already has a good suite of options.  However, there are certain aspects that are not as relevent for planning (navigation pane since data is already presented at desired level of detail) and other things that are only necessary for a planning query (buttons for planning functions, save, etc.)
    We inserted a few XPATH commands into the standard template that determine if the query is in change mode or not.  With that, we can logically drop the navigation pane or insert extra buttons.  In our case, for planning queries, we create a web template with the same name as the planning query and that template contains nothing more than the buttons that are relevant for that query.
    This way, all queries in our system retain the same look and feel across all applications, and effectively we don't do any web template creation which saves development time.

  • Using Adobe Air Auto Print and Download in Web application

    HI All,
    We need to integration Adobe Air in the MVC4 Asp.net Application and Javascript. We have a requirement to download to the PDF/DOCX file into user selected destination and print it automatically.
    Browser Support : IE, Firefox,Chrome and safari
    Integrated with Javascript/JQuesry
    It would be great any one of you provide the inputs how to integrate adobe air in the web application using javascript to achieve above requirement.
    Send me the email [email protected]

    Adobe has locked out silent printing except by use a privileged JavaScript add to each users system. See the Acrobat JS API Reference for more information.

  • Add a Facebook share option to a portal

    Hi all,
    is it possible to have a Facebook share option integrated "easily" on a WebCenter page? By example, I would like to share a document or article on my portal?
    Thanks ;)
    Using JDev 11.1.1.6 with WebCenter extensions.

    Hi Maxime.
    There isn't integration out of the box with Facebook in WebCenter.
    Facebook integration is JavaScript based on REST API and HTML, use it in your WebCenter Portal like a HTML WebSite.
    Getting started: http://developers.facebook.com/docs/guides/web/
    SDK: http://developers.facebook.com/docs/reference/javascript/
    Regards.
    PD: Oracle WebCenter Sites have integration with facebook.
    Daniel.

  • Javascript Problem for Drill Down Action in SSRS Report when integrated to PPS 2010

    Hi all,
    I have a SSRS report which is integrated to PPS 2010(Performance Point Services) and it is having a drill down action through Go to URL action(I wrote javascript:void(window.open('xxxxx')) to open drill down report in new window).
    This report has 5 parameters and all are multiple valued. Drill down report is opening very well when I open the report form Report Manager for any number of parameters values selected. But when I integrate the same report is PPS and deployed to SharePoint
    then it is working only for 23 parameter values selected in PPS filters. If I select more the 23 values in PPS filters then the drilldown report is not opening.
    But it is working well in Chrome, I verified in IE and Mozilla, both browsers are having problem.
    When I look at Error Console of Mozilla, it is showing a javascript error as "Error: uncaught exception: ReferenceError: window is not defined" but the same report is working well if I select less than 24 filter values.
    Please provide me the solution
    Thanks in advance

    Hi Vasu,
    The issue might occur due to the Microsoft security update MS11-100 which limits the maximum number of form keys, files, and JSON members to 1000 in an HTTP request. Here, I suggest that you modify the Web.config file of the SharePoint site as follows:
    <appSettings>
    <add key="aspnet:MaxHttpCollectionKeys" value="10000" />
    </appSettings>
    If the SharePoint site uses the port 80, the web.config file of the SharePoint site is located in the C:\inetpub\wwwroot\wss\VirtualDirectories\80 folder.
    Reference:
    An ASP.NET request that has lots of form keys, files, or JSON payload members fails with an exception
    If the issue persist, please check whether there are any related errors in the Reporting Services log file which is located in <Drive>:\Program Files\Microsoft SQL Server\MSRSXX.<Instance Name>\Reporting Services\LogFiles.
    Regards,
    Mike Yin
    TechNet Community Support

  • JavaScript onKeyUp() not working in a BSP integrated in SAP GUI

    hi everybody.
    we want to run a bsp application in sap gui using the Javascript based WYMeditor.(http://www.wymeditor.org/) But thought this wysiwyg editor is working fine while testing in a seperate browser window it won't work while integrated in SAP GUI.
    It seems that the editor reacts with the Javascript onKeyUp() method to the user's input and that this won't work while running in SAP GUI because the keyboard events are intercepted by the SAP GUI.
    The BSP is integrated in the GUI using a cl_gui_custom_container control and its SHOW_URL method.
    We would be glad if anyone could help. Thanks in adavance!
    regards,
    Stefan

    hmm... seems that nobody have had such a problem before.
    the strange thing is that the editor works fine when the website is loaded the first time. but when any event is triggered due to the click of a button and the site is loaded again, the editor won't work. and the html-code and javascript is exactly the same!
    so what happens when the eventing (do_handle_event) of the mvc model of the bsp is triggered? i would be glad if anyone would have some ideas.
    Edited by: Stefan Tanck on Oct 31, 2008 10:22 AM

  • Javascript on page (used for OBI integration)

    I have been working from a document posted on MyOracleSupport entitled "Integrating OBIEE with PeopleSoft." The method described is placing a button and an html area on a page and inserting javascript to "push" the button and launch the code that creates a token and opens an OBIEE report.
    I have been stuck on the first piece (inserting the javascript), and "Support" has not been helpful so far.
    The instructions are to add this code to Component PreBuild PeopleCode.
    Local Field &HTMLField;
    &HTMLField = GetField(DERIVED_OBIEE.HTMLAREA);
    &HTMLField.Value = "<script type='text/javascript'> eval(""submitAction_""+document.forms[0].name+""(document.forms[0],'DERIVED_OBIEE_OPRID');"") </script>";
    The author notes that "this sets the initial content of the HTML Are to a script that effectively hits the Refresh Button that then fires the DERIVED_BIEE.OPRID.FieldChange event."
    Both the HTMLAREA and button (OPRID) are at level0 and at the top of the page order, and I have been told that there is nothing in the HTML object to begin with.
    When I open the page, however, all I get is an HTML area that contains the literal code from above. Nothing executes.
    What am I missing?

    Did you set the page field name on properties of the HTML area? In your case you should probably set this to DERIVED_OBIEE.HTMLAREA.

  • Integration Apex and Javascript

    Hi,
    I work with Operational Systems and Oracle Database. In 2007 for particular necessities, I used Oracle Apex and liked a lot of tool. I want to achieve greater potential in my forms using Javascript, but not had success yet.
    Someone of you have didactic models of integration with the library jquery for example?
    Thanks a lot.
    Regis Bavaresco

    Hello Regis,
    >> I want to achieve greater potential in my forms using Javascript, but not had success yet.
    This forum contains tons of stuff regarding JavaScript. Just search for ‘JavaScript’ or ‘AJAX’. A very good example source will be the following, by Carl Backstrom - http://htmldb.oracle.com/pls/otn/f?p=11933:29 . Denes also having a great demo application, containing a lot of examples about using JavaScript with APEX - http://htmldb.oracle.com/pls/otn/f?p=31517:1 .
    >> Someone of you have didactic models of integration with the library jquery for example?
    jQuery will be included in the next version of APEX. It’s a bit premature to expect a didactic models of integration, but the forum also contains several threads regarding jQuey. In addition, the following blog entry, by Tyler, can also help you understand how to work with jQuery - http://tylermuth.wordpress.com/2008/07/16/jquery-datepicker-and-apex/ .
    Regards,
    Arie.

  • Netbeans javascript library  integration in Dreamweaver

    I have configured my site so that it is both a Dreamweaver site and a Netbeans 7.3 HTML project.  This is working fine.
    I can edit and save in both locations.   However, I am confused about the Netbeans Library integrations into Dreamweaver.
    How is this supposed to happen.   In Netbeans there is a large set of JavaScript libraries that are placed in a subdirectoy canlled ../js/libs/....   I am unable to find any linkage to these libraries in the code.  Since the code runs both under Netbeans and Dreamweaver, some linkage must exist.   Help me understand please

    Check if the libraries are in the Assets panel. Read this document for more details
    http://help.adobe.com/en_US/dreamweaver/cs/using/WSc78c5058ca073340dcda9110b1f693f21-7e6aa .html

  • Help need in Webtemplate javascript

    HI Experts,
    i am working on BI7webtemplate which is having more that two querys in one webtemplate. now the problem is i have to apply
    filter. if i navigate from tabs to buttons and buttons to tab.
      i dot know javascript any one please provide javascript code for this
    my idea is:
    if i click button1 javascript should copy all filter values from DP_table into DP_pool.
    Now if click Button2 assign new query to DP_table.
    i need javascript for this.
    Thanks
    DAB

    Hi,
    You don't require a JavaScript for this functionality, this can be achieved using existing BI commands in BI 7.0, try to achieve using BI Commands, performance wise it is better than using JavaScript.  You will also learn the benefits of the BI commands.
    Cheers.
    Ranga.
    Message was edited by:
            Ranga

  • FlashVars/Javascript Integration -- Neither Working

    A client asked to have a short intro swf on his homepage, at
    the end of which is the main navigation for the site. He also wants
    to be able to jump back to the homepage and SKIP the whole intro,
    just go straight to the navigation in the swf. I tried this first
    using flashvars and then using javascript/flash integration, and
    both are giving me problems. Nothing so far has worked on firefox
    mac, only sometimes on ff pc, never in IE and usually in Safari.
    Can anyone tell me what I'm doing wrong??
    here's the flashvars
    version
    here's the javascript
    version
    in the first frame of the swf, i have the following
    code:

    Yes, beer hurts. Obviously my, 'dont write too much because
    people don't like to read' policy was wrong.
    What I want to do is have an intro in the swf that plays when
    you load the page normally, but can also be
    automatically skipped, if say coming from one of the pages
    deeper in the site. I'm sure there's a simpler way to do this, and
    im all ears, but what i tried to do is have a variable inside the
    swf that is basically a boolean for whether or not to skip the
    intro, that is what the
    if(loc == 'nav'){
    gotoAndStop('links');
    is for. In other words, if the variable loc has the value
    'nav' then skip the intro and go right to the navigation menu.
    Now, in order to set the variable i tried two methods, the
    first was to use flashvars/url query (as in
    src="intro.swf?loc=nav"). that can be seen here:
    flashvars/query
    the second attempt was using js/flash integration, which can
    be seen here:
    js/flash integration
    the thing is neither of them are consistently working. hence
    the 'nothing so far has worked' business....does that
    clarify?

Maybe you are looking for