Handling Crosstab like Data

I have a situation where I need to keep track of Data that looks like a crosstab report.
ie let us say there are 2-6 kinda close sets of data
like the eg. below. the #of columns could be 3 -6 variable
depending on the set. The time interval could vary depending on the set.
unit 1 apple banana orange Unt2 appl pear grape melon
7:00 18 20 25 7:00 21 27 19 34
8:00 12 56 17 9:00 26 51 12 17
9:00 ................ 11:00 28 72 09 55
there are more records for the next day and so on.
There earlier method of 'storing' this data was crude just have as many fields in a table as there are cells and 1 record per day.
My method is to have (unit#,day, time,fruit_id, value) in my table and have tons of records.
I can produce output that looks like the cross tabs above using reports from my new table,but how to organize the form?
since each record now is too small, it will mean many saves.
I could have a block with many lines and lovs for unit,fruit_id and time and hit one save but it may not be intuitive.
Or I can have a non db table block that looks like the cross tab grid, and then do manipulation to create many records that I want.
eg> canvas_1 - unit1
time apple orange banana
7 1 3 8
9:00 2 8 7
then create 6 records internally.
Which way should I organize the form?

You can further normalise observation into two or even three as shown below.
e.g
observation
(observation_id,observation_name,observation_type)
observation_details
(observation_id, observation_detail_id,patient_id,obervation_date,observation_notes)
observation_results
(observation_detail_id,observation_result_id,resultA,resultB,resultC,resultETC,result_status,result_notes)
You can now be able to have the same observation and stored different results as many times as possible (including incorrect ones). Use the Status as a key to select the valid result)
NOTE: This is just a personal sample out of my head which you can expand or reduce as much as you can. It does not represent the design you MUST use.

Similar Messages

  • How to handle multiple tables data in Entity Beans?

    How to handle multiple tables data in Entity Beans?
    i mean, my bean (non trivial) is responsible for frequent
    insertion in one table and some deletion on another table.
    Can anyone of you...please..?

    Is your data model right? If you are adding in one and deleting in another it sounds to me more like a process that an entity, in which case you may revisit your data model and simplify it, add in a session bean with the process method to co-ordinate between the two.
    However, if you want to map multiple different tables within a single entity bean it is possible and just part of the mapping. How you actualyl specify it depends on which implementation you are working with.
    Cheers,
    Peter.

  • Handling dynamic item data in VSTS

    Hi Team,
    Can you please let us know how to handle dynamic item data in VSTS.
    Regards
    Raghavendra
    8105577088

    Hi Raghavendra,
    Based on your previous threads posted by you in the test forum, I doubt that you want to create the coded UI test, am I right?
    If so, which kind of app did you want to test, WPF or others? Could you share us a screen shot about the real UI controls you want to test? What real Controls you want to test, list item controls or others?
    You know that to find a control in coded UI test, we have to use the unique peoperties as the search properties, so if your controls are dynamic, the real issue would be related to the search properties you use in your code.
    Like this case:
    https://social.msdn.microsoft.com/Forums/en-US/4c4805f0-230d-459d-a3e5-61e62746c5b9/list-box-item-is-not-get-selected-while-play-back-the-recorded-script-in-coded-ui-test?forum=vsautotest
    As Pankaj's suggestion, if the list items are dynamic then you can use the index values instead of the innertext, so the real issue would be related to how to use the search perperties in your side. If you item text value is dynamic, you'd better not
    use the text value as the search properties. 
    About "How does “Coded UI test” finds a control ??", reference:
    http://blogs.msdn.com/b/balagans/archive/2009/12/28/9941582.aspx
    If I have misunderstood this issue, please feel free to let me know.
    Best Regards,
    Jack
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • Post  handling unit like cowbhuwe transaction

    Hi,
    I have to use function module to post  handling unit like cowbhuwe transaction for my interface,I found 1 FM VHURM_HU_POST_WE_PROD_ORDER(which is using by cowbhuwe Transaction),But I can't use it in my interface because any time it fails it is generating screen error which gives problem for interface when run in background or through XI,Is there any other FM which will do the same work and if any error occurs it return value in internal table not in screen error

    hey,
    Did u get any solution for this ??
    We have a similar requirement and are unable to find any FM which is useful for this....

  • Coherence as like data access

    hi
    is coherence as like data access for toplink?
    if is possible , how configue for toplink without database?
    thanks

    When I click that I get a page saying:
    Invalid Portal Session
    An error was encountered while processing your Portal request, because your portal session is no longer valid. You have been logged out and you will automatically be redirected to the OracleAS Portal home page in 30 seconds. Click OracleAS Portal home page to go directly to the OracleAS Portal home page, or if your browser does not automatically redirect you. If you continue to have problems while accessing OracleAS Portal, close all your browser instances and try again.

  • The information of photo like date change after close it. How can'i correct that

    the information of photo like date change after close it. How can'i correct that?

    Using the Photos ➙ Batch Change ➙ Date menu option will let you change the EXIF Capture Date of the photo.
    For a single photo (or to set a group of photos to the same date and time) use the Photos ➙ Adjust Date and Time ... menu option.
    Happy New Year

  • I want to show movable image on form like data loding symbol

    Dear All, I am working on developer2000 6i version I want to show movable image on form like data loding symbol.currently i have taken .GIF Image but it is not moving so is there any way to do the same. oracle 10g forms 6i version Faizan

    Hi Faizan,
              Even i work on D2K (Forms 6i). I have tried this below & found the result.
         Its true that you can not add animated image. But you can definitely show a data loading symbol in code.
         Add 2 different contrast colours and choose a striped pattern.
    1) Create a text item with a lengthy rectangle (width minimum of 300).
    2) Create a visual attribute for it with desired colours.
    3) Finally add the following in between your code.
    Your Code
    set_item_property('YOUR_BLOCK.TEXT_ITEM',visible,property_true);
       set_item_property('YOUR_BLOCK.TEXT_ITEM', width,2);
    Your Code
    tot_wid:= get_item_property('YOUR_BLOCK.TEXT_ITEM', width);
    Your Code
    set_item_property('BLOCK3.PROGBAR', width,100);
    Your Code
    set_item_property('BLOCK3.PROGBAR', width,300);
    Message('Data Loading is completed');
    Try this out and let me know if its working as you expected & also let me know if there is a problem.

  • Unclear handling of sequence data

    Hi guys,
    here I have yet another bunch of questions in regard to the handling of sequence data.
    I have checked and compared all of the examples from the SDK in various versions, and all of them seem to do things differently, and the SDK documentation does not really shed any way on what is the expected or correct behaviour.
    This applies especially to disposing and copying sequence data pointers, which can result in big problems concerning data leaks or access violations if done incorrectly, I suppose.
    I tried to code a simple example that uses a very simple SequenceData (a struct only containing one int, see below), so I won't have to cope with flattening/unflattening.
    In the snippet below, I implemented SequenceSetup(), SequenceSetdown() and SequenceResetup() and marked 6 parts with questions where the documentation and/or implementation in the examples is inconsistent.
    It would be great if anyone with more insight could give some reliable answers on what you are expected to do there. :-)
    Thanks,
    Toby
    struct SequenceData
        int param;
    static PF_Err SequenceSetup(PF_InData* in_data, PF_OutData* out_data)
        AEGP_SuiteHandler suites(in_data->pica_basicP);
        // Q1: Are we allowed (or required) to delete the input sequence data if it exists ???
        if (in_data->sequence_data)
            suites.HandleSuite1()->host_dispose_handle(in_data->sequence_data);
        // Q2: Are we allowed (or required) to delete the output sequence data if it exists ???
        if (out_data->sequence_data)
            suites.HandleSuite1()->host_dispose_handle(out_data->sequence_data);
        PF_Handle outH = suites.HandleSuite1()->host_new_handle(sizeof(SequenceData));
        if (!outH) return PF_Err_OUT_OF_MEMORY;
        SequenceData* outP = static_cast<SequenceData*>(suites.HandleSuite1()->host_lock_handle(outH));
        if (outP)
            AEFX_CLR_STRUCT(*outP);
            outP->param = 0;
            out_data->sequence_data = outH;
            // Q3: Do we really NOT have to set flat_sdata_size ???
            // (according to the spec, it is unused, but still some samples set it)
            out_data->flat_sdata_size = sizeof(SequenceData);
            suites.HandleSuite1()->host_unlock_handle(outH);
        if (!out_data->sequence_data) return PF_Err_INTERNAL_STRUCT_DAMAGED;
        return PF_Err_NONE;
    static PF_Err SequenceSetdown(PF_InData* in_data, PF_OutData* out_data)
        AEGP_SuiteHandler suites(in_data->pica_basicP);
        if (in_data->sequence_data)
            suites.HandleSuite1()->host_dispose_handle(in_data->sequence_data);
        // Q4: Are we required to set both in_data and out_data sequence_data pointers to NULL ???
        in_data->sequence_data = NULL;
        out_data->sequence_data = NULL;
        return PF_Err_NONE;
    static PF_Err SequenceResetup(PF_InData* in_data, PF_OutData* out_data)
        AEGP_SuiteHandler suites(in_data->pica_basicP);
        PF_Handle outH = suites.HandleSuite1()->host_new_handle(sizeof(SequenceData));
        if (!outH) return PF_Err_OUT_OF_MEMORY;
        SequenceData* outP = static_cast<SequenceData*>(suites.HandleSuite1()->host_lock_handle(outH));
        if (outP)
            AEFX_CLR_STRUCT(*outP);
            if (in_data->sequence_data)
                SequenceData* inP = static_cast<SequenceData*>(DH(in_data->sequence_data));
                if (inP)
                    outP->param = inP->param;
                // Q5: Are we allowed (or required) to delete the input sequence data if it exists ???
                suites.HandleSuite1()->host_dispose_handle(in_data->sequence_data);
            // Q6: Are we allowed (or required) to delete the output sequence data if it exists ???
            if (out_data->sequence_data) suites.HandleSuite1()->host_dispose_handle(out_data->sequence_data);
            out_data->sequence_data = outH;
            suites.HandleSuite1()->host_unlock_handle(outH);
        if (!out_data->sequence_data) return PF_Err_INTERNAL_STRUCT_DAMAGED;
        return PF_Err_NONE;

    To answer my own questions:
    Q1: in_data->sequence_data always seems to be NULL in this case, so no action necessary, but does no harm if it's in there
    Q2: out_data->sequence_data always seems to be NULL in this case, so no action necessary, but does no harm if it's in there
    Q3: out_data->flat_sdata_size is obsolete and should not be used
    Q4: seems to do no harm and since sequence data is disposed anyway at that location, should be left in there
    Q5: yes, this handle needs to be disposed here!
    Q6: no, that is not necessary and even problematic (as it is the same as in_data->sequence data when the function is called)
    Here is result of my research concerning sequence data from the last few days: http://reduxfx.com/ae_seqdata.pdf
    Cheers,
    Toby

  • Can rollback segments span one datafile like data segments

    1.Can rollback segments span one datafile like data segments?
    For e.g we have undo tablespace with 2 data files
    We have one active transaction in rbs01,now when rollback segment grows and extents are allocated to it ,if all the extents will be allocated to one data file or it can be allocated to any of the two data file.
    2.Can we set the transaction to a particular rollback segment when undo_management parameter is set to AUTO?

    1.Can rollback segments span one datafile like data
    segments?
    For e.g we have undo tablespace with 2 data files
    We have one active transaction in rbs01,now when
    rollback segment grows and extents are allocated to
    it ,if all the extents will be allocated to one data
    file or it can be allocated to any of the two data
    file.I don't think so. E.g. if you have a long transaction, you will need to create a larger RB segment and allocate this segment to be used. That's why you should be using automatic undo management as opposed to manual rollback segments.
    2.Can we set the transaction to a particular rollback
    segment when undo_management parameter is set to AUTO?No, when you use automatic undo management, you create one tablespace for undo management. THere is no concept of individual rollback segments.

  • Group By Like Dates????

    does anyone know if there is a way to group by like dates?
    so if there were 10 transaction records in a table, 5 in Oct and 5 in Nov. but not all transactions took place on the same day.
    Eg:
    DATE AMOUNT
    15-OCT-02 1.50
    16-OCT-02 115.00
    17-NOV-02 200.00
    24-NOV-02 99.00
    and so on. is there a way i can group the dates together so i can get only one record for each month so it would look like this? i dont need the date displayed
    AMOUNT
    116.50
    299.00
    any help would be great
    thanks

    thanks richard,
    that worked great.
    but i have one more question.
    what i am doing is joining two tables by account number one holds the account_name and the other holds the transaction ammount, and i need to have the ammount displayed based on the month that the user inputs. but if there is no transaction for a given month it comes up no rows selected.
    what i would like is to display the account name and if there is no transaction for a given month then have the ammount show 0.00. right now only the accounts that have transactions for the given month come up.
    many thanks for any help

  • Sound on Video doesn't work - sounds like data.

    I have the IPOD video 60GB. I have never been able to get the sound on my videos to work. The music works perfectly fine. The video and sound play fine in my Itunes, but the sound comes out like data on the ipod iteself. The video picture plays fine on the ipod. I am very frustrated with it at the moment because no one seems to be able to figure out the problem. Anyone have any advice and/or has anyone else had this problem?

    The picture from the video looks fine. The video and sound play fine on my computer in I Tunes. When I transfer the video to the Ipod, the Video plays, but the sound doesn't work properly. It comes out sounding sounding kind of like data on a dial-up connection. The techie guy at Best Buy totally cleaned it off, used their computer to reload and update I-Tunes put a different video on it and had the same result. The best I can tell, there truly is a hardware problem with my ipod since we've been able to recreate the problem on spearate machines with different videos after completely wiping the ipod. I just wish the tech support desk would figure that out.

  • Looking for Rental add-on that can handle flexible return dates

    Hi Forum,
    I am wondering which would be good add-on for rental industry that can handle flexible return dates (without cancelling original contract and creating a new one with actual date).
    I am wondering if Visnova's Rental add-on would handle flexible return dates without actually cancelling original contract and creating a new contract.
    Are there many ways to handle flexible rental return dates?
    Thanks.

    Hi,
    I have moved your thread here because you are looking for partner add-on instead of SAP add-on. Have you searched through this forum and SAP EcoHub ?
    Thanks,
    Gordon

  • Coherence cannot handle year in dates of 9999 ?

    Hi,
    I have been running into an issue with dates in coherence. We have some data which specifies a date of 01/01/9999 to indicate that the date does not expire.
    However this results in errors when loading into coherence as follows:-
    java.io.IOException: year is likely out of range: 9999
    I then found this related thread:-
    Storing large DateTime values from .NET
    Is it really true that coherence cannot handle a valid date ???? Why would you possibly validate a year in the first place given 9999 is actually a valid year !.
    TIA
    Martin

    Hi,
    What is the code that causes the error? What version of Coherence are you using?
    I can serialize/deserialize the date you have without seeing any problems. For example...
    Calendar c = Calendar.getInstance();
    c.set(9999, Calendar.JANUARY, 1);
    Date d = c.getTime();
    ConfigurablePofContext pofContext = new ConfigurablePofContext("coherence-pof-config.xml");
    Binary b = ExternalizableHelper.toBinary(d, pofContext);
    Date d2 = (Date) ExternalizableHelper.fromBinary(b, pofContext);
    System.out.println(d2);The above code works fine when I ran it with Coherence 3.7.1.6
    If I have a class that implements PortableObject with a date field set to 1/1/9999 this also serializes without any problems.
    JK

  • Is there any way to recover the iTunes Library file from the iPod Touch to preserve metadata like Date Added?

    Topic.
    I used software (SharePod) to retrieve music from my iPod Touch after my original harddrive failed, but the program does not retrieve the iTunes Library file needed to import the metadata into iTunes (though it shows in the program itself). The music backed up with no issue, but I don't have what I need to preserve things like Date Added, Play Count, etc. Any solution if I have only the physical iPod Touch?

    Yo may be able to extract some info from the backup of the iPod:
    iPhone Backup Extractor for Windows and Mac
    and Wondershare Dr.Fone for iOS: iPhone Data Recovery - Wondershare Official

  • BerkleyDB dosent like data.set_flags(DB_DBT_USERMEM);  while in put?

    It seems like .....
    berkleyDB dosent like data.set_flags(DB_DBT_USERMEM);
    for put(NULL, &key, &data, 0);
    but it will keep silent abt it .....?
    Anand Rathi

    Hi,
    You also need to call:
    data.set_size(datalen);When initializing with DB_DBT_USERMEM.
    So the whole code snippet would look like:
    Dbt key(vkey,keylen);
    Dbt data ;
    data.set_data(vdata);
    data.set_size(datalen);
    data.set_ulen(datalen);
    data.set_flags(DB_DBT_USERMEM);
    int ret = ppMyDb->getDb()->put(NULL, &key, &data, 0);The ulen field is used to store the size of the supplied user buffer.
    The size field is used to define the size of the data to store (or the amount of data retrieved) in the dbt.
    These values can differ, thus the separate fields.
    Regards,
    Alex Gorrod, Oracle Berkeley DB

Maybe you are looking for

  • The album artwork on my iPod Classic is all mixed up. Wrong artwork on each song..

    Why does the album artwork on my iPod Classic get all mixed up wheres it is correct in the library. Please help

  • Totalling the columns in ALV Grid

    Hello All, I have a output with amount and currencies. The problem i am facing is, the amount is in USD and in GBP and it is giving me single value. It is not splitting the USD amount from the GBP amount. Also, I am doing a subtotal based on material

  • Standard Text not starting on current page in sap script

    Hi all,        I have a sapscript which displays a dynamic table. After that table I have included the standard text. Ideally this standard text should display immediately after the table. But this is not happening. After the table, entrire page is l

  • P2 Import - Nothing in Transfer Window

    I have been importing data from P2 cards and a Firestore 100 for 18 months on this MBP with no real issues. Tonight I can't get any of the files to come up in the Log and Transfer window. I've tried P2 and Firestore folders (and yes, I did organize t

  • How do I edit HTML after publishing site?

    What does it mean to edit HTML after publishing the site? How exactly is that done? From another thread, it seems that re-publishing will overwrite that HTML - is that true? Thanks for any insight into this.