Report Viewer shows incorrect data when viewing pages from last to first

Post Author: Fmorales
CA Forum: .NET
Hello.
I've made a huge report with Crystal Reports for Visual Studio 2005, and sometimes the Report Viewer show data with errors.
If I see all pages of my report in order, 1 first, then 2nd, 3, 4... until the last one.... The report is always correct.
If I see all pages in reverse order, 1 first (shown by default), then last one, then last one-1.... until 2nd.. All years show incorrect, except first one... 
In an outer section, for every year, there is a final row which shows summarize calculated data. The error consists in that every value of the row is 0.
It seems that Crystal Report calculates while showing, that's good.. but... Why does it ignore the data before when I see directly the last page?? It forces me to see all pages one by one in ascendant order to ensure data is correct.. I must fix that error.
The way I calculate data in the problematic summarize row is a bit complicated, but I'll try... Let's focus in one only column (the other ones are similar). The summarize value is a formula which simply show a global value :
WhilePrintingRecords;
CurrencyVar margenActual;
which is being increasing or decreasing along the group:
WhilePrintingRecords;
CurrencyVar actual:=actual+CurrentFieldValue; 
if {PresupPeriodifMesesAux_DS.TIPO} = 'PAGOS' then         CurrencyVar margenActual:=margenActual-CurrentFieldValueelse    CurrencyVar margenActual:=margenActual+CurrentFieldValue;
DefaultAttribute
It is placed in the backgrond property of a CrossTab cell in a hidden pre-section... Well.. I know it's a bit complicated, but I have to do that way because it was the only trick I found to make a summarize file before printing data summarized (that's why the line "CurrencyVar actual:=actual+CurrentFieldValue;" appeared in formula). So I also wanted to use this formula to acummulate "margenActual".
In the inner section I reset the actual value (this value always go fine):
WhilePrintingRecords;
CurrencyVar actual:=0; 
Before end of year I reset the margenActual value:
WhilePrintingRecords;
CurrencyVar margenActual:=0; 
I've tried multiple combinations (using WhileReadingRecords instead WhilePrintingRecords) but data is incorrect or I cannot get rid of visualization page's problem....
Any idea?
Thanks a lot

quote:
Originally posted by:
ntsiii
If you were previously using <mxXML> you WERE using
e4x.
So remove that tag, create an instance variable of the same
name, typed as xml, and in your result handler, do as VarioPegged
suggests, though I would cast/convert to xml first:
companies = XML(event.result);
trace(companies.toXMLString()); to look at your xml
var xlCompanies:XMLList = xmlCompanies..company; //all such
expressions return XMLList, never XML
trace(xmlCompanies.length()); //
Tracy
Ok so the ID of the mxXML was being interpreted as an E4X
variable at compile time?
I tried changing the name of the ID of the HTTPService call
from "marketData" to "MDATA" and assigning the variable marketData
to the result of the HTTPService query, which if I understand you
correctly should basically make everything work as it was before,
but it seems to be a problem.
when I try to run it puts an exclamation point on this line
<toolbox:TreeMap id="treeMap" width="1200" height="800"
dataProvider="{marketData}"
labelField="@cname" weightField="@amount"
colorFunction="{itemToColor}"
toolTipFunction="{itemToToolTip}"/>
That code refers to a SWC file. Apparently it wants
marketData to be a data provider. If I change the dataProvider
reference above to "MDATA" (the ID of the HTTPService) the App
compiles, but I get two errors at runtime:
TypeError: Error #1009: Cannot access a property or method of
a null object reference.
ReferenceError: Error #1081: Property @age1 not found on
mx.rpc.http.mxml.HTTPService and there is no default value.
What should I change this reference to? It won't compile if I
use the variable I made for the e4x results and it is reading
gibberish if I have it read directly from the
HTTPService....?

Similar Messages

  • ECT List View Web Part displaying incorrect data when View Item

    I have a External Content Type which pulls data from a stored procedure. The stored procedure has 1 parameter - the users logon id. The data retrieved is a list of meetings with start date time, end date time, location, subject, etc. From this ECT there
    is an External List which displays all data correctly.
    There is 2 pages within the site and its subsites that have list view web parts which display a subset of the info from the external list. When the user clicks a specific meeting to display the complete info on the meeting, the wrong information is displayed,
    it always displays the info for the 1st meeting in the list. So, I displayed the BDC Identity field on the list and this field is identical for all the rows since the key for the ECT is the username and hence not unique.
    I've spent all day trying to finding a way to resolve this and have come up empty. I've tried to find a way to make the BDC Identity field to be unique, using Business Data View web part, Data View web part, and nothing.
    The user needs to be able to click the My Meetings url header on the above pages to see a full list of their meetings so I need the external list. Any ideas how to make the BDC Identity field unique or how to get the View Item on the List View web part to
    work correctly?

    Sorry, I do not understand what you mean.
    I resolved the non unique BDC Identity problem by simply adding the row # to the Username in the stored procedure so the BDC Identity fields on the list records are now unique (although they're really long ie. __bk44003500070057003700560027000200140037003700f600360096001600470056003300,
    __bk44003500070057003700560027000200140037003700f600360096001600470056004300 etc). Not sure how it generates the BDC Identity?
    I still see the same behaviour when you select a meeting to display the details. It always displays the 1st record in the list.
    I added code to the DispForm to display the ID when the page loads and the BDC Identity from the record and verfied that they do match.
    I can add another parameter to the stored procedure and just return the row # in that field. What do you mean by make the identifire as Identity in operations?

  • Siebel BIP report not show correct data when current view=my programs view

    Dear All,
    I have report that contain field approval,
    which is when i login as 'SASKIA' as example then i want to print report budget request,
    this report contain field approval like :
    Employee Login
    HOKIONO     
    BAMBANG
    PONGKY
    SASKIA
    but when i print the report it just show:
    Employee Login
    SASKIA
    and it happened only if i print report in 'MY Programs' view,
    the report show ok in 'All Programs' view.
    and when checked in siebel tools, IO Program Container(that used in report), the link already set to all.
    Please help me on this.
    Best regards
    Cecilia

    try adding a user property to your integration object:
    User Property Name: "ViewMode"
    User Property Value: "All"
    see if it has any effect - for me it solved some issues with data not being displayed!
    Benny

  • View any report by presing button not when the page rendered by default

    hi all,
    i am new in apex and i need in help to solve the below issue:
    the reports in apex are shown when the page called by default,
    i want that the report will show only when i press any button to show it not when the page requested.
    hope i can get some solutions here.
    regards
    adnan

    Position the button ("Go", for example) in a region that always appear by default.
    Your report should be in a different region, but conditionally renders only when button Go is pressed (aka, request triggered by the button is activated)... or only when some parameter is not blank, whatever the condition you want to create.
    Edited by: Kleber M on Oct 7, 2011 7:33 AM

  • Crystal report showing Incorrect data against Bex Query

    I have created Crystal report on top of Bex Query, I have not done any calculations in the report, just dragging structure and key figure in the report, ran for one month, when I compare with Bex Query with same period, it is showing incorrect data.
    I don't know what can be wrong here?
    We are Business Objects 3.1 SP3.
    Thanks,
    Ravi

    HI,
    I would suggest you trace the workflow in Web INtelligence according to these notes:
    Tracing:
    Unix : Note 1235111
    Windows : Note 1260004
    and then post a link for downloading the trace files here.
    regards
    Ingo

  • Photo Stream issue.  Photo Stream shows 263 photos when viewed on the iMac, 289 when viewed on the iPad and 327 when viewed on the iPhone.  How can this be?

    Photo Stream issue.  Photo Stream shows 263 photos when viewed on the iMac, 289 when viewed on the iPad and 327 when viewed on the iPhone.  How can this be?  Tried shut down on all devices, reboot and the results are the same.

    Photo Stream issue.  Photo Stream shows 263 photos when viewed on the iMac, 289 when viewed on the iPad and 327 when viewed on the iPhone.  How can this be?  Tried shut down on all devices, reboot and the results are the same.

  • Reporting output shows no data

    hi everyone .. i have a problem with service manager reporting that it shows no data when i run any reports !! .. i have registered the data warehouse management server and its been months since the service manager has been installed so it has to be synchronized
    by now !! .. i have noticed that some of the data warehouse jobs didn't run such as
    MPSyncJob so i did run it from the console but nothing got solved .. i have also restarted the 3 services in both
    management server and data warehouse
    server but it didn't work also !! can anyone here help ??

    first of all thank u :) .. their status is not started and the
    sealed shows NO .. yes i used that link to edit in the credentials so i can access the data souses and i have tried to view reports from there but it also shows
    no data available .. the error i get from trying to open the [reportServer] and [ReportServerTempDB] using SQL server management studio is :
    The database ReportServerTempDB is not accessible. (ObjectExplorer)
    Program Location:
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.DatabaseNavigableItem.get_CanGetChildren()
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.NavigableItem.RequestChildren(IGetChildrenRequest request)
       at Microsoft.SqlServer.Management.UI.VSIntegration.ObjectExplorer.ExplorerHierarchyNode.BuildChildren(WaitHandle quitEvent)

  • How to show all data when using more than one parameter?

    Hi All,
    I used a query like this to show the data in a report:
    select col1, col2 // col1 and col2 are columns of tabale tab1
    from tab1
    where
    tab1.col1 =
    (case when :P_COL1 IS NOT NULL then // :P_COL1 IS A USER PARAMETER TO EQUAL COL1
    :P_COL1 ELSE tab1.col1
    end)
    AND TAB1.COL3 =
    (case when :P_COL3 IS NOT NULL then // :P_COL3 IS A USER PARAMETER TO EQUAL COL3
    :P_COL3 ELSE tab1.col3
    end)
    The problem is when I run the report with paramters values or not, It shows the data which is not null for both col1 and col3.
    That is when the value of col1 or col3 is null the report would not return that record!
    I want the report to show all data not only values which is not null!
    How to do this?

    Rainer,
    That where clause will fail when col1 in the table is null and the parameter has the dummy value. Consider the following:
    variable p_col1 varchar2
    exec :p_col1 := 'yourdummyvalue';
    select
    from
         select 'yourdummyvalue' col1 from dual
         union all
         select 'other' from dual
         union all
         select null from dual
         union all
         select 'X' from dual
    ) tab1
    where nvl(tab1.col1,'yourdummyvalue') = nvl(nvl(:p_col1,tab1.col1),'yourdummyvalue')In this case, the query returns the row with null and the row with 'yourdummyvalue', where only the row with 'yourdummyvalue' should be returned.
    You must do something like this:
    where ( :p_col1 is null or ( :p_col1 = tab1.col1 ) )That one is the simplest and does not need a dummy value. Here are some other more complicated examples:
    where nvl( :p_col1, 'yourdummyvalue' ) = decode( :p_col1, null, 'yourdummyvalue', tab1.col1 )or this:
    where nvl( :p_col1, 'yourdummyvalue' ) = nvl2( :p_col1, tab1.col1, 'yourdummyvalue' )In the last 2 cases, it will not matter if the dummy value exists in the data, but they are unnecessarily complex.
    Kurz

  • Report to correct FD33 report is showing incorrect values ??

    Hi Guys,
    Will appreciate your help on below issue.
    The "RVKRED88 - Reorganization of SD credit data after updating errors" report is showing incorrect values.
    It is specially observed for invoice correction requests that are credit blocked.
    The doc flow is like  Order (say value  1000 $), delivery, shipment, Picking, GI, billing, accounting all cleared/complete.
    The invoice corrrection req (say value  -ve 50$)  was then created with reference to the billing doc.
    The RVKRED88 report shws the original order as open and also shows an open delivery value of 1000$ + 50$= 1050$.
    Is this behaviour correct? If not what might be the cause of this? and how to correct it?
    Regards,
    Naminator
    Edited by: Naminator on Jul 7, 2009 6:22 PM

    I am not sure, how come you are getting correct numbers for UK plant if BX is not loaded. You can get numbers correctly only in one situation which is your initial stock at that plant was ZERO, which is practically not possible.
    You said you are loading for Denmark only.
    Was the BF init done only for UK?
    How come you are loading BF Delta for UK only?
    Did you check properly that BX is not loaded into production by changing the date range. Make sure you put the lowest date range in the from field. I would put 01/01/1000
    As you said ISS is coming right because those are movements and they dont have to do anything with initial stock, but initial stock and movements affec your Total Stock Key Figure.
    - Danny

  • The webpage declined to show this webpage when WebPart Page is loaded

    I have a webpart page when I try to open that page I'm getting. The webpage declined to show this webpage.It loaded when the part was added to the page first time.But when I redeployed the WSP I'm getting this error.
    Please help me in this.
    Thanks & Regards,
    Mathi.
    With Regards, Mathi.

    Hi,
    According to your post, my understanding is that the webpage declined to show this webpage when WebPart Page was loaded.
    The problem was within the web part page. A web part was causing the page to 403. Some configuration to the web part had made the web part no longer permissible to show to the user. Instead of just not showing the web part, SharePoint declines to show the
    web part page.
    To resolve the problem, go to the Web Part Page Maintenance page for the page that is giving the 403 error:
    http://ServerName/SiteName/_layouts/spcontnt.aspx?&url=%2fSiteName%2fPages%2fPageName.aspx
    One by one disable the web parts. One of them is the problem. When it is disabled, the page will display properly to the user.
    You’d better to delete the web part and re-add it.
    There is an article for your reference, although it is about the SharePoint 2007, it still works for SharePoint 2010.
    http://dlairman.wordpress.com/2010/10/12/error-the-website-declined-to-show-this-webpage-http-403/
    Best Regards,
    Linda Li
    Linda Li
    TechNet Community Support

  • Error when updating pages from template

    When updating pages from a template I have been occasionally
    getting this error message:
    While executing onLoad in Swap Image.htm, the following
    JavaScript error(s) occured:
    At line 325 of the file "Hard Drive: Applications: Macromedia
    Dreamweaver 8: Configuration: Behaviors: Actions: Swap Image.js":
    Reference Error: createObjRefs is not Defined
    I am on a Mac running 10.3.9, Dreamweaver 8.02.2809
    Any ideas on how to fix this?
    Thanks,
    Paul

    When updating pages from a template I have been occasionally
    getting this error message:
    While executing onLoad in Swap Image.htm, the following
    JavaScript error(s) occured:
    At line 325 of the file "Hard Drive: Applications: Macromedia
    Dreamweaver 8: Configuration: Behaviors: Actions: Swap Image.js":
    Reference Error: createObjRefs is not Defined
    I am on a Mac running 10.3.9, Dreamweaver 8.02.2809
    Any ideas on how to fix this?
    Thanks,
    Paul

  • Error when run page from jdev10.1.3.3

    Hi,
    Im getting the following error when running pages from jdev 10.1.3.3. I have loaded all the frequired files from the server(.class and .xml).please help..
    Thanks.
    ## Detail 0 ##
    java.lang.NullPointerException
         at java.util.Hashtable.put(Hashtable.java:396)
         at oracle.apps.fnd.framework.webui.OAPageContextImpl.putSessionValue(Unknown Source)
         at oracle.apps.pos.supplier.webui.ByrAddCntctCO.processRequest(ByrAddCntctCO.java:97)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAPageLayoutHelper.processRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean.processRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequestChildren(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanHelper.processRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.OAWebBeanContainerHelper.processRequest(Unknown Source)
         at oracle.apps.fnd.framework.webui.beans.form.OAFormBean.processRequest(Unknown Source)

    The OA Framework forum is available at the following URL:
    OA Framework
    Regards,
    Didier.

  • Message.app Version 7.0.1 (3322) does'nt show my picture when I chat from my mac Lion 10.8.5

    Message.app Version 7.0.1 (3322) does'nt show my picture when I chat from my mac Lion 10.8.5
    But my email show my picture.

    Thank you for your prompt reply, Niel.
    The website that I will use supports the following browsers:
    Internet Explorer v.8
    Internet Explorer v.9
    Internet Explorer v.10
    Internet Explorer v.11
    Mozilla Firefox v.32
    Google Chrome v.37, v.39
    Safari v.5.1.7 (PC) and v.7.0.6 (iOS)
    Other browsers and versions may not function well with the website. Therefore, they recommend to use one of the above-mentioned browsers.
    Can I download any of these browsers to my MacBook Air if I already have a Safari browser? (can I have 2 browsers and which of those do you recommend that I download to my computer)?
    Thanks again!

  • Setting of "opening web pages from last session"not works when open next time

    In Options, setting to "open windows & tab pages from last time" does not work. I have tries several time but nothing happens. have written to you earlier also , please help

    ''setting to "open windows & tab pages from last time" does not work.''
    That would be very surprising but a change was made to Firefox 4 to always have the choice of going to History ("Alt+S") and choose "Restore previous session".
    With Firefox 5 coming out in a few days (June 21-22) you might try again then, if the solution the developers built in does not work for you. Do you know about pinning tabs ('''app-tabs''') they persist across sessions as a convenience -- if I really want to keep something permanently then I would bookmark such things as a group. Because they can be closed easily.

  • Mozilla restores pages from last session, but I don't set it and don't want it

    When I'm opening Mozilla firefox, it always restores pages from last session. I tried to restore default startpage, but it restore other pages anyway.

    You can check if you have an user.js file in the Firefox profile folder that sets the browser.sessionstore.resume_session_once pref to true.
    http://kb.mozillazine.org/browser.sessionstore.resume_session_once
    You can use this button to go to the Firefox profile folder:
    Help > Troubleshooting Information > Profile Directory: Show Folder (Linux: Open Directory; Mac: Show in Finder)
    http://kb.mozillazine.org/Profile_folder_-_Firefox
    hope it will sort out your problem

Maybe you are looking for