Using javascript to change the "Overall Result" cell in WAD

Hi experts,
I am trying to use javascript to change the text of the "Overall Result" cell in my web template using BI 7.0. I am not familiar with javascript, but I this is what I have done so far.
I dragged the web item "Script" into my web template and I inserted the following code:
function change_overall_result_to_average() {
var cell = document.getElementsByTagName("TD");
var cellText;
for (i = 0; i < cell.length; i++)
      cellText = cell<i>.innerText;
           if (cellText == "Overall Result")
                 cell<i>.innerText = "Average";               
In the XHTML view I am using added the onload function to start the javascript every time the web template is loaded. The code works fine when the web template is first loaded and the cell text is changed to "Average". However, if I navigate in my web template, the javascript function is not triggered, and the cell is therefore changed back to "Overall Result". For example, this happens when I pick another selection from one of my dropdown boxes, such as changing the selection from year 2008 to year 2007.
I don't really know how to solve this problem in an easy way, and the current solution is not good enough. I hope one of you guys can suggest an easy way of fixing this:-)
Best Regards,
Morten

Woodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
[http://google.com/search?q=webuijsf+domnode+site:sun.com].
If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum.

Similar Messages

  • Is it possible to change the OVERALL RESULTS to TOTAL?

    Hi Guys,
    When we select a field and in the properties of that field select the option Always Display Results row the query displays the total for that field but the text for the total is shown as OVERALL RESULTS. Is it possible to change that to TOTAL instead of overall results?
    Thanks

    Hi,
    There is one SAP note available to change text of Result and Over all result to some other text. You can search that note in service.sap I dont have it with me.
    But the yeast is if you change that it will be applicable to all the reports and it will change the text for all the reports. In order to change it at report level you may wanna use work-book. Not sure what is the solution if you are using web-templates.
    Regards,
    Akshay

  • It possible using javascript to change the value of another jsf text field?

    In my case, I have an input text field and would like to copy it's value on the onchange() event into another text field. Using the destination text field's Id and assigning some content with it's .value property

    Woodstock apparently renders some Javascript/DOM with some homegrown widget framework which on its turn renders the HTML DOM tree instead of plain vanilla HTML. Correct me if I'm wrong, to confirm this, just view the generated HTML source of the page.
    After some Googling I found out that you need getProps() and setProps() to get and set element attributes respectively.
    [http://google.com/search?q=webuijsf+domnode+site:sun.com].
    If you stucks with this, I recommend you to post this question at a forum or mailinglist devoted to Woodstock, e.g at their own homepage at dev.java.net or the Netbeans forum at nabble.com. You're here at a Sun JSF forum, not at a Woodstock forum.

  • Using javascript to change styles and such

    I want ot use javascript to change the "display" style of a
    div tag
    whatDiv.style.display = "block"
    This works fine if the div tag has an inline style defined:
    <div style="display:none"> ...</div>
    But if the tag has a class attached to it and the display
    :none is attached
    to that class, then it doesn't work
    <style...>
    div.hidden{ display:none; }
    </style>
    <div class="hidden"> ... </div>
    ... how can I remedy this?

    On Thu, 15 Jun 2006 17:20:54 +0000 (UTC), "jeremyluby"
    <[email protected]> wrote:
    >What gary is saying is that you should not use a class,
    but an ID only to
    >define the region.
    Nope. That's not what I'm saying. Regardless of whether
    you're using a
    class or not, if you get an object reference using an ID, you
    can change
    the properties. Consider this example:
    <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN"
    http://www.w3.org/TR/html4/strict.dtd">
    <html lang="en">
    <head>
    <meta http-equiv="Content-Type" content="text/html;
    charset=iso-8859-1">
    <title>Demo</title>
    <style type="text/css">
    .demo {
    background-color: #000099;
    border: 1px solid #000;
    color: #ffffff;
    text-align: center;
    height: 60px;
    width: 500px;
    </style>
    <script type="text/javascript">
    var bg="#009";
    function changeColor(x){
    o=document.getElementById(x);
    bg=(bg=="#009"?"#900":"#009");
    o.style.backgroundColor=bg;
    </script>
    </head>
    <body>
    <div id="test" class="demo">
    <p>Lorem ipsum dolor sit amet, consectetuer adipiscing
    elit.</p>
    </div>
    <p><a href="javascript:;"
    onClick="changeColor('test')">Change
    Color</a></p>
    </body>
    </html>
    Gary

  • Problem in positioning of the Overall Result Row when using a hierarchy

    Hello All,
    i've built a query on a hierarchy and i want the 'Overall Result' to be displayed at the bottom.
    I've made the following setting in the Query Designer
    <b>Query Properties -> Display -> Results Position -> Bottom/Right</b>
    but still, the 'Overall Result' is displayed at the top of the result rows.
    Could some one please tell me if this is how the functionality is expected to work when a hierarchy is used for display ?
    We are on BW3.1 SP 9
    Best Regards,
    Sanjay<b></b>

    Hi Roberto,
    could you please let me know if the following analysis of mine is correct.
    The Overall Result will be dispalyed at the top if the 'Position of Lower-Level Nodes' is set to 'Down'(default setting) in the Hierarchy Properties of
    the characteristic. If the 'Overall Result' is required to be at the bottom then 'Position of Lower-Level Nodes' has to be set to 'Up'. It is not possible to display the Overall Result at the bottom with the 'Position of Lower-Level Nodes' set to 'Down'
    Will greatly appreciate your help !
    Best Regards,
    Sanjay

  • How to get  the Overall result and Avg in Query

    Hi
    I am facing a problem to find Overall result and Avg for the keyfigure.
    Here is the scenario.
    I have a fiscalperiod ,qty in query column and material in row, when user enters the fiscalperiod(004.2006 to 006.2006)
    the output should come as
       0406 0506 0606  Avg
    M1  10  20   40     35
    M2  20  40   30     45
    res 30  60  70
    i can able to get the overall result not avg,
    if i change the properities of keyfigure 'Calicuate Result as 'Average of all values'',then i am loosing the overall result.
    eitherway i can able to get one result,not both.
    anybody can help.
    Thanks
    Madhu

    You have 2 key figures and you have put Material in the ROWS.
    Remove Material from ROWS and instead use 0FISCYEAR in the row selection.
    You can create 12 Key figures for each month and use either Filer or Free Characteristic using 0CALMONTH to restrict the month for the selection Variable.
    For the Key Figures use "Calculate Single Value as" Average.
    Create another formula as KF1KF2....+KF12 to get the sum of average.
    Regs
    Gopi
    Assign points if it helps...

  • Issue in the Overall Result

    Dear Experts
    I need your help to solve my problem. I have one BEx report base on a cube and in which I use Key Figure calculated, but when I execute the query, I have on the Overall Result line the result of the formula and not the total result of all items. To illustrate, I have a column with an exchange rate calculated and another column with a Net Value calculated with this exchange rate. If I run the query by displaying all the items, the result is correct, but when I display only the total, instead of the sum of all items, I have the total recalculated with the formulas. How to solve this problem?
    Thx in advance for your help!

    what i understand from your comment is irrespective of whether your drill down via items in report
    the calcuation ( exchange rate and netvalue should happen at each item level and aggregation .
    am i right???
    if yes then you need to create a formula variable on sales doc number and another one on  sales item no.
    definition of formula variable would be replacement path on corresponding infoobject mentioned above.
    and attribute value constant 1.
    mulitply both the formula variable in your CKF  netvalue .
    calculation would always happen at sales doc item level and then aggregation .
    another option is to use exception aggregation .

  • Using javascript to detect the onclick event over a datatable row

    Hi all,
    I'm working with JSF 1.2 R.I. and I would like to add some javascript to my datatable to be able to control the onclick event on a row.
    At the moment I have just added a checkbox to be able to know which row the user wants to select but I'm not satisfied with this solution.
    <h:dataTable
    value="#{person_iupopulations_Observation.customer}" var="customer"
    rowClasses="evenRow,oddRow"
    cellspacing="0">
    <h:column>
    <f:facet name="header">
    <h:outputText value="Select" />
    </f:facet>
    <h:selectBooleanCheckbox value="" onclick="getRow(this)">
    </h:selectBooleanCheckbox>
    </h:column>
    <h:column>
    <f:facet name="header">
    <h:outputText value="Name" />
    </f:facet>
    <h:outputText value="#{customer.Name}"></h:outputText>
    </h:column>
    </h:dataTable>
    What I would like to achieve is:
    When the user clicks the row (wherever, not only the checkbox) the checkbox changes to the new value depending, off course, on the user's selection.
    For this purpose I would need to add the onclick event to every row and associate it to a javascript function to update the checkbox.
    Can anybody help me please.
    I appreciate any suggestion.
    Thanks in advance!

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

  • The overall result shows * instead of the value

    Dear Experts,
    In my report i've qty in columns and item in rows. The qty is in all Ea. (Each). So when i run the report i thought all the noumber would be added for qty and displayed in the overall result.
    But in the overall result it shows a * . However in the formula bar in excel it displays a number like 44000.
    I tried using nodim() and it worked, but my question is since the qty is in all Ea.'s shouldnt it add up the value to be displayed in the overall result.
    Can someone shed some light.
    Thank you...

    No Jr., i dont any record with a blank value.
    Wond, i agree with you. I thought i should see the total since all the items are in Ea.
    Is there anything else i can check.

  • How can I change the overall duration of a project.  I did it once but I can't remember and can't find the answer.

    How can I change the overall duration of a project.  I did it once but I can't remember and can't find the answer.

    You could add more content.
    Or if the project contains stills, these can be lengthened. Double-click on a still photo to open the Clip Inspector. Adjust the duration by typing in the Duration box. Be aware though that if you have transitions either side of the still, you may get odd results with the duration. See this thread for more details:
    https://discussions.apple.com/thread/4269161?tstart=0
    John
    PS. I'm assuming you want to lengthen the project, not shorten it.
    Message was edited by: John Cogdell - added PS

  • How can i use dsadm to change the ldap port?

    I have a ldap with port 1389,I changed it to 389,now I can not start it because it is a non root user.
    Now I want to change the port back to 1389,but I can not use dsconf because the server is not running.
    How can i do now? How can i use dsadm to change the port?
    Thank u very much.

    My apologies, I didn't mean to be rude/impolite.
    I just wanted to emphasize that in a situation where a Directory Server doesn't even start, you cannot interact with the live server to configure the new port (either talking LDAP or otherwise). All you can do in that case won't be related with the LDAP (that's just the name of the protocol): either assigning network privileges to the user, or changing the Directory Server configuration file.
    The other thing I'd like to outline (and this could take a separate thread ;-) ), is that semantically, I'd prefer talking of a Directory Server instead of an LDAP Server because the former is 'something' providing Directory Services, whereas the latter is just the name of the protocol we use to interact with the server; but this is just my personal opinion, you don't have to agree with me.
    that's all folks!
    marco

  • How can you turn off the braille setting on an iPhone 4s, once on it won't let you slide the phone into use mode to change the settings or do anything?

    How can you turn off the braille setting on an iPhone 4s, once on it won't let you slide the phone into use mode to change the settings or do anything?

    An alternate method is Accessibility Settings when connected to iTunes. You should be able to turn it off there. I would also check out some of the answers listed to the right of this post and see if they can help.

  • How do I use AppleScript to Change the Creation Date to the Current Date?

    I sorted my downloads folder by creation date and found that the items were sorted seemingly randomly. On closer inspection, I saw that the creation dates were not the same as the dates that I downloaded the items, so I figures that Snow Leopard was using the date given to it by the server.
    In order to get the items sorted by download date, I figured I'd use Hazel, but it doesn't have a “change creation date” item. It does, however, have an “run AppleScript” item.
    So my question is this: how do I use AppleScript to change the creation date of an item to the current date?

    TC (Techno Cat) wrote:
    Okay, I tried changing the creation date with SetFile, but it kept giving me an error:
    What am I doing wrong?
    Looks like the date and time was not quoted
    Try this Applescript. It will change the creation date of every file in the Downloads folder to the current date and time:
    <pre style="
    font-family: Monaco, 'Courier New', Courier, monospace;
    font-size: 10px;
    font-weight: normal;
    margin: 0px;
    padding: 5px;
    border: 1px solid #000000;
    width: 720px;
    color: #000000;
    background-color: #E6E6EE;
    overflow: auto;"
    title="this text can be pasted into the AppleScript Editor">
    set current_date_and_time to do shell script "date \"+%m/%d/%Y %H:%M\""
    tell application "Finder"
    set filelist to every file of the alias (the path to downloads folder as text)
    repeat with currentFile in filelist
    do shell script "/usr/bin/SetFile -d " & quoted form of current_date_and_time & space & quoted form of POSIX path of (currentFile as string)
    end repeat
    end tell</pre>

  • When I copy and paste from Word to my e-mail using Firefox it changes the font and spacing to single and 10pt. It just started doing this a month ago. It does not do it when I am on my laptop or using Explorer. Help, I hate explorer.

    When I copy and paste from Word to my e-mail using Firefox it changes the font and spacing to single space and 10pt.
    It just started doing this a month ago.
    It does not do it when I am on my laptop or using Explorer.
    Help, I hate explorer.

    If this were a project that I was involved in, I would recapture the media at the correct frame rate and rebuild the sequences correctly.
    Moving from production, to post production, to delivery is a series of steps, and the success of any particular step is based on having all the preceding steps done correctly.
    Shortcuts and workarounds tend to create awkward and difficult problems, that often only surface late in the process.
    MtD

  • Using JavaScript to remove the loading overlay?

    Is there a way to remove the loading overlay. It appears to block events.
    I want that if the slide hasn't loaded within say, 30 seconds, then present the user with a message to go to next slide or wait.
    Is this possible?
    Thanks for any help anyone can be.

    I am looking for answers on how to use javascript to detect the onclick event over a datatable row . I have a selectBooleanCheckBox in one of the columns in the every row in the table. On click of the checkbox in any row of the table, I want to get some values from the selected row and also verify that the rest of the checkboxes in all the other columns are unchecked. I want to do this using javascript. If any of you have answers, please repsond. Thanks.

Maybe you are looking for

  • Home Sharing stops working with fast user switching

    I have a late 2013 iMac running Mavericks.  The main account has my iTunes library with Home Sharing enabled.  The AppleTVs and IOS devices can see the Home Share and it works well.   But, it stops working when user accounts are accessed on the Mac.

  • Adobe Premiere Pro CC 2014 operating very slowly

    A colleague of mine is editing a documentary.  The entire length of the timeline is about 90 minutes.  Every keystroke within Premiere is painfully slow.  The computer operates outside of Premiere normally. Is there something we could do to optimize

  • Not getting updated at client side

    I have enabled updates for Lion, along with other updates for 10.6.8,  but I notice in Log of software updates I get the following: Apr 12 10:43:08 sus.example.com swupd_syncd[87] <Warning>: *** Missing version string for product 061-7532 Apr 12 10:4

  • How can I open up multiple copies of Firefox - as I used to do on old computer?

    I have a new computer and downloaded Firefox 28.0 I need to have several copies of Firefox open at once when working on projects. Using tabs is totally unacceptable because I can only see one piece of information at a time. I know nothing about progr

  • How do you make a GIF that involves rotation of an image?

    I am trying to make a GIF but wen i try to rotate the image or change the size it changes the rest of the frames in the animation window. How do i prevent this?