Dynamically calculating values and validating in reports

Hi
I need to be able to calculate and display the running total of column (representing a % - sales allocation) within an updatable report as the users steps off the row after making a change to the allocation.
Greatful for your suggestions on ways of doing this.
Thanks
Dorian

See
http://htmldb.oracle.com/pls/otn/f?p=24317:57
The region query is
select
ename,
job,
htmldb_item.text(1,sal,null,null,'onChange="Calc()"') sal,
htmldb_item.text(2,comm,null,null,'onChange="Calc()"') comm,
htmldb_item.text(3,sal+comm,null,null,'readonly=true') total
from emp
The Calc javascript function is in the Region header as
<script type="text/javascript">
function Calc() {
var sal=document.wwv_flow.f01;
var comm=document.wwv_flow.f02;
var total=document.wwv_flow.f03;
for (var j=0;j<sal.length;j++) {
   total[j].value=Number(sal[j].value)+Number(comm[j].value);
</script>Note that you dont have access to each individual row, when you change either the sal or the comm field, the entire grid gets recalculated, sort of like a spreadsheet.
Should be enough to get you started.
Hope this helps.

Similar Messages

  • Condition values and validity periods of a Scheduling agreement .

    Dear Friends,
    I have one querry .Where does (in  Database table) ,  the condition values and validity periods of a Scheduling agreement stored .
    Thanks and regards in advance.
    Vijay.
    Edited by: vij kot on Sep 9, 2008 12:09 PM

    Hi,
    Refer Tables
    KONH - Condition Header
    KONP - Condition Item
    KONV - Conditions (Transaction Data)

  • Calculated value and color change

    I am a newbie desiging a form in Livecycle. 
    Have a table with some calculated fields - using formcalc. 
    I want to change the color of these fields based on the calculated value but I don't know how to have multiple events occurring in the one cell. 
    I can get it working if I put the color change script into the exit event of the cell but as it's a read only cell, the user will not be exiting the cell.  I have had no luck putting the color change script elsewhere.  Any help would be appreciated.

    Actually, in full screen mode the top is cut off! I never noticed that since I always use full screen. This only happens in ACR. All other screens are fully represented. I may cut back on the height adjustment and see if I can see the top. Thanks for pointing it out, Ramon.
    Back to the problem at hand, if you notice, all sliders are at -0-, and if you could look at all the adjustment panels, everything is neutral. So, what is it adjusting?
    If I open a RAW file I also get the triangle, but when it disappears only the slightest change is noticeable in the histogram, and nothing in the image itself. This is true even with the .nefs tweaked.
    Finally, the image 1 is correct with respect to the same file in PS. I compared the screen shot to the full image side by side, in PS. Image 2 is not. If I do a tweak in ACR then open in PS, it's not what I want to see.
    This particular frame is tagged with the ACR icon in Bridge, but I have other tiffs that are not, and the same thing occurs.
    FAPP, I cannot not color correct in ACR with a tiff. I do it as an .nef

  • ICSS label values and validation messages

    Hi All,
    Can someone please let me know
    1. Where are the label values stored for ICSS (i.e. is it in some properties file/ xcm config or CRM backend)
    2. Where the validation error messages for ICSS stored.
    Thanks,
    Nikhil

    Solved myself.

  • Dynamically pass the username and password to report server to invoke reports

    Hi
    The scenario is as follows:-
    9iAS is installed under - Windows 2000 (web server and report Server 6i) and everything works fine.
    We have developed a page using pl/sql cartrige (oracle 8i), from that a report is invoked with some parameters. However, the userid and password is stored under keymap file (cgicmd.dat).
    Is there anyway to pass dynamically the username and password to report server in order to invoke the report.?
    Can any one advise?
    null

    Check out
    http://serverfault.com/questions/371907/can-you-pass-user-pass-for-http-basic-authentication-in-url-parameters
    Kind regards,
    Margriet Bruggeman
    Lois & Clark IT Services
    web site: http://www.loisandclark.eu
    blog: http://www.sharepointdragons.com

  • Display Report Level Filter value and Input Controls Value

    Hi,
    Please let me know how to display Report Level Filter value and Input COntrol values in the report.
    I have 2 tabs in the WebI Report. The first tab has the summary details about the other tabs like reprot desc, prompt values, reprot filter values,etc.
    In the 2nd tab I have the actual report which has input controls defined, prompt values and global level report filters.
    Can anyone please tell me how to display the Report level filter values and the Input Control values in the first tab report.
    For ex: Tab 2 has a Report level filter: Region = NA
    I need to display in Tab 1 in as Region: NA
    I used the function ReportFilterSummary but that is giving me other details, I want only the object name and the value.
    Also how to dispaly the Input Control values in the tab 1.
    Please let me know if you have any suggestions for this issue.
    Thanks

    did you try
    =ReportFilter([Year])
    if you are making report filter over the year, it will return the value of the filter
    by the way, the filter should be applied over all the report not to a specific block to be able to get the correct value
    the Input control also considered as report filter, only if you're applying them on the level of the report, if you applying an input contron over a specific block or chart, you will not get the values for ReportFilter
    good luck

  • RRI - Sending  Dynamically calculated Variable Values to Receiving Report

    Hello,
    1st report requires that user enters 2 dates. User exit is calculating the "number of months" between these 2 dates and the value is being stored in a variable.
    This calculated value "no of months" needs to be sent to the receiver report. Apparently it is not getting passed automatically.
    Any ideas.?
    Thx
    Sri Kamana

    Hi Srikanth Kamana,
    Reimplement the customer exit "number of months" in the second query. Get the from and to dates from the 1st query.
    I hope you got an idea for the issue.
    Regards,
    S P

  • Calculating Acqusition value and Accumulated depriciation

    Hi,
    I want to create a new report which shows the acqusition value . accumulated depriciation and monthly derpricaition for an asset.
    I have used funciton module 'DEPR_RECALCULATE' to find acuistion value and accumulated derp , but the acq value displayed is always equal to the acquistion value at the fiscal year start , irrerspective of the period entered .
    ALso in my report if i enter period as 7 , then acq value for the asset in period 7 should be displayed . and accumulated depr upto period 6 should be displayed .ie acq for asset during the  period entered and accum depr till period-1 should be displayed
    Could some one help me with a proper way to calculate asset acq and accumulatd depr .
    I tried looking into the std report RABEST01 , but it uses logical database ADA .And I would notbe able to use logical db , as the accum depr and acq value need to calculated for diff periods .
    Thanks,
    Lalitha Iyer

    Hi,
    Try report RAHAFA_ALV01.
    After executing the above report, go to change layout option and choose below fields.
    1) ***.acq.value
    Acq value start of FY
    2) Accum.dep.
    Accum dep start of FY
    3) Start book.val
    NBV start of FY (1-2) minus
    4) Trans.acq.val
    Acq transactions from FY start to Report date (in selection screen)
    5) Trns.AccDep
    Accum dep from FY start to Report date (in selection screen), this field will have values only some transfer transactions posted to that particular asset
    6) PlndDep
    Planned dep from FY start to report date
    7) End book val
    End book value on report date (3+4-5-6)
    You dont need to create a new report for this requirement.
    Transaction codes for this report are the below
    AR03         
    S_ALR_87012004
    S_ALR_87012005
    S_ALR_87012026
    S_ALR_87012027
    S_ALR_87012035
    S_ALR_87012036
    S_ALR_87012064
    S_ALR_87012065
    S_P6B_12000064
    Thanks,
    Srinu

  • How to check the maximum Value and Last value in Reports CP column

    Hi all
    First of all i am sory that iam posting this question in forms instead of Reports....i had posted it in reports but no one reply and i need uirgent solution so I post here....
    My problem is that in Report I have calculated some values in CP column......Like
    :CP_Total := :Frieght * Rate ...etc
    Know i want to ask that how can I get the last value that will be return the by this column????and also the maximum value that it will return
    Thanks in advance
    Shayan
    [email protected]

    You mast build Summary column out of the query and select maximum to your maximum value of CP in Report level (or last for last value).

  • Dynamically passing text and url-based images as an input parameter to cf8 report builder

    I'm unsuccessfully trying to dynamically pass text and url-based images to a group footer or the detail section via an input parameter or even hardcoded. The field has the attribute 'XHTML Text Formating' set to True. The following are failed samples of a simplified value:
    "<img height=’300’ alt=’Document’ width=’300’ src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    or
    "<img src=’http://www.google.com/intl/en_ALL/images/logo.gif’ />"
    This just results in the above text being output. The end result would have various text and images from a database as input by a user, thus the reason I cannot just use the hyperlink information attribute as I could if it were a single known image. I tried rtf and pdf report types. Ideas?

    HTH,
    Thanks. I'll keep that in mind, although I don't know how many images my user might need or what sizes so that might be tricky.
    Since my target output is rtf so that MS Word can be used to edit the result, I added a pagebreak to a MS Word doc and used the resulting html source to replace the rich text editor source code for the page break, but that did not help either. The page break was so a user could add an image later. Something is wrong with the Report Builder related to intepreting XHTML, especially anything that has an attribute, including URL-based image links. I hope they try to provide another update before CF9. I doubt my client will be going to CF9 for some time, since they are just completing the migration to CF8.
    BrianO

  • Scheduling a Report with Dynamic Parameter Values

    Post Author: etlag
    CA Forum: Publishing
    I have created a report using a parameter that has dynamic values - meaning the user can choose a date from a specific field. It works fine once published in InfoView, but when I schedule the report, when I try to enter the parameter I get promted for a login for the database, even though I have already entered this in the CMC report properties.
    I have other reports that are using static values and they can be scheduled without entering the database login.
    Any ideas what I am missing?

    Post Author: amr_foci
    CA Forum: Publishing
    dear etlag
    its known issues, you've to set the default database connection to this report from the "CMC" web-bases appliaction , find this object click it go to "process" tab and then click the "database" tab,,, set your default database connection there and finally dont forget to set "Use same database logon as when report is run" at the end of the page
    and cilck ok
    try it ,, good luck
    Amr

  • Passing dynamic prompt value using Report Engine SDK

    Hello Experts,
    I have created a webi report which contains prompt. Using SDK, I would like to catch the value of prompt which is selected by a user at runtime.
    e.g. If prompt contains values year, quarter, month, etc and user has selected value of u2018Quarteru2019 at run time, then I would like to catch that value using Report Engine SDK.
    I tried to implement prompt.getCurrentValues(). However that is not working.
    Can someone please help me to figure out the way to catch this dynamic prompt value using Report Engine SDK?
    Thanks,
    John

    Where is the prompt values being set, and where are you trying to catch it?
    Workflow description is missing here.
    Sincerely,
    Ted Ueda

  • Stock report with value and qauntity for given date not month wise

    Hi gems,
    can any body give me the standard report for Stock value and qauntity for given date not month wise at storage location level

    Hi
    check the report S_P00_07000139 with the option inventory and raw material report- detail and selection date (from, to date same). List will give opening & closing balances with goods movment and their values.
    Thanks

  • Report for total IR value total GR value and Total P.O value

    Is there is any report to get IR value GR value and P.O value as well............?
    i don't need balance i want completed P.O and GR IR value with quantity.......
    Please help me to get this kind of report in SAP
    Thanks
    Neha

    Hi,
    You can find change view option in ME80FN by executing the report and its available near by print and change layout button.
    Click on the change view > select purchase order history.
    You will get the required report then.
    Also you can make the Z enhancement with the help of abapor.
    Thanks & Regards,
    Sandesh Sawant

  • PO reporting that can capture PO number, PO value and cost center

    Dear SAP expert and gurus,
    Would like to seek for your professional advise and consult on which report in MM that can capture the PO number, PO value and cost center.
    Kindly advise.
    Thank you
    Regards
    Leonard Tan

    ME80FN is a good report that captured the PO number and amount. However, the cost center is not being captured here. is there any suggestion?
    ME2K is not an ideal report to user cause, user requires the data to be shown in one line instead of 2 to 3 line.
    Is there any report like ME80FN can be captured PO number, PO value and Cost Center.
    Thank you
    Regards
    Leonard Tan

Maybe you are looking for

  • Mail in OS 10.8.2 very sloooow!

    The new mail (OS 10.8.2) is very slow. I click on Inbox and it could take up to a minute for anything to load. The same w/SENT. Also, click on get mail, nothing happens. Eventually, it will download one or two, more later. Finally, one more question:

  • Vob Import Question in Premiere Pro CS4 4.1

    Hello,   Prior to posting, I read numerous posts related to importing vob files in Premiere.  None of them seemed to address the particular problem I am experiencing, and I was hoping to find an answer here in the forums.  Here's what I am attempting

  • N8 Music Synchronization - how to clear all songs ...

    Background: I quickly synced a stack of songs from my N97 sync in Windows Media Player (Win 7).  Naturally the sync was way larger than the storage capacity on the N8. When I had more time, I went back and made a more conservative sized playlist and

  • In Need of an Application Launcher

    Does anyone know of an application launcher that will launch multiple applications simultaneously and remember their window state (size, position and desktop)? I'm running OS X Mavericks so I'm looking specifically for an application that was release

  • Please, I need help in this,How to make a tree control appear from right to left ??

    i working on Arabic project in which we use a tree control and i  want it to display its branches from right to left . i tried to rotate it but it doesn't work because the disclosure triangle still appear on the left . i ask if there is any thing to