Rtf:Sum null

Hi,
I want my pdf report to look like
Type                        --Best-Qual---Mid-Qual---Non-Qual
M                                     20.69%-----79.31%----0.00%
V                                     100.00%----0.00%-----0.00%
Total                                72.94%---27.06%----The Total line does not have anything for Non-qaul as there is no xml generated for it. I want to show 0.00% in total non-qual
My rtf is
<?for-each:LIST_Interchange_Qualilfication_Summary?>
<?for-each-group:Interchange_Qualilfication_Summary;./Interchange_Qual_Card?>   <?Interchange_Qual_Card_Desc?>   <?if:Interchange_Qual_Card='M'?><?xdoxslt:ifelse((current-group()[Interchange_Qual_Desc='BEST-QUAL']/Interchange_Qual_Count!='' ),current-group()[Interchange_Qual_Desc='BEST-QUAL']/Interchange_Qual_Count,'0') div (//Interchange_Tran_Count_Per_mc)*100?>%<?end if?>-----------------
Total             ------------------------<?for-each-group:Interchange_Qualilfication_Summary;./Interchange_Qual_Desc?><?if:Interchange_Qual_Desc='NON-QUAL'?><?xdoxslt:div((sum(current-group()/Interchange_Qual_Count)),(//Interchange_Tran_Count_Per_mc+//Interchange_Tran_Count_Per_v))*100?>%<?end if?><?end for-each-group?>
<?end for-each-group?>And the xml is
<LIST_Interchange_Qualilfication_Summary>
<Interchange_Qualilfication_Summary>
<Interchange_Qual_Card>M</Interchange_Qual_Card>
<Interchange_Qual_Card_Desc>M</Interchange_Qual_Card_Desc>
<Interchange_Qual_Desc>BEST-QUAL</Interchange_Qual_Desc>
<Interchange_Qual_Count>12</Interchange_Qual_Count>
<interchange_qual_amount>9044.98</interchange_qual_amount>
<Interchange_Qual_Sort>M1</Interchange_Qual_Sort>
<interchange_tran_avg_ticket>753.75</interchange_tran_avg_ticket>
</Interchange_Qualilfication_Summary>
<Interchange_Qualilfication_Summary>
<Interchange_Qual_Card>M</Interchange_Qual_Card>
<Interchange_Qual_Card_Desc>M</Interchange_Qual_Card_Desc>
<Interchange_Qual_Desc>MID-QUAL</Interchange_Qual_Desc>
<Interchange_Qual_Count>46</Interchange_Qual_Count>
<interchange_qual_amount>15312.05</interchange_qual_amount>
<Interchange_Qual_Sort>M2</Interchange_Qual_Sort>
<interchange_tran_avg_ticket>332.87</interchange_tran_avg_ticket>
</Interchange_Qualilfication_Summary>
<Interchange_Qualilfication_Summary>
<Interchange_Qual_Card>V</Interchange_Qual_Card>
<Interchange_Qual_Card_Desc>V</Interchange_Qual_Card_Desc>
<Interchange_Qual_Desc>BEST-QUAL</Interchange_Qual_Desc>
<Interchange_Qual_Count>112</Interchange_Qual_Count>
<interchange_qual_amount>37484.57</interchange_qual_amount>
<Interchange_Qual_Sort>V1</Interchange_Qual_Sort>
<interchange_tran_avg_ticket>334.68</interchange_tran_avg_ticket>
</Interchange_Qualilfication_Summary>
</LIST_Interchange_Qualilfication_Summary>
<LIST_Interchange_Tran_mc>
<Interchange_Tran_mc>
<Interchange_Tran_Count_Per_mc>58</Interchange_Tran_Count_Per_mc>
</Interchange_Tran_mc>
</LIST_Interchange_Tran_mc>
<LIST_Interchange_Tran_v>
<Interchange_Tran_v>
<Interchange_Tran_Count_Per_v>112</Interchange_Tran_Count_Per_v>
</Interchange_Tran_v>
Thnx

http://winrichman.blogspot.com/2009/09/summation-of-deficit-data-2.html
http://winrichman.blogspot.com/2009/09/summation-of-deficit-data.html

Similar Messages

  • Problem with Cross-tab report (RTF Template) null values, current-group()

    Hi, experts!
    I generate Cross-tab report using RTF Tamlpate and I have problem with grouping.
    My XML file have to be with one group only because I want to using dynamic regrouping inside the RTF template.
    Here is my data structure (XML file):(Look the images for details)
    http://img156.imageshack.us/img156/3997/xmlstructureay9.jpg
    =======================
    WITH GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/2951/resultcrosstabbycustomehf8.jpg
    When I'm using grouping and I want to have for each group cross-tab report I have the following problem: (Look the images for details)
    http://img156.imageshack.us/img156/8786/resultcrosstabbycustomect9.jpg
    And this is my code I'm using inside the RTF template with groups:(Look the images for details)
    http://img156.imageshack.us/img156/4253/fieldbrowserxb7.jpg
    +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
    =======================
    WITHOUT GROUPS
    =======================
    Here is my RTF template:
    http://img151.imageshack.us/img151/9545/resultcrosstabwithoutgrzg7.jpg
    When I generate one cross-tab there is no problem: (Look the images for details)
    http://img156.imageshack.us/img156/7030/resultcrosstabwithoutgrsr1.jpg
    This is my code I'm using inside the RTF template WITHOUT groups:(Look the images for details)
    http://img151.imageshack.us/img151/7030/fieldbrowserwithoutgrours8.jpg
    Can someone give me a hand to deal with this?
    Thank you!

    Pitson,
    better to ask this question in the BI Publisher Forum than here in the Oracle Reports Forum:
    BI Publisher
    Regards
    Rainer

  • Mdx : Sum up the measure from start but need only non empty rows

    Hi All
    i have created a calculated measure where it suming up all its previous avaialable values based on Date dimension.
    Everything is working but we are getting all rows from that datetimension . how can get only till current date,
    SUM(NULL:[Date].[Hierarchy].currentmember,[Measures].[SIMID])
    Surendra Thota

    Hi Surendra,
    According to your description, you want to calculate the sum up the measure from start for those non empty rows, right?
    In this case, please try the query below.
    WITH MEMBER [Measures].[Sum from start]
    AS
    SUM ({NULL:[Date].[Calendar].CurrentMember},
    [Measures].[Internet Sales Amount])
    SELECT {[Measures].[Internet Sales Amount],[Measures].[Sum from start]} ON 0 ,
    nonempty([Date].[Calendar].[Calendar Year].MEMBERS) ON 1
    FROM [Adventure Works]
    Result
    Besides, here is a blog which describe various way to calculate running total, please see:
    http://blog.sqltechie.com/2011/01/various-way-to-calculate-running-total.html
    Regards,
    Charlie Liao
    If you have any feedback on our support, please click
    here.
    Charlie Liao
    TechNet Community Support

  • AP Cheque Printing Report

    Hi All,
    Can anybody help me out to do the AP cheque printing report using XML Publisher.
    Followings are the steps I did.
    1. Create rdf and register in APPS.
    Executable is defined in Customization AP application
    Concurrent Program is in Payables application.
    2. Create Data Definition and Template in XML Publisher administrator in Payables.
    3. Attached the Concurrent program in AP Format set up.
    4. Make the Payment, The report is calling and showing completed normal but the output is not coming.
    5. Then I run the XML report Publisher and pass the request id then the output is coming as PDF.
    But the requirement is when we make the payment , The output should come and it will go to the printer for printing..
    Please help me where I made the mistake.
    or please guide me what approach I should follow.
    Thanks in Advance.
    Pradipta

    Here is my code:
    function AfterReport return boolean is
    vrequest_id number;
    v_success BOOLEAN;
    v_printer fnd_concurrent_requests.printer%TYPE;
    v_print_style fnd_concurrent_requests.print_style%TYPE;
    begin
    -- Set up printer for the following reports
    -- Get the printer and style for this report for use with the following reports select printer, print_style
    into v_printer, v_print_style
    from fnd_concurrent_requests
    where request_id = :P_CONC_REQUEST_ID;
    srw.message(999, 'Print options: ' || v_printer || '/' || v_print_style);
    v_success := fnd_request.set_print_options (v_printer
    ,v_print_style
    ,1
    ,TRUE
    ,'N'
    ,'SKIP'); IF NOT v_success THEN
    srw.message(999, 'Failure to set print options'); ELSE
    srw.message(999, 'Print options set'); end if;
    -- Submit the XML Report Publisher request to complete the printed Dunning Letters
    vrequest_id := FND_REQUEST.SUBMIT_REQUEST('XDO',
    'XDOREPPB',
    NULL,
    NULL,
    FALSE,
    :P_CONC_REQUEST_ID,
    222, -- Receivables
    'XX_ARDLPPRT_RPT',
    'en', 'N', 'RTF', 'PDF', NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL);
    -- commit to submit request
    commit;
    IF vrequest_id = 0 THEN -- if request id
    srw.message(999, 'Failure to submit Concurrent Request to Print Dunning Letters');
    ELSE
    srw.message(999, 'request id ' || to_char(vrequest_id) || ' submitted');
    end if;
    -- Original Afterreport trigger stuff
    SRW.DO_SQL('alter session set sql_trace false');
    return (TRUE);
    end;

  • Time Machine won't back up properly.

    Greetings everyone,
    I am running into some problems with Time Machine. For one reason or another, it won't conduct a full back up of my system to external hardrives. I have tried to back up my MBP with one old and one brand new Seagate External Hard Drive (with more than enough storage space available) yet I continue to run into the same problem. The backup stalls with roughly 50GBs or so of data remaining. I have made sure that all the necessary drive settings are correct and that my MBP HD is verified etc. Could someone advise of any issues that may be affecting this?

    Trying Pondini's Time Machine Buddy. Getting this messagE- can anyone interpret these hieroglyphs?
    I tried erasing and reformatting an external HD to Pondini's instructions but the initial TM back-up always fails.
    Starting standard backup
    Backing up to: /Volumes/Untitled/Backups.backupdb
    Ownership is disabled on the backup destination volume.  Enabling.
    Event store UUIDs don't match for volume: Macintosh HD
    Backup content size: 104.8 GB excluded items size: 7.9 MB for volume Macintosh HD
    No pre-backup thinning needed: 125.75 GB requested (including padding), 465.29 GB available
    Waiting for index to be ready (909 > 0)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/iWidgets.framework/Versions/A/Resour ces/HUD-DctrlRight-N.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/iWidgets.framework/Versions/A/Resour ces/HUD-DctrlUp-H.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/iWidgets.framework/Versions/A/Resour ces/HUD-DctrlUp-P.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFArchiving.framework/Versions/A/Res ources/fi.lproj/Localizable.strings to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFControls.framework/Versions/A/Reso urces/rotate_knob_select-b.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFControls.framework/Versions/A/Reso urces/SFCDisclosureArrowDown.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFDrawables.framework/Versions/A/Res ources/French.lproj/Localizable.strings to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFDrawables.framework/Versions/A/Res ources/French.lproj/SFDMotionPathToolHUD.nib/keyedobjects.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFDrawables.framework/Versions/A/Res ources/Rotate4.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFDrawables.framework/Versions/A/Res ources/Rotate5.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFDrawables.framework/Versions/A/Res ources/Spanish.lproj/Localizable.strings to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFDrawables.framework/Versions/A/Res ources/Spanish.lproj/SFDAutoMaskHUD.nib/keyedobjects.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFInspectors.framework/Versions/A/Re sources/English.lproj/SFIMetricsInspector.nib/keyedobjects.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFInspectors.framework/Versions/A/Re sources/English.lproj/SFIMovieInspector.nib/info.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFInspectors.framework/Versions/A/Re sources/hud-icon_exposure-min.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFInspectors.framework/Versions/A/Re sources/hud-icon_sharpen-min.tiff to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFInspectors.framework/Versions/A/Re sources/Japanese.lproj/SFITextListSubInspector.nib/keyedobjects.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFInspectors.framework/Versions/A/Re sources/zh_CN.lproj/SFIFillSubInspector.nib/keyedobjects.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFLicense.framework/Versions/A/Resou rces/da.lproj/SACountry.strings to (null)
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFLicense.framework/Versions/A/Resou rces/English.lproj/License.rtf to (null)
    Stopping backup.
    Error: (-36) SrcErr:YES Copying /Applications/iWeb.app/Contents/Frameworks/SFProofReader.framework/Versions/A/R esources/Portuguese.lproj/Hyphenation.dat to (null)
    Copied 89 files (2.0 GB) from volume Macintosh HD.
    Copy stage failed with error:11
    Backup failed with error: 11

  • Calling a XML Publisher report  from FND_SUBMIT_REQUEST

    Hi,
    I need to submit a XMLP report from FND_SUBMIT_REQUEST.
    The report will have say, 4 templates for 4 seperate languages.
    Now, when i call the report from submit request, i need to give the name of a template that will get attached.
    Does anybody have any idea which parameter in the submit request parameter list takes the name of a template?
    Please let me know if anybody has any info on this.
    Can mail me at [email protected]
    Regards,
    Satrajit

    Hi,
    You can use FND_REQUEST.SUBMIT_REQUEST for submitting the report. The syntax is as follows:
    function FND_REQUEST.SUBMIT_REQUEST
    (application IN varchar2 default NULL,
    program IN varchar2 default NULL,
    description IN varchar2 default NULL,
    start_time IN varchar2 default NULL,
    sub_request IN boolean default FALSE
    argument1,
    argument2, ..., argument99,
    argument100) return number;
    Here is the code that I used for submitting XML Report Publisher from within my Oracle Report's AfterReport trigger. The parameters are explained.
    a:=FND_REQUEST.SUBMIT_REQUEST('XDO', 'XDOREPPB','Varun XML Report Printing', NULL, FALSE, :P_CONC_REQUEST_ID , 'MYONT','MY_PREPACK_XML','en-US' ,'N', 'RTF', :p_output_format,NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL );
    srw.message(123,'Value of New Request : ' || a ||' Output Format :'||:p_output_format);
    Hope it helps.
    Thanks
    Varun

  • Calling a xml publisher report from Ebs - question

    Hi,
    I know how to call a xml report from ebs using concurrent manager. But i want to open it from a form in application.
    My situation is this:
    There is a form in the payables modelue, where i search for all the invoices.
    There is also a button action in this form wich take the id of the row in wich it is my position and open a rtf raport with this id.
    What i need to do is to call my xml report in this button . To pass my raport the id of the row in wich i am and open my report with paramateres.
    Can this be done? Has anyone tried this before?
    Thanks in advance,
    Best regards

    Hi,
    You can use FND_REQUEST.SUBMIT_REQUEST for submitting the report. The syntax is as follows:
    function FND_REQUEST.SUBMIT_REQUEST
    (application IN varchar2 default NULL,
    program IN varchar2 default NULL,
    description IN varchar2 default NULL,
    start_time IN varchar2 default NULL,
    sub_request IN boolean default FALSE
    argument1,
    argument2, ..., argument99,
    argument100) return number;
    Here is the code that I used for submitting XML Report Publisher from within my Oracle Report's AfterReport trigger. The parameters are explained.
    a:=FND_REQUEST.SUBMIT_REQUEST('XDO', 'XDOREPPB','Varun XML Report Printing', NULL, FALSE, :P_CONC_REQUEST_ID , 'MYONT','MY_PREPACK_XML','en-US' ,'N', 'RTF', :p_output_format,NULL, NULL, NULL, NULL,
    NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL, NULL,NULL );
    srw.message(123,'Value of New Request : ' || a ||' Output Format :'||:p_output_format);
    Hope it helps.
    Thanks
    Varun

  • Excel Output appears in IE after submitting XDOREPPB from backend

    Hello,
    I have submitted the XML Report Publisher request with Output Format = EXCEL from Standard Request Submission and after completion clicked View Output, it asks me to save the file as EXCEL format.
    While doing the same exercise from backend, it doesnot ask me to save type as EXCEL, rather it automatically opens in the Browser (Internet Explorer).
    I'm using the following piece of code
    --To Set the layout
    x_add_layout:= FND_REQUEST.ADD_LAYOUT(Template_appl_name=> v_application_name
    ,Template_code => v_template_code
    ,Template_language => 'en'
    ,Template_territory => ''
    ,Output_format => 'EXCEL');
    --Then submitting the request
         v_xml_request_id :=fnd_request.Submit_request('XDO'
    ,'XDOREPPB'
    ,FALSE
    ,v_request_id
    ,20015 --application
    ,'GEPSJENFNDSCURS' --template
    ,'N'
    ,'RTF'
    ,'EXCEL'
    ,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL);
    I'm wondering if this is a issue with BI Publisher (5.6.3) or Oracle EBS (11.5.10.2).
    Please help.
    Thanks & Regards

    Hey Iam also getting this problem..by using xdoreppb I am getting the output in excel format but not getting the data populated into that..
    Please help if you have any solution

  • How to get the opening balances for lessthan selected date in cubes.

    Hi All,
    my task is to get the opening balances for the selected date.
    Ex: If I select date say 31-1-2013, I should get the sum of values which are less than the selected date.
    in sql:
    select sum(balance) from banktrans where banktrans.transdate < 31-1-2013;
    BankTable                            BankTrans
    BankId                               BankId
                                            balance
                                            transdate
    BankTable (records):
    SCB
    BankTrans(records):
    a) SCB, 15000, 10-02-2013
    b) SCB, 20000, 31-01-2014
    c) SCB, 50000, 21-09-2012
    If I select date as 31-01-2014, I should get the value as 65000 
    If I select date as 10-02-2013, I should get the value as 50000
    Date will be dynamic selection from years months days hirearchy ( time dimension)
    How can i achieve this?  
    any help is much appreciated.
    Thanks,
    Rakesh

    Dear David,
    I've tried the below with static date but i'm not getting the values which are sum of less than the given date.
    I've given 1st jan 2013 as static date and I need to get the sum of values which are less than the 1st jan date.
    CREATE
    MEMBER
    CURRENTCUBE.[Measures].[OPENBALANCE]
    AS
    Sum({Null:[Time].[Years
    Quarters Months Weeks Days].[Days].&[2013-01-01T00:00:00]},[Measures].[AmountCur]]),
    FORMAT_STRING
    = "Standard",
    VISIBLE
    = 1
    can you plz check the above once and guide me.
    Thankyou,
    Rakesh

  • Report 2.5 : How to get error

    Hi,
    I have done the migratation of our application from report 2.0 to
    report 2.5.
    When a preview is starting, a window 'Report Progress' appeared
    with a cancel press button.
    If I press this button during "Initialilizing report" message, a
    REP-0099 report is aborted at upon user request, after cliquink
    on Ok, no report preview appears. It's Ok for me.
    The same actions during "Formating Page x" make the message
    REP-0099 appeared and the preview is ran. By navigating on the
    report preview (next page), the REP-099 message appeared at the
    page number for which the cancel operation have been processed.
    I had tried to get the error number (srw.geterr_run) in all form
    triggers. It doesn't work.
    What i want is to stop the Report preview if the user had pressed
    the Cancel button.
    So, I would like to know if you have a method to stop the report
    when Cancel button is pressed on the "Report Progress" window (by
    getting error message in forms, or any other method).
    Thanks.
    DAVID RONGEAT.
    null

    It's not possible to use wild-cards in sql-substitution.
    Here are your choices :
    1) write xquery that does what you need - something like :
    if ( sum( $whatever) ne 0 ) then
    sum( $whatever )
    else (: need to distinguish between sum==0 and sum==null :)
    if ( some $x in TABLE()
    where $x/key eq $thekey ) then
    0 (: there were matching rows, but whatever we were summing was still 0 :)
    else (: no matching rows, sum was 0 )
    -9999
    This is likely going to result in some ugly/less efficient sql
    2) use sql substitution where needed. I don't see this as being any more evil than (1). If you have ten places where you need to do sql substitution - there will be ten places where you need to do (1), correct?
    3) Create a Physical Data Service based on the sql-statement that you want to have executed. This is about as much work as (2), and about twice as hard to get correct.
    4) open a case with customer support for a product enhancement. You won't get this enhancement - trust me.
    5) change your requirements
    6) Post here again asking "but can I do xyz instead?" - in which case I will point you to this case with the six options.

  • AP Check printing

    Hi,
    Currently our AP checks print directly to a xerox printer once the concurrent program completes, using a 3rd party tool. I have converted the report to xmlp and am now trying to figure out how to get the same results. Is there a way to not open the PDF file and have it print directly to a printer? Any help would be appreciated.
    Thanks!

    When I try this, the call to the template is not made...
    begin
    printer := fnd_request.set_print_options(
    'xerox4635',
    'PORTRAIT',
    1,TRUE,'N');
    return (TRUE);
    end;
    begin
    req_id := fnd_request.submit_request(
    'XDO','XDOREPPB',NULL, null,FALSE,
              :p_conc_request_id,200,'APXPBFOR','en-US','N',
         'RTF','PDF',null,null,null,null,null,null,
    null,null,null,null,null,null,null,null,null,null,
    null,null,null,null,null,null,null,null,null,null,
    null,null,null,null,null,null,null,null,null,null,
    null,null,null,null,null,null,null,null,null,null,
    null,null,null,null,null,null,null,null,null,null,
    null,null,null,null,null,null,null,null,null,null,
    null,null,null,null,null,null,null,null,null,null,
    null,null,null,null,null,null,null,null,null,null,
    null,null,null,null,null,null,null);
    return (TRUE);
    end;

  • Setting breaks in tabular forms

    Has anyone had any luck with setting breaks in tabular forms. It seems so straight forward, yet it does not work for me.
    I have a report with the first column called tail_number followed by many other fields.
    I set the break formatting to
    Breaks = First Column
    Display the text on report breaks... = Total: #SUM_COLUMN_HEADER#
    For Repeat Heading Breaks: <b>Details for Tail: #COLUMN_VALUE#<b/>
    This all came straight from the book Pro Oracle Application Express.
    Any ideas?
    Sandra

    Hi Sandra,
    I created a report against 'select tailnumber, serialnumber, itemnumber from aircraftitems'
    I am showing all columns and have a sum on itemnumber.
    Using theme Red and region template Reports Region (maybe some templates are temperamental on this)
    In Break Formatting...
    Display this text when printing report sums = null
    Breaks = First Column
    Display this text on report breaks...= Total: #SUM_COLUMN_HEADER#
    When displaying a break row...= null
    When displaying a break column...=null
    When displaying a break row...= null
    Identify how you would like your breaks = Repeat Headings on Break
    For repeat headings breaks use...= Details for Tail: #COLUMN_VALUE#
    And this worked as expected for the break and summary row.
    Break Test     
    Details for Tail: N148FJ
    AIRCRAFTSERIALNUMBER     ITEMNUMBER
    074     9
    074     5
    074     2
    074     3
    074     4
    074     5
    Total: TAILNUMBER     28

  • Cannot be applied to (java.io.PrintWriter) error

    Hi guys I get the following errors when trying to compile my program and I was wondering how to solve it
    printPay() in PaySlip cannot be applied to (java.io.PrintWriter)
    slip.printPay(slipWrite)
    import java.io.*;
    public class PayApp
      public static void main(String[] args)
        boolean end_of_file = false;
        EmpInFile   f1 =  new EmpInFile(); 
        EmpOutFile  f2 =  new EmpOutFile();
        Employee    emp = null;       
        PaySlip     slip = null;           
        Report   sum = null;     
        PrintWriter slipWrite = null;
        PrintWriter sumWrite  = null;
        if (args.length != 4)    // correct number ?
          errExit("Names of Input employee file , output employee file, payslip file \n, and report file required");
         emp = new Employee();
         sum =   new Report();
         slip  = new PaySlip(emp,sum);
       try
           f1.openFile(args[0]);  
           f2.openFile(args[1]);  
           slipWrite = new PrintWriter(new FileWriter(args[2]));
           sumWrite =  new PrintWriter(new FileWriter(args[3]));
          catch(IOException e)
             System.err.println("error opening files" + e.toString());
             System.exit(1);
         while (!end_of_file )
            end_of_file = f1.readRecord(emp);
            if(!end_of_file)
               slip.printPay(slipWrite); 
               f2.addRecord(emp);  
            }// end if ! end
          }// end while
           System.out.println("All employees processed ");
           sum.printTotals(sumWrite);  
           sumWrite.flush();
           sumWrite.close();        
           slipWrite.flush();
           slipWrite.close();
           f1.closeFile();
           f2.closeFile();
      static void  errExit(String message)
       System.err.println(message);
       System.exit(1);
    public class PaySlip
    // declare variables
         private double gross;
         private double tax;
         private double taxcredits;
         private Employee emp;
         private Report rep;
         public PaySlip (Employee e, Report r)
         emp = e;
         rep = r;
         double gross = 0;
         double tax = 0;
         double taxcredits = 0;
         public void setGross(double gr)
         gross = gr;
         public void setTax(double tx)
         tax = tx;
         public void settaxCreds(double taxcreds)
         taxcredits = taxcreds;
         public void printPay()
         emp.calcPay(this);
         double netpay;
         netpay = gross - tax;
         System.out.println("____________________________________________________");
         System.out.println("               Payslip Information                  ");
         System.out.println("Employee Name: \t\t" +emp.getFirst() +" "+ emp.getLast());
         System.out.println("Employee Id: \t\t" +emp.getId());
         System.out.println("Net Pay: \t" +netpay);
         System.out.println("Year To Date Gross: \t" +emp.getYtdGross());
         System.out.println("Year To Date Tax: \t" +emp.getYtdTax());
         System.out.println("____________________________________________________");
         System.out.println("               Department Totals                    ");
         char dcode = emp.getDeptCode();
         rep.addToTotals(gross,tax,dcode);
    }Any help would be greatly appreciated.

    Post the actual error which would in include a line number when noting errors.
    slip.printPay(slipWrite); The method printPay() does not take parameters. So you can't put 'slipWrite" there.

  • I cant get past the first backup with time machine!

    I have been using my iMac Os X 10.5 happily since 2008, but over the last months I have been getting the SBBoD more and more often. Since I have never used time machine before, i.e never done a backup (at this mac, I know its smart and how its done, I'm was just lazy and out of HDs) I feel my time is running out! I configured a brand new WD Elements external HD (2 terrabit, USB 2.0) in time machine, and everything goes smooth untill time machine aborts the backup due to some error. Please help, I am in desperate need of a backup!

    heres my crash log from last time. It changes a bit from time to time though.
    Starting standard backup
    Backing up to: /Volumes/uten navn/Backups.backupdb
    Event store UUIDs don't match for volume: 
    No pre-backup thinning needed: 307.59 GB requested (including padding), 1.80 TB available
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/460.icns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/910.icns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/CLJ3000.icn s to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/CLJ3800.icn s to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/cljCM6040mf p.icns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/cljCP6015.i cns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/DJ3900.icns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/DJ5400.icns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/DJ5900.icns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/DJ6940.icns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/DJ6980.icns to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/djD1500.icn s to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/DJD2300.icn s to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/djD2400.icn s to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/djD2500.icn s to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Support/hp/hppa/Plugins/ConfigurationPage.plugin/Contents/Resources/djD4200.icn s to (null)
    Error: (-36) SrcErr:YES Copying /Library/Application Su
    the one before that:
    Starting standard backup
    Backing up to: /Volumes/uten navn/Backups.backupdb
    Ownership is disabled on the backup destination volume.  Enabling.
    Event store UUIDs don't match for volume: 
    Backup content size: 443.4 GB excluded items size: 168.1 GB for volume 
    No pre-backup thinning needed: 330.36 GB requested (including padding), 1.82 TB available
    Waiting for index to be ready (909 > 0)
    Error: (-36) SrcErr:YES Copying /Applications/Safari.app/Contents/WebApplicationCore.bundle/Contents/MacOS/WebA pplicationCore to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Sibelius 5.app/Contents/Components/Arrange Styles/2Fam(Block)Ww+hppnoperc.sar to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Sibelius 5.app/Contents/Components/Arrange Styles/2Fam(Block)Ww+strings.sar to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Sibelius 5.app/Contents/Components/Arrange Styles/SolowithaccSolow.sar to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/German.lproj/ProfilePanel.nib/keyedo bjects.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/GetContactsFromPalm.scpt to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/HoldPressed_22x22.png to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/Italian.lproj/CallPreferences.nib/de signable.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/Italian.lproj/CallPreferences.nib/ke yedobjects.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/Italian.lproj/CallViewB.nib/designab le.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/Italian.lproj/EULA.rtf to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/Italian.lproj/Localizable.strings to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/Italian.lproj/MainMenu.nib/classes.n ib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/Italian.lproj/MainMenu.nib/keyedobje cts.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents/Resources/Italian.lproj/ProfilePanel.nib/keyed objects.nib to (null)
    Error: (-36) SrcErr:YES Copying /Applications/Skype.app/Contents

  • Running Total of a Calculated Member

    Hi Friends ,
    Need help  in calculating the Running Total of a calculated member . I am using the below Query to calculate but it is not showing correct Values.
    Query :
    WITH
    set
    [FUNCTIONAL BENEFITS]
    as
    ORDER(
    [FUNCTIONAL BENEFITS].[FUNCTIONAL BENEFITS].children,[Measures].[ANNUAL UNIT CASES WEIGHTED VALUE]
    ,DESC)
    member  AUCWEIGHT as
    [Measures].[ANNUAL UNIT CASES WEIGHTED VALUE],
    FORMAT_STRING='##0.0'
    member
    [Running Total]
    AS
    SUM({null:[FUNCTIONAL BENEFITS].[FUNCTIONAL BENEFITS].CurrentMember},[Measures].[ANNUAL UNIT CASES WEIGHTED VALUE]),
    FORMAT_STRING='##0.0'
    MEMBER [Measures].[AUCWV_PRCT] AS
    ([Running Total]/[Measures].[TotalSuM])*100,
    FORMAT_STRING='##0.0'
    member  [CummalativePercent] as
    (SUM({null:[FUNCTIONAL BENEFITS].[FUNCTIONAL BENEFITS].currentmember},[Measures].[AUCWV_PRCT]))
    SELECT {
    AUCWEIGHT,[Running Total],
    [Measures].[TotalSuM],[Measures].[AUCWV_PRCT],[CummalativePercent]}on columns,
    NON EMPTY ([FUNCTIONAL BENEFITS])
    DIMENSION PROPERTIES PARENT_UNIQUE_NAME ON rows
    FROM [RRMiningDS1_CUBE]
    Output :
    DiMENSION
    AUCWEIGHT
    RunningTotal
    TotalSum
    AUCWV_PRCT 
    CUMMULATIVEPERCENT
    CORRECTCUMMULATIVEPERCENT
    A
    62605.4
    661634.6
    1345632.2
       49.2
    1271.2
    49.2
    B
    38587.9
    425278.7
    1345632.2
       31.6
    545.5
    80.8
    C
    35894.5
    370057.9
    1345632.2 
       27.5
    485.2
    108.3
    D
    30246.4
    48345.3
    1345632.2
       3.6
    4.9
    111.9
    The CUMMALITIVEPERCENT is coming wrong .
    I have mentioned the Correct CummulativePercent. as it should be the Running sum of AUCWV_PRCT i.e
    49.2+31.6+27.5+3.6=111.9
    Please help . where i am making the mistake
    Thanks
    Rakesh k Dhar

    Hi R,
    It might be as simple as adding solve_order = 99 to the cumulative calc. This tells the formula engine to do the cumulative calculation after the %.
    Richard

Maybe you are looking for

  • Musical Typing problem

    Hello there, I just started to use mainstage without a midi controller keyboard. I'm using the musical typing feature to listen to the bank of sounds. When i type something like a F#7 chord ("t", "u", "o", ";") i cannot hear the four notes together (

  • Safari 5.0 won't open

    I've been reading these threads and seems as tho Safari 5.0 isn't off to a great start. I'm currently on a Dell laptop to be able to access this forum as I didn't "pre-plan" and have another internet browser installed on my Mac mini in case I couldn'

  • How do you change the project calender

    How do you change the project calender without changing the individual existing activities?

  • How does one see/use My iTunes?

    I enabled it through my iTunes account, and selected the options I wanted to use, but it completely escapes me how I see it or 'use' it.

  • I should not have to launch ical to close an alarms alert panel.

    So it seems whenever icalalarmscheduler fires an alert for an event I have to launch ical in order to close that alert panel. I shouldn't have to launch ical in order to close an alert panel launched by icalalarmscheduler.