Cursor w/alias,decode,round,sum etc - not working

Hello all,
I'm Herb. I'm having trouble creating a cursor. My select statement has decode,round, sum, mutiplication etc.
Example.
cursor first_info (ppe_date_in varchar2) is
(select decode(pdrdedn_opt_code1,'P1',(round((sum(nhrdist_amt) * .095),2)),
'P2',(round((sum(nhrdist_amt) * .095),2)),
'P3',(round((sum(nhrdist_amt) * .095),2)),
(round((sum(nhrdist_amt) * .08),2))) v_contribution,
to_number('0.00') p_contribution,
pdrdedn_pidm v_pidm
from ptrcaln, pdrdedn, phrdedn, nhrdist, spriden, nbrbjob, nbrjobs
Has anyone been successful in using an arrangement like this? My procedure has no errors, but I have no data also. CAn someone please help.
Herb

Will this complexity is sufficient for you? ;)
satyaki>
satyaki>select * from v$version;
BANNER
Oracle Database 10g Enterprise Edition Release 10.2.0.3.0 - Prod
PL/SQL Release 10.2.0.3.0 - Production
CORE    10.2.0.3.0      Production
TNS for 32-bit Windows: Version 10.2.0.3.0 - Production
NLSRTL Version 10.2.0.3.0 - Production
Elapsed: 00:00:00.18
satyaki>
satyaki>
satyaki>declare
  2    cursor c1(e_no in number)
  3    is
  4      select trunc(
  5                    (
  6                      nvl(
  7                            case
  8                              when sal between 3000 and 7000 then
  9                                count(*)
10                            else
11                                decode(comm,'',max(comm),trunc(comm))
12                            end,
13                            555
14                          )*120
15                     )/34
16                  ) complex_calc_in_cur
17      from emp
18      where empno = e_no
19      group by empno,sal,comm;
20     
21     r1 c1%rowtype;
22  begin
23    open c1(&eno);
24    loop
25      fetch c1 into r1;
26       exit when c1%notfound;
27         dbms_output.put_line('Calculated Value: '||r1.complex_calc_in_cur);
28    end loop;
29    close c1;
30  end;
31  /
Enter value for eno: 7902
old  23:   open c1(&eno);
new  23:   open c1(7902);
Calculated Value: 3
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.07
satyaki>
satyaki>/
Enter value for eno: 7777
old  23:   open c1(&eno);
new  23:   open c1(7777);
Calculated Value: 12000
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.05
satyaki>
satyaki>/
Enter value for eno: 7566
old  23:   open c1(&eno);
new  23:   open c1(7566);
Calculated Value: 1958
PL/SQL procedure successfully completed.
Elapsed: 00:00:00.06
satyaki>
satyaki>Until or unless you post your exact code it is difficult for us tell anything on your problem.
And, please don't ask the purpose of this function. ;)
Regards.
Satyaki De.

Similar Messages

  • Yahoo mail tool bar (delete,more,spam,etc) not working in firefox.Works in Explorer.Web points to Mozilla update."Plug-ins" up to date. Solutions?

    Yahoo mail tool bar (delete,more,spam,etc) not working in firefox.Works in Explorer.Web search points to Mozilla update problem."Plug-ins" up to date. Solutions?
    I've used firefox for years now with out problems. Now that help is needed, Could you make this any more frustrating? I thought I was asking Mozilla help and I'm sent to "users". I went there 1st! there are similar questions but no answers. I've lost time and data. Is there any REAL PEOPLE to help with firefox problems?

    I'm a real person, thanks.
    If you mean, does Mozilla have paid staff you could phone or email, the answer is "No."
    Is the problem with a feature of the Yahoo! mail web page itself, or the Yahoo! toolbar?
    General advice:
    When you have a problem with one particular site, a good "first thing to try" is clearing your Firefox cache and deleting your saved cookies for the site.
    (1) Bypass Firefox's Cache
    Use Ctrl+Shift+r to reload the page fresh from the server.
    Alternately, you also can clear Firefox's cache completely using:
    "3-bar" menu button (or Tools menu) > Options > Advanced
    On the Network mini-tab > Cached Web Content : "Clear Now"
    If you have a large hard drive, this might take a few minutes.
    (2) Remove the site's cookies (save any pending work first). While viewing a page on the site, try either:
    * right-click and choose View Page Info > Security > "View Cookies"
    * (menu bar) Tools > Page Info > Security > "View Cookies"
    * click the padlock or globe icon in the address bar > More Information > "View Cookies"
    In the dialog that opens, you can remove the site's cookies individually.
    Then try reloading the page. Does that help?
    Could you test in Firefox's Safe Mode? That's a standard diagnostic tool to deactivate extensions and some advanced features of Firefox. More info: [[Troubleshoot Firefox issues using Safe Mode]].
    ''If Firefox is not running:'' Hold down the Shift key when starting Firefox.
    ''If Firefox is running:'' You can restart Firefox in Safe Mode using either:
    * "3-bar" menu button > "?" button > Restart with Add-ons Disabled
    * Help menu > Restart with Add-ons Disabled
    and OK the restart.
    ''Both scenarios:'' A small dialog should appear. Click "Start in Safe Mode" (''not'' Refresh).
    Any difference in how Yahoo! works?

  • Case statement and Decode function both are not working in Select cursor.

    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. On the other hand both the things work in just select statement.
    See the first column in select (PAR_FLAG), I need to have this evaluated along with other fields. Can you please suggest some thing to make this work. And also I would like to
    know the reason why decode is not working, I heard some where Case statement do not work with 8i.
    Author : Amit Juneja
    Date : 06/20/2011
    Description:
    Updates the Diamond MEMBER_MASTER table with the values from
    INC.MEM_NJ_HN_MEMBER_XREF table.
    declare
    rec_cnt number(12) := 0;
    commit_cnt number(4) := 0;
    cursor select_cur is
    Select DECODE(1,
    (Select 1
    from hsd_prov_contract R
    where R.seq_prov_id = PM.seq_prov_id
    and R.line_of_business = H.line_of_business
    and R.PCP_FLAG = 'Y'
    and R.participation_flag = 'P'
    and SYSDATE between R.EFFECTIVE_DATE AND
    NVL(R.TERM_DATE,
    TO_DATE('31-DEC-9999', 'DD-MON-YYYY'))),
    'Y',
    'N') PAR_FLAG,
    H.SEQ_ELIG_HIST,
    H.SEQ_MEMB_ID,
    H.SEQ_SUBS_ID,
    H.SUBSCRIBER_ID,
    H.PERSON_NUMBER,
    H.EFFECTIVE_DATE,
    H.TERM_DATE,
    H.TERM_REASON,
    H.RELATIONSHIP_CODE,
    H.SEQ_GROUP_ID,
    H.PLAN_CODE,
    H.LINE_OF_BUSINESS,
    H.RIDER_CODE_1,
    H.RIDER_CODE_2,
    H.RIDER_CODE_3,
    H.RIDER_CODE_4,
    H.RIDER_CODE_5,
    H.RIDER_CODE_6,
    H.RIDER_CODE_7,
    H.RIDER_CODE_8,
    H.MEDICARE_STATUS_FLG,
    H.OTHER_STATUS_FLAG,
    H.HIRE_DATE,
    H.ELIG_STATUS,
    H.PREM_OVERRIDE_STEP,
    H.PREM_OVERRIDE_AMT,
    H.PREM_OVERRIDE_CODE,
    H.SEQ_PROV_ID,
    H.IPA_ID,
    H.PANEL_ID,
    H.SEQ_PROV_2_ID,
    H.SECURITY_CODE,
    H.INSERT_DATETIME,
    H.INSERT_USER,
    H.INSERT_PROCESS,
    H.UPDATE_DATETIME,
    H.UPDATE_USER,
    H.UPDATE_PROCESS,
    H.USER_DEFINED_1,
    H.SALARY,
    H.PEC_END_DATE,
    H.REASON_CODE,
    H.PEC_WAIVED,
    H.BILL_EFFECTIVE_FROM_DATE,
    H.BILLED_THRU_DATE,
    H.PAID_THRU_DATE,
    H.SUBSC_DEPT,
    H.SUBSC_LOCATION,
    H.USE_EFT_FLG,
    H.BENEFIT_START_DATE,
    H.SEQ_ENROLLMENT_RULE,
    H.MCARE_RISK_ACCRETION_DATE,
    H.MCARE_RISK_DELETION_DATE,
    H.MCARE_RISK_REFUSED_DATE,
    H.COMMENTS,
    H.USER_DEFINED_2,
    H.USER_DEFINED_3,
    H.RATE_TYPE,
    H.PCPAA_OCCURRED,
    H.PRIVACY_ON,
    H.PCP_CHANGE_REASON,
    H.SITE_CODE,
    H.SEQ_SITE_ADDRESS_ID,
    PM.seq_prov_id rendered_prov
    from hsd_member_elig_history H,
    INC.PCP_REASSIGN_RPRT_DATA P,
    hsd_prov_master PM
    where P.subscriber_id = H.subscriber_id
    and P.rendered_pcp = PM.provider_ID
    and H.elig_status = 'Y'
    and (H.term_date is NULL or H.term_date >= last_day(sysdate))
    order by H.Seq_memb_id;
    begin
    for C in select_cur loop
    rec_cnt := rec_cnt + 1;
    update hsd_member_elig_history
    set term_date = TRUNC(SYSDATE - 1),
    term_reason = 'PCPTR',
    update_datetime = SYSDATE,
    update_user = USER,
    update_process = 'TD33615'
    where seq_elig_hist = C.seq_elig_hist
    and seq_memb_id = C.seq_memb_id;
    INSERT INTO HSD_MEMBER_ELIG_HISTORY
    (SEQ_ELIG_HIST,
    SEQ_MEMB_ID,
    SEQ_SUBS_ID,
    SUBSCRIBER_ID,
    PERSON_NUMBER,
    EFFECTIVE_DATE,
    TERM_DATE,
    TERM_REASON,
    RELATIONSHIP_CODE,
    SEQ_GROUP_ID,
    PLAN_CODE,
    LINE_OF_BUSINESS,
    RIDER_CODE_1,
    RIDER_CODE_2,
    RIDER_CODE_3,
    RIDER_CODE_4,
    RIDER_CODE_5,
    RIDER_CODE_6,
    RIDER_CODE_7,
    RIDER_CODE_8,
    MEDICARE_STATUS_FLG,
    OTHER_STATUS_FLAG,
    HIRE_DATE,
    ELIG_STATUS,
    PREM_OVERRIDE_STEP,
    PREM_OVERRIDE_AMT,
    PREM_OVERRIDE_CODE,
    SEQ_PROV_ID,
    IPA_ID,
    PANEL_ID,
    SEQ_PROV_2_ID,
    SECURITY_CODE,
    INSERT_DATETIME,
    INSERT_USER,
    INSERT_PROCESS,
    UPDATE_DATETIME,
    UPDATE_USER,
    UPDATE_PROCESS,
    USER_DEFINED_1,
    SALARY,
    PEC_END_DATE,
    REASON_CODE,
    PEC_WAIVED,
    BILL_EFFECTIVE_FROM_DATE,
    BILLED_THRU_DATE,
    PAID_THRU_DATE,
    SUBSC_DEPT,
    SUBSC_LOCATION,
    USE_EFT_FLG,
    BENEFIT_START_DATE,
    SEQ_ENROLLMENT_RULE,
    MCARE_RISK_ACCRETION_DATE,
    MCARE_RISK_DELETION_DATE,
    MCARE_RISK_REFUSED_DATE,
    COMMENTS,
    USER_DEFINED_2,
    USER_DEFINED_3,
    RATE_TYPE,
    PCPAA_OCCURRED,
    PRIVACY_ON,
    PCP_CHANGE_REASON,
    SITE_CODE,
    SEQ_SITE_ADDRESS_ID)
    values
    (hsd_seq_elig_hist.nextval,
    C.SEQ_MEMB_ID,
    C.SEQ_SUBS_ID,
    C.SUBSCRIBER_ID,
    C.PERSON_NUMBER,
    trunc(SYSDATE),
    C.TERM_DATE,
    C.TERM_REASON,
    C.RELATIONSHIP_CODE,
    C.SEQ_GROUP_ID,
    C.PLAN_CODE,
    C.LINE_OF_BUSINESS,
    C.RIDER_CODE_1,
    C.RIDER_CODE_2,
    C.RIDER_CODE_3,
    C.RIDER_CODE_4,
    C.RIDER_CODE_5,
    C.RIDER_CODE_6,
    C.RIDER_CODE_7,
    C.RIDER_CODE_8,
    C.MEDICARE_STATUS_FLG,
    C.OTHER_STATUS_FLAG,
    C.HIRE_DATE,
    C.ELIG_STATUS,
    C.PREM_OVERRIDE_STEP,
    C.PREM_OVERRIDE_AMT,
    C.PREM_OVERRIDE_CODE,
    C.SEQ_PROV_ID,
    C.IPA_ID,
    C.PANEL_ID,
    C.SEQ_PROV_2_ID,
    C.SECURITY_CODE,
    SYSDATE,
    USER,
    'TD33615',
    SYSDATE,
    USER,
    'TD33615',
    C.USER_DEFINED_1,
    C.SALARY,
    C.PEC_END_DATE,
    C.REASON_CODE,
    C.PEC_WAIVED,
    C.BILL_EFFECTIVE_FROM_DATE,
    C.BILLED_THRU_DATE,
    C.PAID_THRU_DATE,
    C.SUBSC_DEPT,
    C.SUBSC_LOCATION,
    C.USE_EFT_FLG,
    C.BENEFIT_START_DATE,
    C.SEQ_ENROLLMENT_RULE,
    C.MCARE_RISK_ACCRETION_DATE,
    C.MCARE_RISK_DELETION_DATE,
    C.MCARE_RISK_REFUSED_DATE,
    C.COMMENTS,
    C.USER_DEFINED_2,
    C.USER_DEFINED_3,
    C.RATE_TYPE,
    C.PCPAA_OCCURRED,
    C.PRIVACY_ON,
    C.PCP_CHANGE_REASON,
    C.SITE_CODE,
    C.SEQ_SITE_ADDRESS_ID);
    commit_cnt := commit_cnt + 1;
    if (commit_cnt = 1000) then
    dbms_output.put_line('Committed updates for 1000 records.');
    commit;
    commit_cnt := 0;
    end if;
    end loop;
    commit;
    dbms_output.put_line('Total number of MEMBER_ELIG_HISTROY records inserted : ' ||
    rec_cnt);
    exception
    when others then
    raise_application_error(-20001,
    'An error was encountered - ' || sqlcode ||
    ' -error- ' || sqlerrm);
    end;

    user10305724 wrote:
    I have tried both the Case statement and Decode function in Select cursor, but both the things are not working. Please define what you mean by not working even if your computer screen is near the internet we can't see it.
    You should also look at the FAQ about how to ask a question
    SQL and PL/SQL FAQ
    Particularly *9) Formatting with {noformat}{noformat} Tags* and posting your version.
    know the reason why decode is not working, I heard some where Case statement do not work with 8i.
    Does this mean you are using 8i? Then scalar sub queries - selects within the select list, are not supported, along with CASE in PL/SQL.
    Select DECODE(1,
    * (Select 1
    from hsd_prov_contract R
    where R.seq_prov_id = PM.seq_prov_id
    and R.line_of_business = H.line_of_business
    and R.PCP_FLAG = 'Y'
    and R.participation_flag = 'P'
    and SYSDATE between R.EFFECTIVE_DATE AND
    NVL(R.TERM_DATE,
    TO_DATE('31-DEC-9999', 'DD-MON-YYYY')))*,
    'Y',
    'N') PAR_FLAG,
    >
    exception
    when others then
    raise_application_error(-20001,
    'An error was encountered - ' || sqlcode ||
    ' -error- ' || sqlerrm);
    http://tkyte.blogspot.com/2008/01/why-do-people-do-this.html                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

  • Sum() function not working properly. Instead of summing, its showing total count of the rows

    We have migrated one application from .net framework 1.0 to .net framework  2 (from Visual studio 2003 to Visual STUDIO 2005). Now after migration we are facing some problem related to the sum function in Crystal report 10. It is not working properly.
    So we migrated to Crystal report XI release 2 (though still using evaluation version for testing purpose), the problem is not yet resolved.
    The problem we are facing is while using the summary in the group field, it is showing the number of rows instead of the sum of the values.
    We have checked the same with min-max functions, and it is working properly with those.
    We have tried to make the sum by formula field. In such case, it is not showing any syntactical error but at execution time, it is throwing an error saying "A number field or currency amount field is required here".
    In the  the report the datatype of the field on which we are applying the sum function, is number, and in the table from where the data is fetched, the datatype is numeric(9,6).
    Any idea why sum function is not working ?
    I was browsing the net and saw running totals can be a work around for such summation issues in Crystal Report XI.
    Can you please provide insight of how to implement running totals for summation purpose in solving such issues.

    Hi,
    Running totals are more accurate than Summary Totals in Crystal.  Why? ...ask Crystal.  Anyway, just right click on Running Totals, create a new one, and enter you fields, etc. For group totals, it gives you a place to reset the totals for each group, etc.  Pretty self explainatory. 
    Jim

  • Sum function not working properly in Crystal XI. Its showing total count of the values

    We have migrated one application from .net framework 1.0 to .net framework  2 (from Visual studio 2003 to Visual STUDIO 2005). Now after migration we are facing some problem related to the sum function in Crystal report 10. It is not working properly.
    So we migrated to Crystal report XI release 2 (though still using evaluation version for testing purpose), the problem is not yet resolved.
    The problem we are facing is while using the summary in the group field, it is showing the number of rows instead of the sum of the values.
    We have checked the same with min-max functions, and it is working properly with those.
    We have tried to make the sum by formula field. In such case, it is not showing any syntactical error but at execution time, it is throwing an error saying "A number field or currency amount field is required here".
    In the  the report the datatype of the field on which we are applying the sum function, is number, and in the table from where the data is fetched, the datatype is numeric(9,6).
    Any idea why sum function is not working ?
    I was browsing the net and saw running totals can be a work around for such summation issues in Crystal Report XI.
    Can you please provide insight of how to implement running totals for summation purpose in solving such issues.

    Are you seeing this happen in the Crystal designer as well, outside of any .NET application?

  • Exchange 2013 CAS - Round Robin DNS not working properly

    I have exchange 2013 server (2MB, 2CAS) server. I created two dns records for mail.test.com, autodiscover.test.com pointing to my two CAS servers.
    But the problem is if i switched of one cas server, client outlook not connecting automatically to other CAS server. By restarting the outlook also its not working. By restarting the system or running the command ipconfig /flushdns in command prompt, it
    working.
    is there any configuration iam missing, please advice how to achieve decent load balancing in Exchange 2013 CAS without going for third party Loadbalancer...

    I have exchange 2013 server (2MB, 2CAS) server. I created two dns records for mail.test.com, autodiscover.test.com pointing to my two CAS servers.
    But the problem is if i switched of one cas server, client outlook not connecting automatically to other CAS server. By restarting the outlook also its not working. By restarting the system or running the command ipconfig /flushdns in command prompt, it
    working.
    is there any configuration iam missing, please advice how to achieve decent load balancing in Exchange 2013 CAS without going for third party Loadbalancer...
    If a CAS role server is down or unable to service clients, you have to remove it from  DNS round-robin consideration manually. There is no health check with DNS round-robin unlike a true load balancer.
    Also, I would set the TTL to a low value for the CAS servers in the round-robin.
    Twitter!: Please Note: My Posts are provided “AS IS” without warranty of any kind, either expressed or implied.

  • Control key copy and paste, etc., not working

    I have just purchased a T440S Thinkpad. I am alarmed that Ctl + C and Ctl + V do not work.  Also, I cannot use the Control key in combination with + and -  to zoom in and zoom out.  The Control key in combination with the letter i does not italicize a blocked word.  Does anyone have a solution to this problem?  Will Lenovo technicians be able to provide a fix for this serious problem?   David

    Is this the case for both CTRL keys (you have a CTRL key on each side of the space key) or is one of them working?
    If the right CTRL key is working and the left CTRL key isn't, are you sure you didn't swap the Fn and CTRL key in BIOS?
    -gan

  • Why does the sum function not work when I try to add a column of decimal numbers?  The value is always returned as 0.  No problem with whole numbers but decimals do not work!

    just bought a MacBook Air and using Numbers to make a spreadsheet for financial purposes.  The sum function is working ok for whole numbers but when I try to sum a column of 2 decimal place numbers the result always comes back as 0.  Can anyone help?

    Hi laura,
    I suspect that your 2 decimal place numbers are formatted as text. Change the format of the column to currency and see it that works.
    Also You might want to update your profile to reflect your current systems!
    quinn

  • SUM function not working correctly (not a rounding issue)

    OK.
    So in the E-column, I have a list of statistics going from E4 through E11. E12 is supposed to give the sum of the preceding numbers within that range.
             E
    4     34000
    5      7000
    6      7000
    7    30500
    8      7000
    9      3000
    10          0
    11    1500
    The sum of these numbers should appear in the next row, E12, where I have the formula: "SUM E4:E11". However, whereas E12 should be giving me $91,000, it's instead giving me $57000. There's nothing that I can see that is wrong with my formula. If I modify one of the cell amounts, the 57000 will change by the amount I changed the cell. But there's no reason on earth it should be giving me 57000. I thought maybe there is an issue with how large a cell number can be, but if I change the 0 to a 1 in E10, it outputs 57001 to E12.

    I cannot confirm your problem.
    When I add: "34000+7000+7000+30500+7000+3000+1500" in the spotlight (top right of the menu bar),  the total of is 90,000
    Using Numbers, I also get 90,000
    =SUM(E1:E8)
    There is something wrong with your data.
    Please post a screenshot

  • TableCalcs method Sum does not work

    Hi all.
    I am newcomer in the ADOBE forms world and I am facing the following issue (although I 've been reading posts in SDN and respective manuals for over 3 days)
    My form's hierarchy is:
    (xfa.form.)
    -data
      -MasterPageSet1 (Page Set)
        ---Page1  (Master)
           --ContentArea
           --HeaderData (positioned subform with various elements)
           --FooterData (positioned subform with various elements)
        ---MainWindow (Flowed subform)
           --t_subf (Flowed subform)
            --Table (table which will show data from respective interface table)
               --Header
               --RowData (actual line items)
               --PageSum (table footer)
      Both RowData and PageSum have a decimal field named "DMBTR_S"
      At the end of every page, in the PageSum-DMBTR_S field, I want to sum the page's RowData[*]-DMBTR_S data to produce a "carry Fwd" for the next page.
      Looking through SDN and LiveCycle designer help, I have tried both using JavaScript and using the tableCalcs but with no luck
      Given that I am a newbie in both ADOBE forms and JS, I assume that I am missing some details.
      So, I suppose that the tableCalcs (with the parameters for the current page) can help me the most, without needing me writing JS.
      However, I do not understan at which level in the aforementioned hierarchy should I insert the tableCalcs.
      I tried inserting it under MainWindow subform and renamed the unnamed subform to "tcalc"
      Then, I set PageSum-DMBTR_S field to Calculated-ReadOnly, with Normal Bindin, and I write in the calculate event:
    if ( xfa.layout.page(this) == xfa.layout.pageCount())
    //I copy the header's amount as the final total :P
    this.rawValue = t_subf.TOT.rawValue;
    else
    //calculate the cummulative from age 0 to current
    this.rawValue = MainWindow.tcalc.tableCalcs.Sum("Table.RowData[*].DMBTR_S",0, xfa.layout.absPage(this)-1);
    When I preview the PDF inside the Form Builder (trans: SFP), PDF is generated successfully, without any warnings/errors at all.
    What am I missing here?
    Thank you in advance,
    George

    Hello Otto and thanks for the reply.
    a) I could indeed do it in the backend but that means that I have to hardocde the max number of line items per page. I always prefer to decouple application logic (the printing program) from the presentation medium ( the form). However, that would be me utmost way of doing it, as the time is against me...
    b) I understand what you mean, but I don't have a single clue how to do it with Javascript Pretty smart, but I would prefer the (a)  approach, as I can code it way much faster with ABAP in the printing program
    c) another solution may be the tableCalcs. This "collection" of objects/methods has already implemented a Sum method which seems to do exactly what I need. I have read both the PDF documents you mention but unfortunately I haven't managed yet to make it work in a... stylish (!!!) way.
    In page 103, the "lc_designer_scripting_basics.pdf" offers a JS snippet to "calculate the sum of repeating fields". I have alse tried this approach but it seems that the statement  var fields = xfa.resolveNodes("RowData[].DMBTR_S[]"); doesn't work at all. I have included it in a "try-finally" block and it fails...
    Anyway, I will keep trying and come back to the post. If you have done anything similar I would appreciate it if you could post any relevant JS code snippet.
    Thanks again,
    George

  • HP Envy 17-1181NR, Startup Repair / Recovery Manager / etc. not working

    Okay, I've read some other similar threads made recently ("HP DV7 Recovery Issues", "HP Envy 17-2100ex") but feel I need to ask for help for my specific circumstances.
    Model: HP Envy 17-1181NR
    Product No.: YL747UA#ABA
    SN: CNF0414VRL
    Hardware: 17.3" Notebook, Intel Core i7-720QM processor, 750 GB HDD, 6 GB mem ...
    OS: Windows 7 Home Premium 64-bit
    Noticed computer was running really slow last night and this morning, ctrl+alt+del to bring up task manager, eventually saw that somehow (maybe with a recent upgrade?) msmpeng.exe was started and running, though I had disabled it long ago. I killed the process tree within task manager.
    Looked online and read how much of a bother this msmpeng.exe can be and resolved to disable it again to keep it from starting automatically at Windows startup. So following what I read, ctrl+r, typed msconfig, used that to disable the antimalware services that launch/use msmpeng.exe and a couple other services that seemed completely unnecessary (I was 95% sure).
    Restarted machine to have changes take effect, came back to it minutes later frozen at a wallpaper that's blue with light rays coming down through it, as with sunlight through water. Mouse cursor moves, but unresponsive to all keyboard and mouse button input. Later discovered this screen is the background to the Recovery Manager, which was hung...
    Later discovered what had happened: that on the first restart, starting Windows normally, it reached a BSOD with message:
    "UNMOUNTABLE_BOOT_VOLUME" ...blah, blah, blah, * * * STOP: 0x000000ED (0xFFFFFA80064D8C00,0xFFFFFFFFC0000185,0x00000...,0x00000...
    Which flashed for a split second before auto-restart, this time stopping at "Windows Error Recovery" screen giving choice between "Launch Startup Repair" and "Start Windows Normally" again. The former happened automatically after 30 second or whatever time delay, and then after loading files, hung at the water-screen described earlier. I can repeatably encounter these two outcomes for the two choices on the "Windows Error Recovery" screen.
    Hitting escape after restart, and hitting F11 for "System Recovery" takes me to same water-screen hang point. I tried looking at system info, then doing system diagnostics, tried different scans and eventually the system tune-up scan. This failed with:
    Memory Test: PASSED
    SMART Check: PASSED
    Short DSTL FAILED
    FAILURE ID: 94UFL3-5B65QF-XD002K-6OUL03
    PRODUCT ID: YL747UA#ABA
    Hard Disk 1
    This made me think of a disc error and that I can't trust Recovery Manager to be launched correctly from the recovery partition, D:, so I popped in my recovery DVD (first of 5 burned from recovery partition much earlier). Choosing repair options in the startup from this disk, after changing the boot device order in the BIOS settings (F10), brought me to the very same hanging at the water-screen.
    I then tried F8 for "Advanced Boot Options" and various safe modes with the intent of reaching a command prompt to run "chkdsk /f /r" and/or "fixboot". But it can't get past loading the CLASSPNP.SYS driver. And without a command prompt now, I can't very easily copy in a pristine CLASSPNP.SYS from matching model / OS.
    Is this HDD gone bad, just coincidentally with what I'd changed? Or is this a software issue as I'd be inclined to believe? Any thoughts or inputs from anyone will be much appreciated. Thanks.

    Hi
    I found some info that may help you
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c01890478
    http://h10025.www1.hp.com/ewfrf/wc/document?cc=us&lc=en&dlc=en&docname=c01867124
    Hope this helps.
    ***** Click the KUDOS Thumbs UP (Like) on the left to say 'Thanks'*****
    ****Make it easier for other people to find solutions, by marking my answer “Accept as Solution”&"Kudos"if it solves your problem.****
    -VJ
    Although I am an HP Employee, I am speaking for myself and not for HP.

  • Why SUM is not working in SSRS

    Hi,
    I'm new to SSRS and am having a problem. I am trying to replicate the value of sum(sum(field)) using lookupsets and custom code function.  I have this little function which works fine.
    PUBLIC SHARED FUNCTION CalcPTD2(LookupArray AS OBJECT) AS INTEGER
         DIM i,Total AS INTEGER
         Total = 0
         FOR i = 0 to UBOUND(LookupArray)
               Total = Total + CINT(LookupArray(i))
         NEXT i
     RETURN  Total
    END FUNCTION
    I call this function with the following call:
    Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))
    The output of this function is a row of data consisting of 28, 47, 35, 43, 41
    If I use COUNT on the output of the function like this COUNT(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))) I get the
    result of 9
    If I use SUM on the output of the function like this SUM(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))) I get the result
    of 353
    I set up a global counter and it showed it was only entering the function 5 times as expected. So where is the extra data coming from? Is this an invalid use of SUM or COUNT? What is a replacement? Earlier in my report I reference SUM(SUM(Fields!DailyHours.Value)
    which is the result I am looking for. I can't reference it here because the matrix is associated with another dataset. And splitting it out into another matrix is not an option.
    Thanks in Advance
    Ann

    Here is a copy of my expressions and a copy of my data. The expressions match up going from left to right
    Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4"))
    sum(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    count(Code.CalcPTD2(Lookupset(FORMAT(Fields!REALDATE.Value,"Long Date"),FORMAT(Fields!CallbackDate.Value,"Long Date"),Fields!DailyHours.Value,"DataSet4")))
    PUBLIC SHARED FUNCTION CalcPTD2(LookupArray AS OBJECT) AS INTEGER
         DIM i,Total AS INTEGER
         Total = 0
         FOR i = 0 to UBOUND(LookupArray)
               Total = Total + CINT(LookupArray(i))
         NEXT i
     NumberTimes  =   NumberTimes +1
    RETURN  Total
    END FUNCTION

  • GigaWorks S750 with DDTS-100 Decoder - Center/Sub channel not working.

    I have the S750 with the DDTS decoder and everything was working fine until the other day. I have tested several times and from what I can tell there is no signal being sent from the sub to the decoder from the Center/Sub channel wire (S750 sub) to the decoder. Plugging the center speaker wire into the left speaker jack will produce a test signal so I know it is not the speaker. Seems the sub has gone out along with the center channel. I checked the fuse and all is well. Please help...
    Message Edited by aosbeck on 04-15-2008 06:19 PM

    shin8,
    Are you getting proper output if you use the "TEST" button on the remote control?
    Daniel

  • Shape layer / round corners does not work with merge paths

    hi.
    thought I'd try something that works just fine in Illustrator.
    merge 2 paths, and then run a round corner on the resulting path.
    it doesn't work. I think if you asked any user if they thought it should work, they'd say: Yes I'd expect the round corner to work in that instance.

    upon further reflection, it's not just ellipses. it's any shapes that are already roundish in the intersection area.
    when I collapse the tension on the points of the same two paths...

  • Problem with defaultCommand - buttons, links, etc not working

    Hi,
    I've used the defaultCommand attribute on a number of pages in an application, and have noticed a serious problem :
    After hitting enter, if no navigation occurs (i.e. only PPR), nothing on the page works anymore - no buttons, links, etc.
    Is this a known issue? If so, is there a way to fix this?
    Also, if an inputTextField has a f:validateLongRange tag, and the user enters an invalid value (i.e. text, or something out of range), when enter is pressed the entire page disappears, and I'm left with only the validator's error message. I know I could work around this by performing my own validation, but that is less than ideal.
    Any help would be greatly appreciated. Thanks
    Message was edited by:
    lturner

    Hi,
    it does reproduce and I filed a bug. The work around is not to use the "defaultCommand" property as it works when e.g clicking onto the button
    Frank

Maybe you are looking for

  • Why does new Skype work with one user, and not another?

    Running 19.4.5, I installed the latest version of Skype. (I do not activate it on login) This opens, but crshes/unexspectedly quits on "sign in". I tried the same with a "new user", and the app opened fine. I compared the two users to make sure that

  • Delete All Calendars from iPad?

    Simple question; hopefully a simple solution. I want to delete all calendars from my iPad2, so that I can then copy the calendars from my Mac onto it? I want all of the data deleted from my iPad, and don't want it to show back up again. Like I said,

  • There was a problem connecting to the server "router"

    I just recently purchase AirPort Extreme and i have connected my External hard drive to my AirPort Extreme. when I open my MacBook Pro, I am getting this message "There was a problem connecting to the server "router". Also it says The server may not

  • Is there a date entry widget for XMP custom file info panels?

    Looking through the Custom File Info Panels documentation, the samples, and the default info panels presented in Photoshop, I can't find any reference to a date entry widget - the closest I've seen is the date_static_text widget. Is there any way to

  • Issue installing 1.4.2_08 on XP (error 1722 problem with Windows Installer)

    First time poster guys, so be gentle. I have installed this older package on 20+ PCs, but this one is kicking my arse. It makes it through the install and then at the very end puts up: Error 1722. There is a problem with this Windows Installer packag