One to many data display problem.

Post Author: testing123
CA Forum: Crystal Reports
Hi,
I have a database structure like this:
Project --> LabourTimesheet, PurchaseOrder
Each project may have any number of LabourTimesheet values, and any number of PurchaseOrder values. They are both monetary values.
One project could have 4 LabourTimesheet values, and 3 PurchaseOrder values. Another could have 17 LabourTimesheet values and 200 PurchaseOrder values.
What I want to do is have individual total of the LabourTimesheet and PurchaseOrders for each Project. As it stands now, I can calculate a running total (for each Project) of PurchaseOrders fine. However, the LabourTimesheet values repeat every time a new PurchaseOrder is generated.
We end up, typically with something like this:
Because the LabourTimesheets repeat I cannot set up a standard running total to calculate on each individual timesheet because the entries repeat. Does anyone know of a formula or other method I can use to stop this happening?

Post Author: branko
CA Forum: Crystal Reports
Please tell us if you are using one table or you are pulling information by connecting table LABOUR TIMESHEET and TABLE PURCHASE ORDERSLinking tables correctly  will sometimes eliminate repetition. I am assuming that this is how your result should look like :  LABOR TIMESHEET   PURCHASE ORDER  67.50                                     0.00198                              93.55198                              103.15----
463.5                        196.70   I am assuming that your purchase order has some kind unique ID.E.G.PO # is  00100 00101 00102 etcAlso you might have another connection between PO and LAbour timesheet E.G. Project ID is 1,2,3 If  you describe your database more , you will get your answer faster.

Similar Messages

  • PHP MySQL data display problem

    I am having trouble getting data to display on my web page.In Dreamweaver CS3, I created a new page.
    Selected PHP as the type.
    Saved it.
    Connected a database and created a recordset (all using Dreamweavers menus. I did not write any code).
    NOTE: The database is on a remote server.
    The TEST button displayed the records from the recordset with no problem.
    On the new page, I then typed some text.
    Then dragged some fields from the Bindings tab to the page.
    I saved it and then went to preview it in my browser.
    The page comes up completely blank. Not even the text shows.
    I then saved the page as an HTML page.
    When I preview this in my browser, the text shows, but the fields and data do not.
    I then tried creating a dynamic table (again, using the Dreamweaver menus.).
    A similar thing happens, ie. If I save it as an HTML, the text shows and the column labels and border shows, but no data.
    Nothing shows if I save it as a PHP file.
    I can view the data online using files created by PHPMagic, so I know the data is there and retrievable.
    It is just in pages created in Dreamweaver that don’t work.
    What am I doing wrong?

    My web server supports PHP. I can disply PHP pages created by other software packages, just not the Dreamweaver ones.
    Frank
    Date: Thu, 4 Jun 2009 19:04:03 -0600
    From: [email protected]
    To: [email protected]
    Subject: PHP MySQL data display problem
    To view php pages - or pages with PHP code in them - in a browser, the page must be served up by a Web server that supports PHP. You can set up a testing server on your local machine for this purpose. Look for WAMP (Windows), MAMP (Mac), or XXAMP for some easily installed packages.
    Mark A. Boyd
    Keep-On-Learnin'
    This message was processed and edited by Jive.
    It shall not be considered an accurate representation of my words.
    It might not even have been intended as a reply to your message.
    >

  • Date display problems

    Hello,
    I have notice some date display problems with browsers when visiting a Podcast page :
    https://itunes.apple.com/fr/podcast/euronews-no-comment/id193275779
    For exemples :
    8/45/13
    8/32/13
    4/49/13
    Date problems available on other podcasts :
    https://itunes.apple.com/fr/podcast/arret-sur-images-les-podcasts/id289722236?mt =2
    https://itunes.apple.com/fr/podcast/telezapping/id206252481?mt=2
    https://itunes.apple.com/fr/podcast/france-3-19-20-paris-ile-france/id285421036? mt=2
    Theses problems don't exist on iTunes.
    Who can fix it ?

    I checked three of them and see the same peculiarity. Only the web page version of the Store page has the errors. The first podcast you list has a minor error in the 'iTunes declaration'  but I wouldn't have expected it to affect the pubDate tag. The second doesn't give the day in that tag, and the third appears to be OK.
    I can only guess that it's a glitch of some sort in the Store software used to generate the web page. Only Apple can fix it. You could try the 'report a problem' link in the Store page in iTunes though I don't know how much notice they will take.

  • Multiple Language  : Data Display Problem

    Hi ,
    I have one problem regarding NLS_LANG, please advice.
    I have a table on source machine which stores the data in different language (German, Danish, Russian Cyrillic) but these data shows as "???????" on command prompt as well as on Toad when access it from client machine.
    I know that displaying any kind of data depends on local NLS_LANG but what NLS_LANG I have to set so that it can display different language together. I am able to display data separately for German, Danish and Russian Cyrillic when I change NLS_LANG and location in client accordingly but unable to display all language together.
    Default setting for NLS_LANG on client machine is AMERICAN_AMERICA.WE8MSWIN1252.
    Please advise common NLS_LANG for all three language (German, Danish, Russian Cyrillic).
    Thanking You

    Pl continue the discussion in your original thread for continuity purposes.
    Multiple data display problem

  • One to Many data model solutions

    Hello Friends,
    Recently I got a requirement where I need to  join two line item DSO based on a Reference key, but it is with One to many relationship. I hestitate to use the Infoset because its a very huge DSO, which will affect the report performance.
    I even thought of updating one DSO data to the infocube by getting the lookup values from other DSO in the transformation. I am stuck in every road I take to fulfill this requirement.
    Can anyone share your ideas and thought please...... It will really helpfull..... Thanks for your time.....

    Hello Ganesh,
    Thanks very much for your answer..... I will explain my issue below:
    DSO A: ( Delta load)
    Company_code     G/L_acct     Doc_number     Reference_Key     Invoiced Amount
    1000          1009673          767787          100008          100$
    DSO B: (Full Load monthly)
    Company_code     Reference_Key     Reference_Key_itm     Sold_to          Tax_paid_amt
    1000          100008          010               A          200$
    1000          100008          020               B          300$
    1000          100008          030               C          400$
    1000          100008          040               D          500$
    DSO C:
    Company_code     Reference_Key     Reference_Key_itm     Sold_to          Tax_paid_amt     G/L_acct Invoiced Amount
    1000          100008          010               A          200$          1009673          100$
    1000          100008          020               B          300$          1009673          100$
    1000          100008          030               C          400$          1009673          100$
    1000          100008          040               D          500$          1009673          100$
    If I load DSO B - - > DSO C , and the do look up on DSO A: Then I will miss the delta changes which happen in the DSO A
    Can I load both DSO A and DSO B to DSO C?
    Edited by: Ram on Nov 24, 2009 6:55 PM

  • Date display problem "Arabic"

    I am currently facing a problem related to date display as the date is being displayed in the following format:
    ������ 01, 2007
    I have checked the Locale and it was en_US.
    Can someone help me out so that the format that I get is the following:
    Sept 01, 2007
    Thanks

    What code are you using to format the date?

  • One to many mappings delete problem

    in using Toplink 9.0.3, I have modeled a simple one to many relationships and have ran into errors on deletion.
    The following is an object model that fails to delete
    diagram has one to many companies ( privately held )
    companies have one to many ownerships ( privately held )
    ownerships have a one to one to an owner company and an owned company ( not privately held ).
    In the simplest scenario, Toplink knows how to delete a diagram. It will delete an ownership, then delete the companies and then delete the diagram.
    However in a diagram where a company owns two companies, Toplink fails. It attempts to delete an owned company before deleting the parent Ownership.
    Note that if toplink deleted the owner company then, it would know to delete the many ownerships first.
    How do we tell toplink that on deleting a company,
    1. delete all the ownerships in its one to many
    2. and delete all the ownerships in which the company
    plays the role as an owned company.
    Note that deleting an ownership should not trigger a deletion of either the owner company or the owned company.
    please contact at [email protected]

    Hello,
    You appear to be missing a mapping in your object model.
    TopLink decides its commit order, for both insertions and deletions based on the ONE TO ONE mappings in a project.
    It appears that your company has no ONE TO ONE mapping to the diagram, which means that TopLink MAY decide to delete diagrams before it deletes companies.
    I would suggest that you try adding a one to one mapping from company to diagram, correctly populated, and see if the problem recurs.
    I hope this is of some help,
    Christian

  • Multiple data display problem

    Hi ,
    I have one problem regarding NLS_LANG, please advice.
    I have a table on source machine which stores the data in different language (German, Danish, Russian Cyrillic) but these data shows as "???????" on command prompt as well as on Toad when access it from client machine.
    I know that displaying any kind of data depends on local NLS_LANG but what NLS_LANG I have to set so that it can display different language together. I am able to display data separately for German, Danish and Russian Cyrillic when I change NLS_LANG and location in client accordingly but unable to display all language together.
    Default setting for NLS_LANG on client machine is AMERICAN_AMERICA.WE8MSWIN1252.
    Please advise common NLS_LANG for all three language (German, Danish, Russian Cyrillic).
    Thanking You

    Similar issue has been discussed in the below thread :
    NLS_LANG setting for a client with multiple Oracle servers
    Re: how to insert multi language data to oracle database
    You can use iSQL*Plus which have Multiple Language Support.
    http://docs.oracle.com/cd/B19306_01/server.102/b14357/ch11.htm#i1026151
    You can write the question in Globalization Support forum too at :
    Globalization Support
    Regards
    Girish Sharma

  • Category Axis for dates display problems

    I am experiencing an odd display behavior in my flex chart.
    The xml for the chart skips some time, for example:
    <item date="10/31/2006" val="57"/>
    <item date="12/27/2006" val="55"/>
    <item date="02/14/2007" val="44"/>
    <item date="02/22/2007" val="43"/>
    <item date="02/28/2007" val="59"/>
    <item date="02/28/2007" val="58"/>
    <item date="03/03/2007" val="35"/>
    But when it displays on the axis, it displays the labels like
    so:
    10/31/2006 2/22/2007 03/03/2007 etc....
    Here is my definition of the CategoryAxis.
    <mx:horizontalAxis>
    <mx:CategoryAxis id="h1" categoryField="date"
    labelFunction="formatLabel"
    dataProvider="{instrument.lastResult.dataset.rightaxis.series.item}"
    title="{instrument.lastResult.dataset.bottomTitle}"/>
    </mx:horizontalAxis>
    Is this a bug? The chart uses two vertical axis as well.
    Maybe this is causing the problem. Ideally I'd just like to define
    a start and end date for the bottom axis and have it display the
    months uniformly. Is there a way to do that or at least fix this
    odd behavior?

    I am experiencing an odd display behavior in my flex chart.
    The xml for the chart skips some time, for example:
    <item date="10/31/2006" val="57"/>
    <item date="12/27/2006" val="55"/>
    <item date="02/14/2007" val="44"/>
    <item date="02/22/2007" val="43"/>
    <item date="02/28/2007" val="59"/>
    <item date="02/28/2007" val="58"/>
    <item date="03/03/2007" val="35"/>
    But when it displays on the axis, it displays the labels like
    so:
    10/31/2006 2/22/2007 03/03/2007 etc....
    Here is my definition of the CategoryAxis.
    <mx:horizontalAxis>
    <mx:CategoryAxis id="h1" categoryField="date"
    labelFunction="formatLabel"
    dataProvider="{instrument.lastResult.dataset.rightaxis.series.item}"
    title="{instrument.lastResult.dataset.bottomTitle}"/>
    </mx:horizontalAxis>
    Is this a bug? The chart uses two vertical axis as well.
    Maybe this is causing the problem. Ideally I'd just like to define
    a start and end date for the bottom axis and have it display the
    months uniformly. Is there a way to do that or at least fix this
    odd behavior?

  • Date Display Problem

    Hello All,
    I have 2 text fields, namely, "Start Date" and "End Date". I am trying to set default text in these fields. The start date should default to Monday and End date should default to Friday of current week. My problem is the setText() Method accepts String as arguments but "cal.add(.." returns a calendar object. Is there anyway i can convert a calendar object to string? or is there some other way to achieve what i am trying to? Please help!!
    Below is my code.
    * This method gets the corr. day for the entered date
    public static int getDay(Date date){
    Calendar cal = Calendar.getInstance();
    cal.setTime(date);          
    return cal.get(DAY_OF_WEEK);     
    * This method sets default text in the fields "Start Date" and "End Date"
    private void setDefaultText(){                    
    int currentDay = getDay(currentDate); //Current Date is todays date
    Calendar cal = Calendar.getInstance();
    if(currentDay==1){
    getStartDateText().setText(cal.add(Calendar.DATE,1));                         
    getEndDateText().setText(cal.add(Calendar.DATE,5));
    if(currentDay==2){
    getStartDateText().setText(cal.add(Calendar.DATE,0));                         
    getEndDateText().setText(cal.add(Calendar.DATE,4));
    if(currentDay==3){
    getStartDateText().setText(cal.add(Calendar.DATE,-1));                         
    getEndDateText().setText(cal.add(Calendar.DATE,3));
    if(currentDay==4){
    getStartDateText().setText(cal.add(Calendar.DATE,-2));                         
    getEndDateText().setText(cal.add(Calendar.DATE,2));
    if(currentDay==5){
    getStartDateText().setText(cal.add(Calendar.DATE,-3));                         
    getEndDateText().setText(cal.add(Calendar.DATE,1));
    if(currentDay==6){
    getStartDateText().setText(cal.add(Calendar.DATE,-4));                         
    getEndDateText().setText(cal.add(Calendar.DATE,0));
    if(currentDay==7){
    getStartDateText().setText(cal.add(Calendar.DATE,-5));                         
    getEndDateText().setText(cal.add(Calendar.DATE,-1));
    }

    Mogambo_Khush_Hua wrote:
    I am sorry that did not work either. Calendar returns a string for toString(). I agree. But Calendar.add(int,int) does not as add(int,int) returns VOID. Here is what i tried doing as was suggested in the earlier postings.
    if(currentDay==1){
         getStartDateText().setText((cal.add(Calendar.DATE,1)).toString());
         getEndDateText().setText((Calendar.add(Calendar.DATE,5)).toString());
    If you notice the 2nd line reads cal.add and the 3rd line reads as Calendar.add.
    The 2nd line gives me an error, "Cannot Invoke toString() on primitive type void"
    The 3rd line gives me an error, "The method add(int,int) from type Calendar is not static"
    Any help would be greatly appreciated. Googling for stuff is not getting me anywhere either.You can't do it in one operation (at least not that way).
    The add() method operates on cal and changes it's value, but returns you nothing; so what you are in effect saying is:+nothing+.toString();which is what the compiler is complaining about.
    Hope that helps.

  • Fieldpoint FP-1600 Data Display Problem

    I'm building a new system using the following devices:
    Fieldpoint Ethernet module (FP-1600)
    Analog input module (FP-AI-111)
    Fieldpoint Explorer (V.2.0 build 91)
    Lookout (V4.5 build 9, for Win32)
    When I use Fieldpoint explorer I have no trouble displaying the data from
    the one analog input module; However, when I attempt to display the data in
    Lookout I receive a box with a zero and red X. The alarm also alerts a "Bad
    quality received from network module" alarm.

    Never mind - operator error!
    I did not check over the IP addresses correctly.
    > I'm building a new system using the following devices:
    > Fieldpoint Ethernet module (FP-1600)
    > Analog input module (FP-AI-111)
    > Fieldpoint Explorer (V.2.0 build 91)
    > Lookout (V4.5 build 9, for Win32)
    >
    > When I use Fieldpoint explorer I have no trouble displaying the data from
    > the one analog input module; However, when I attempt to display the data
    in
    > Lookout I receive a box with a zero and red X. The alarm also alerts a
    "Bad
    > quality received from network module" alarm.
    >
    >

  • Forms 6i Data Display Problem

    All:
    I am running Forms 6i on win 2k server. The problem I have is that when trying to display a field that has data longer than the size of the field the data becomes left justified. Meaning by placing the cursor on the field and using back arrow the rest of the data gets displayed.
    Thanks in advance..
    Rycourt

    If it is server and DataBase is installed(oracle-sql) is there, You cna't continue Froms and Reports there, Froms and Report can only run on client end and with pc where inatall Oracle Personal Database.
    If you try this way, Hope problem will solved
    Thanks
    Nazmul

  • N8 Date Display Problem

    I've previously posted this in a similar thread, but recieved no replies, so am trying here.
    I've have a problem after the getting the Anna update.
    Got mine done at an NCC (UK Tesco 059C951). and all was fine. Put in parts 1/2 & 2/2 when I got home via Ovi Suite on PC.
    I have the problem in that the date format in my phone keeps reverting to YYYY:MM:dd format instead of DD:MM:YYYY as i'd like it.
    I've done a delete and restore and default reset to see if it cures it, but to no avail. I can't reinstall yet as Anna is not available for my Product code yet.
    In the" time settings", when I select the format I want, it switches back right in front of my eye's in about a second flat. I have to hit the back button before it changes back as that is the only way it remains.
    Once I turn off the phone, it reverts back to the yyyy:mm:dd settings again and I have to repeat the whole process again.
    It used to do this with PR1.1 and 1.2 sometimes, but a "delete and restore" usually cleared it. Hasn't worked this time though.
    Does anyone else have this problem or know what to do?
    Jurassic Park, Sam Neill to Dickie Attenborough " Mr. Hammond, the phones are working !"
    N8-00 Tesco UK 059C951, Lumia 920

    What code are you using to format the date?

  • Infoset query data display problem

    Hi Experts,
    I have created a infoset using SD and AR cubes. On this infoset i have generated a report taking Debit,Credit and Deb/Cred Amount. It is giving me the correct results. But when I have changed the query by adding the NetValue to that query the result is different i.e all the values of Debit,Credit and Deb/Cred Amount are doubling(two times of the original value) but  the value of NetValue is correct.
    I am not able to solve this problem pls help me.
    full points will be assigned.
    Regards
    Sridhar

    Hi Sridhar,
                Check with currency types.
    how many currencies did u include.
    Regards,
    Vijay.
    Edited by: vijay m on Sep 24, 2008 1:28 PM

  • Htree data display problem...

    hi...
    i have 1 datablock having ID field of 1 table... On the layout wizard i have added Htree item.... also i have 1 recordgroup ..
    i have set record group property of HTree to my recordgroup..so why it is not showing any data....
    i am getting folowing msg when i run the form.....
    FRM-32089: Trees must be in single row, single item blocks.
    Hierarchical Tree Item TREE1
    Item: TREE1
    Block: REGION
    Form: HTREE
    FRM-30085: Unable to adjust form for output.

    The online help isn't much use if you don't already know the form the query should take. Perhaps if it were in the Populating a Tree of Creating a Tree examples there would be less confusion. It appears in the help for the Set_Tree_Property procedure but is not explained there.
    The query they use is
    'select 1, level, ename, NULL, to_char(empno) ' ||
    'from emp ' ||
    'connect by prior empno = mgr ' ||
    'start with job = ''PRESIDENT'''
    The 5 columns you need to select, in this order, are
    1) Node State: either 1 or -1, to set the node as expanded or collapsed (not necessarily in that order)
    2) Level: the level in the hierarchy
    3) Label: the node's label, visible in the tree
    4) Icon: the icon to be displayed, or NULL for no icon
    5) Value: an arbitrary character value to apply to the node. It isn't visible to the user but you can get the Value at runtime in your code. Use this to store the primary key of the record represented by the node if you want to be able to manipulate that record or query child records when the node is selected.

Maybe you are looking for

  • Closed Lid operation

    Hi, I was wondering, while having my macbook hooked up to an external monitor, is there anyway to prevent the computer from shutting down when the lid is closed? in windows there is the option "do nothing when lid is closed" is there such a thing in

  • How to insert a page dynamically into a form

    Good Morning, We've used LiveCycle to create a very intricate work order for our service company. Although most work orders we create don't need additional documents (aside from the form itself), some do. For example, we may want to add a PDF coversh

  • Trying to understand how to make a change to a SSIS package

    I was pretty familiar with DTS packages but SSIS packages have me completely lost. Let me start by saying we use TFS (Team Foundation Server) and Visual Studio 2010 for source control and development. I have to make a change which is very simple. I h

  • Lost ? 2000 photo's in iphoto

    Hallo I've a big problem. When I start iphoto, in the libary are 6500 photos. But, normal there must be 8500 photos. If I look in the system and than over picture, libary,year,date.....than i can see all the 8500 photos. But in the program only 6500

  • Migration from Oracle 8i

    I'm using Oracle Workflow 2.6 with Oracle 8i what is the correct procedure to migrate to Oracle 10g and Oracle Wokflow 2.6.3? Thank you in advance for your attention it 's very important for me... Silvia