Javascript Functions in WAD

Hi all,
Could anyone tell me about all the javascript functions we can use in WAD?
For exp: "<i>getElementById</i>"
Thanks in advance,

Hi,
Thanks for the reply,but i found some functions which arent of javascript while searching in SDN (/thread/189522 [original link is broken]); The functions are as follows.
So what i am looking for is the list of the functions like:
<b>SET_SELECTION_STATE_BY_BINDING</b>
<b>EXEC_PLANNING_FUNCTION</b>
<b>SET_VARIABLE_STATE</b>

Similar Messages

  • WAD : Call Javascript Function only on Initial Load

    Hi
    I need to replicate the functionality found in the web template parameter ACTION_BEFORE_FIRST_RENDERING in a Javascript function. I need to to do this in order to read a querystring parameter, and then perform actions based on that querystring parameter.
    Is there a way to either call a function from the ACTION_BEFORE_FIRST_RENDERING command, or how do I call my Javascript function only the 1st time the page is loaded?
    I can call the Javascript function from the body onLoad event, but that results in the function being called every time the page loads, which is not what I want ... I only want the function called the 1st time the page is loaded.
    Cheers,
    Andrew

    Seems you can use this parameter to check :
    sapbi_page.m_requestIdValue
    The first time a page is loaded, that value is 1. Thereafter, it increases. I can therefore put that check in my onLoad function, and call the stuff I need if it is 1, otherwise leave the function.
    Cheers,
    Andrew

  • Write javascript function in the mime repository

    Hey all,
    I Wrote a javascript functions inside the WAD html, and it works great.
    Now I want to distribute this code to many WAD's.
    I belive that the right way is to move the code to the mime repository and call it from the WAD's.
    How can I Call a function in a file.js file that exists in the se80?
    Thanks in advanced
    Hagai

    Try thowing this line in your <head> tag:
        <script language="JavaScript" src="/sap/bw/Mime/Customer/JavaScript/myJSFile.js">
          <!-- { } -->
        </script>
    When you refer to your javascript, just use
    <script type="text/javascript">
    //Javascript here
    </script>
    There are also caching issues when using javascript.  After you make a change to your file, use TCODE smicm.  In TCODE SMICM, from the file menu... Goto->HTTP Server Cache->Invalidate->Global in System.  This will invalidate the cache so you can see your new changes.
    Cheers,
    -Brendon
    Message was edited by: Brendon Lipchen
    Message was edited by: Brendon Lipchen

  • Print function in WAD

    Hi,
    I want a Java script for Print PDF functionality in WAD.
    Please help me.
    Thanks,
    Ravi.

    You do not need to write custom Javascript for enabling PDF printing for a web report. Two steps are required for this activity -
    a) In the WAD, drag Context Menu web item and set the properties for 'Print Version' ON. 
    b) Test if the Adobe Document Service (ADS) is running on the BI system.  To do this, go to SE38 and execute program FP_PDF_TEST_00 to test the connection or, use FP_TEST_00 in 'Print Preview', you will be able to see the PDF print preview which means the service is on.
    When the report is executed, you can access the print service through the context menu to convert the report into PDF format and save/print from there.
    Hope this helps (pls award points if useful).
    Ramesh

  • JavaScript function which fetches return_value from List of Values

    Hi,
    I have created List of Values named "NICKS". I want to write JavaScript function "get_workers_fullname(nick)" which returns display_value from List of Values. The parameter of function is return_value of List "NICKS".
    I am new with this and don't know how to handle this case.
    Please help me.

    Hi,
    The LOV, I mean is the item in Application's Shared Components. I don't mean the visible SelectList on the page.
    This is what I found in ApEx's help: "A List of Values can be referenced by page items as well as report fields. It controls the values displayed and limits the user's selection. Lists of Values can be static (based on values you enter) or dynamic (based on a SQL query)."
    I'd like to access values in such LOV from JavaScript. I am not sure it is possible.
    Cheers,
    Tom.

  • Passing value from javascript function to servlet

    Hello everybody,
    i need to pass parameter from javascript function to servlet.
    what i wrote is :
    function callPopulateServlet(t)
    var h =document.NewRequest.services;
    var y = t.selectedIndex;
    alert(h.options[y].value);
    var id=h.options[y].value;
    <%session.setAttribute("id",id);%> // am getting error at this point
    document.NewRequest.submit();
    with this id am quering values from database through servlet.
    any body knows plz help me.
    thanks,
    anil.

    this is the error am getting
    Stacktrace:
         org.apache.jasper.compiler.DefaultErrorHandler.javacError(DefaultErrorHandler.java:85)
         org.apache.jasper.compiler.ErrorDispatcher.javacError(ErrorDispatcher.java:330)
         org.apache.jasper.compiler.JDTCompiler.generateClass(JDTCompiler.java:435)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:298)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:277)
         org.apache.jasper.compiler.Compiler.compile(Compiler.java:265)
         org.apache.jasper.JspCompilationContext.compile(JspCompilationContext.java:564)
         org.apache.jasper.servlet.JspServletWrapper.service(JspServletWrapper.java:299)
         org.apache.jasper.servlet.JspServlet.serviceJspFile(JspServlet.java:315)
         org.apache.jasper.servlet.JspServlet.service(JspServlet.java:265)
         javax.servlet.http.HttpServlet.service(HttpServlet.java:803)

  • How to pass value to pop up window using javascript function?

    I am not sure how to do this, I want to open new window from existing form,This is Mod/PLsql for consists some javascript functions also. When I am clicking on new window in form then new form should open with results of value entered,but new window form is opening with main page :( , not able to get text box value from parent form. How to call textbox input value in popup window from parent window using javascript?
    currently I'm using following code:
    HTP.p('<script type="text/javascript">
    function pop_up5()
    var l_url=window.opener.document.getElementById("p_single_store_pc").value;
    window.open(l_url, '''', ''fullscreen=no, scrollbars=1'');
    </script>' );
    Edited by: user11970612 on Jun 14, 2012 5:02 AM

    this is probably due to the Javascript code and not a "real link" to another page... I don't know if the null is due to the Javascript...
    But if you really really want to use javascript instead of a ... you can pass the location of the url with JSP (on your main page) as a parameter to the open window... (...) u can put instead of main.jsp <%= request.getServerName()+request.getRequestURI() %>
    the value <%= ... %> will return something like test.com/html/main.jsp
    Hope this helps.

  • How can I have a backing file call a JavaScript function?

    I have a Weblogic portal with a JSP portlet. The portlet has a backing file. How can I get the backing file to call a JavaScript function in my portlet?
    thanks

    Hi
    your questions are not correct because you are mixing up server side operations with client side operations.
    First server side code executes then the page is sent to the browser , then any javascript executes on the browser. So asking for javascript to be called from backing file (server side) doesn't make sense or asking for javascript to read a parameter doesnt exactly work either.
    However in your server code suppose you have a variable action in the request that you want javascript to know then in your JSP you would add something like
    <script type="text/javascript">
    var action = '${requestScope.action}';
    alert(action);//or whatever you want to do
    <c:if test="${requestScope.someOthervariable == ''xyz'}"><%-- this check is done on the server --%>
    callSomeJavascript(); <%--this javascript is only executed when the server side value of someOtherVariable is xyz --%>
    </c:if>
    </script>
    i.e. you can output the javascript that has the variables you need or the function calls you want.
    Like I said understand whats server side and whats client side.

  • How can I call a custom javascript function when clicking on cfgrid cell.

    I would like to call a custom javascript function when
    clicking on a cell in an cfgrid (of html format). The closest thing
    I can find is to use the HREF="" attribute, but it doesn't seem to
    work with javascript inside it.
    Simple example:
    <cfgridcolumn name="Foo" header="Foo"
    href="javascript:customFunction(#ID#);">
    Do I need to tap into the underlying Ext JS funtionality? If
    so, where can I start?
    Thanks!

    Hi,
    According to your post, my understanding is that you want to hide/show list columns based on specify the permission for Users, SharePoint Groups or Active Directory Groups.
    Here is a solution from CodePlex for your reference:
    SharePoint 2013 Column & View Permission
    https://sp2013columnpermission.codeplex.com/
    Best Regards
    Dennis Guo
    TechNet Community Support

  • How can I call a servlet method from a javascript function

    I want to call l a servlet method from a javascript function.
    Does any one have an example of code.
    Thinks in advance

    Actually, as long as the servlet returns valid javascript, you can indeed "call it" from the client. It will initiate a request and return the result to the browser.
    This example uses Perl, but it could be easily modified to go to a servlet instead.
    Note that it is only supported in DOM browsers (IE6+/NN6+/etc)
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
    <html>
    <head>
    <title> Test server-side JS </title>
    </head>
    <body>
    <script type="text/javascript">
    function checkIt(variable, value)
    var newScript = "cgi-bin/validateJS.cgi?"+variable+"="+value;
    var body = document.getElementsByTagName('body').item(0)
    var scriptTag = document.getElementById('loadScript');
    if(scriptTag) body.removeChild(scriptTag);
    script = document.createElement('script');
    script.src = newScript;
         script.type = 'text/javascript';
         script.id = 'loadScript';
         body.appendChild(script)
    </script>
    <p>Test.</p>
    <form id="f1" action="">
    <input type="text" name="t1" id="t1" onChange="checkIt(this.name, this.value)">
    </body>
    </html>
    validateJS.cgi
    #!/opt/x11r6/bin/perl
    use CGI qw(:all);
    my @valArray = split(/=/,$ENV{QUERY_STRING});
    print "Content-type: text/javascript\n\n";
    # myPass is the password
    $myPass = "foobar";
    if ("$valArray[1]" eq "$myPass")
    print "alert(\"Success!!\")";
    else
    print "alert(\"Failure!!\")";

  • How to call a Javascript function from backing bean without any event

    Hi,
    Someone knows how to call a Javascript function from backing bean without any event ?
    thanks

    Please review the following thread:
    ADF Faces call javascript
    Luis.

  • Set multiple items with javascript function in chart link

    Hi Folks
    I am able to use the javascript $s function to set the value of one item from a chart link. I need to pass values to multiple items.
    Is there a way to use javascript function to pass values for multiple items on a page from a chart link
    Appreciate your responses
    Thanks
    Gopal

    Hi Arnau,
    You need to surround your JavaScript code like this (without the spaces before and after script):
    < script language="Javascript">
      window.open("<%=ABAP_VARIABLE%>").focus();
    </script >
    Regards,
    Patrick.

  • How to call a bean method through a javascript function

    I dont discover any problems calling the bean method in this maner:
    <%= helpdesk.data() %>
    But, when I use a Button Onclick= to call the script function and which then is going call my bean method
    an error on the page is reported!
    I have include som code which gives you the idea of what Iam searching for. And is it possible to call
    the bean method without doing from a new jsp page?
    If you have any suggestions to why it doesnt work, please let me know.
    I use Apache Tomcat 4.0
    Best regards Micah.
    <jsp:useBean id='helpdesk' scope='application'
    class='helpdesk.testdb'/>
    <html>
    <head>
    <script language="javascript">
    function broadcast()
    helpdesk.data();
    </script>
    </head>
    <body>
    <input type="button" value="Broadcast" onclick= broadcast()>
    </body>
    </html>

    It's actually quite simple:
    Beans run server-side
    Javascript runs client-side
    So you will never be able to run server-side-code thru the client...

  • Assigning return value of a javascript function to a variable

    hi.
    I have a javascript function which returns string.
    I wanna assing return value of that function to variable.
    for example:
    <script>
    funtion writeMe()
    var ex;
    ex="try"
    return ex;
    </script>
    Then in body of JSP page. I wanna do something like:
    <% String st;%>
    Now I wanna assign the value that returned from writeMe function ("try") to st string.like:
    <%st= writeMe();%>. but of course it doesn't work. how can I do that?

    thnx. but actually what I want to do is sending some values produced by javascript to a barchart object. is it impossible too?
    I mean my script function returns something like "100, 200, 300". I wanna pass that values to barchart. when I want to add aplet tag to jsp code instead of writing:
    <param name="s1_value" value="100,200,300">
    I want to write somethin like:
    <param name="s1_value" value="myscriptfunction()">
    is it possible in JSP? I saw an example like this in asp. it was like:
    <param name="sampleLabels" value="<%call func1()>">. but in JSP it seems like call tag doesn't work. Is it possible in JSP?

  • Error in calling a javascript function

    Hi
    Below is a code from my HTML file...
    <html>
    <head>
    <script language="javascript" >
    function try()
    alert("hi");
    </script>
    </head>
    <body>
    <input type="button" value="Hello world!"
    onclick='try();'>
    </body>
    </html>while running page in browser i m getting error :
    line: 12
    char: 4
    error: expected "{"
    I understand that this is not a java problem but please help.
    thanx
    Edited by: money321 on Feb 5, 2008 6:07 AM

    I know that this is not the right forum, but I'd like peoples' advice on which prep to use for a colonoscopy. The Fleet's Phosphosoda prep is more palatable, and easier and more convenient to take compared to the Colyte (gallon jug) prep, but on the other hand the Colyte prep is safer since it doesn't carry the risk of calcium phosphate precipitates forming in the kidneys potentially causing acute kidney failure, a rare but certainly serious complication. Many thanks in advance.

Maybe you are looking for

  • Mail Changed Purchase Order

    Dear, I can mail my purchase orders, but when I change my PO and want to send the changes to the vendor I would like to have the title changed automatically too.  Does anyone knows how I can do that?  So, instead of "New Purchase Order &PO - Number&,

  • Realtime delay of 'live' stream

    Hello, I'm speccing a job for a client who wants to use live streams and have cutomers phoning in to direct the show as it happens in the studio. One consideration is how 'live' is live streaming in flash. Does anyone know roughly what the delay from

  • Widgets frozen in Dashboard

    hello all, Tiger has been running perfect on my iBook until the other day.. when for no apparent reason (I woke the comp. up from sleep, and it worked before setting it to sleep) Dashboard had stopped working properly. Basically, all the widgest had

  • HT5538 i cant get facetime and imessage to work on my iphone 5 after ios7 update

    after my ios7 update on my iphone 5, i cannot facetime or imessage. it just says waiting for activation. help...it has been like this for a week now

  • Error message when blocking a Work Center

    Hi, In order to block the use of a workcenter, it is recommended to go to cr02 and change u2018usageu2019 field to u2018000u2019 All task list types (see previous topic To block the use of a specific workcenter) When changing usage to 000, an error m