Please help with creating a summary report from data collected in a fillable PDF form.

I'm sure this has been asked before so I apologize in advance - I'm new to this forum and I'm not quite sure of which section I should be in. If I may just describe a certain scenario of something I am trying to create - could you please point me in the right direction?
I'm looking to create a summary report/form to help me better organize my patients after each appointment. So data collected from other fillable forms I've created, will lead to the final page to print that will include selections from fillable text boxes or drop down lists, etc to basically summarize each encounter. It should go something like this:
FORM 1:
-pt chart #
-pg age
-purpose for visit
-date of visit
-diagnosis
-prognosis
-etc
SUMMARY page
On (-date of visit), patient (-pt chart #) arrived with complaint of (-purpose for visit)....
The diagnosis was determined to be (-diagnosis), treatment to be performed is suggested to be (-treatment) with a (-prognosis) prognosis. Treatment was (accepted or not) and completed on... etc. etc... you get the idea
Does anyone know how I can do this?
Thank you all for your time and advice!

I have downloaded Castor and got some good tutorials, but.......
There is a problem, when I try to use the Marshaller to get an XML document the following error is reported:
java.lang.NoClassDefFoundError: org/apache/xml/serialize/XMLSerializer
I have scanned the Internet looking for a solution, some recommend including Xecers in the Classpath. I downloaded Xerces 2.7.1 and added it to as instructed but this did not work.
Hope you can help

Similar Messages

  • Please, help with Live Audio/Video example from jmf solutions

    Hello,
    I�m desperate looking for a solution for a particular problem.
    I�m trying to feed JMF with an AudioInputStream generated via Java Sound, so that I can send it via RTP. The problem is that I don�t know how to properly create a DataSource from an InputStream. I know the example Live Audio/Video Data from the jmf solutions focuses on something similar.
    The problem is that I don�t know exactly how it works, os, the question is, how can I modify that example in order to use it and try to create a proper DataSource from the AudioInputStream, and then try to send it via RTP?
    I think that I manage to create a DataSource and pass it to the class AVTransmit2 from the jmf examples, and from that DataSource create a processor, which creates successfully, and then find a corresponding format and try to send it, but when i try to send it or play it I get garbage sound, so I�m not really sure whether I create the DataSource correctly or not, as I�ve made some changes on the Live Audio/Video Data from the jmf solutions to construct a livestream from the audioinputstream. Actually, I don�t understand where in the code does it construct the DataSource from the livestream, from an inputStream, because there�s not constructor like this DataSource(InputStream) neither nothing similar.
    Please help me as I�m getting very stuck with this, I would really appreciate your help,
    thanks for your time, bye.

    import javax.media.*;
    import javax.media.format.*;
    import javax.media.protocol.*;
    import java.io.IOException;
    import javax.sound.sampled.AudioInputStream;
    public class LiveAudioStream implements PushBufferStream, Runnable {
        protected ContentDescriptor cd = new ContentDescriptor(ContentDescriptor.RAW);
        protected int maxDataLength;
        protected int vez = 0;
        protected AudioInputStream data;
        public AudioInputStream audioStream;
        protected byte[] audioBuffer;
        protected javax.media.format.AudioFormat audioFormat;
        protected boolean started;
        protected Thread thread;
        protected float frameRate = 20f;
        protected BufferTransferHandler transferHandler;
        protected Control [] controls = new Control[0];
        public LiveAudioStream(byte[] audioBuf) {
             audioBuffer = audioBuf;
                      audioFormat = new AudioFormat(AudioFormat.ULAW,
                          8000.0,
                          8,
                          1,
                          Format.NOT_SPECIFIED,
                          AudioFormat.SIGNED,
                          8,
                          Format.NOT_SPECIFIED,
                          Format.byteArray);
                      maxDataLength = 40764;
                      thread = new Thread(this);
         * SourceStream
        public ContentDescriptor getContentDescriptor() {
         return cd;
        public long getContentLength() {
         return LENGTH_UNKNOWN;
        public boolean endOfStream() {
         return false;
         * PushBufferStream
        int seqNo = 0;
        double freq = 2.0;
        public Format getFormat() {
             return audioFormat;
        public void read(Buffer buffer) throws IOException {
         synchronized (this) {
             Object outdata = buffer.getData();
             if (outdata == null || !(outdata.getClass() == Format.byteArray) ||
              ((byte[])outdata).length < maxDataLength) {
              outdata = new byte[maxDataLength];
              buffer.setData(audioBuffer);          
              buffer.setFormat( audioFormat );
              buffer.setTimeStamp( 1000000000 / 8 );
             buffer.setSequenceNumber( seqNo );
             buffer.setLength(maxDataLength);
             buffer.setFlags(0);
             buffer.setHeader( null );
             seqNo++;
        public void setTransferHandler(BufferTransferHandler transferHandler) {
         synchronized (this) {
             this.transferHandler = transferHandler;
             notifyAll();
        void start(boolean started) {
         synchronized ( this ) {
             this.started = started;
             if (started && !thread.isAlive()) {
              thread = new Thread(this);
              thread.start();
             notifyAll();
         * Runnable
        public void run() {
         while (started) {
             synchronized (this) {
              while (transferHandler == null && started) {
                  try {
                   wait(1000);
                  } catch (InterruptedException ie) {
              } // while
             if (started && transferHandler != null) {
              transferHandler.transferData(this);
              try {
                  Thread.currentThread().sleep( 10 );
              } catch (InterruptedException ise) {
         } // while (started)
        } // run
        // Controls
        public Object [] getControls() {
         return controls;
        public Object getControl(String controlType) {
           try {
              Class  cls = Class.forName(controlType);
              Object cs[] = getControls();
              for (int i = 0; i < cs.length; i++) {
                 if (cls.isInstance(cs))
    return cs[i];
    return null;
    } catch (Exception e) {   // no such controlType or such control
    return null;
    and the other one, the DataSource,
    import javax.media.Time;
    import javax.media.protocol.*;
    import java.io.IOException;
    import java.io.InputStream;
    import javax.sound.sampled.AudioInputStream;
    public class CustomDataSource extends PushBufferDataSource {
        protected Object [] controls = new Object[0];
        protected boolean started = false;
        protected String contentType = "raw";
        protected boolean connected = false;
        protected Time duration = DURATION_UNKNOWN;
        protected LiveAudioStream [] streams = null;
        protected LiveAudioStream stream = null;
        public CustomDataSource(LiveAudioStream ls) {
             streams = new LiveAudioStream[1];
             stream = streams[0]= ls;
        public String getContentType() {
         if (!connected){
                System.err.println("Error: DataSource not connected");
                return null;
         return contentType;
        public byte[] getData() {
             return stream.audioBuffer;
        public void connect() throws IOException {
          if (connected)
                return;
          connected = true;
        public void disconnect() {
         try {
                if (started)
                    stop();
            } catch (IOException e) {}
         connected = false;
        public void start() throws IOException {
         // we need to throw error if connect() has not been called
            if (!connected)
                throw new java.lang.Error("DataSource must be connected before it can be started");
            if (started)
                return;
         started = true;
         stream.start(true);
        public void stop() throws IOException {
         if ((!connected) || (!started))
             return;
         started = false;
         stream.start(false);
        public Object [] getControls() {
         return controls;
        public Object getControl(String controlType) {
           try {
              Class  cls = Class.forName(controlType);
              Object cs[] = getControls();
              for (int i = 0; i < cs.length; i++) {
                 if (cls.isInstance(cs))
    return cs[i];
    return null;
    } catch (Exception e) {   // no such controlType or such control
    return null;
    public Time getDuration() {
         return duration;
    public PushBufferStream [] getStreams() {
         return streams;
    hope this helps

  • HT1296 Please Help with problem syncing Safari bookmarks from iPhone to MacBook

    i have an iPhone 5 (7 software) & Macbook Pro 10.9.1.  I have iCloud set to sync Safari in both.  I want the bookmarks on my iPhone to sync onto/be shared with my Macbook but this is not happening.  (I also have an iPad and the Safari bookmarks are automatically syncing from iPhone to iPad)
    Please help!
    Tx
    Pamela

    Hi goddessinrepose!
    Here is an article for you that will help you troubleshoot this issue with your ability to sync your iCloud bookmarks:
    iCloud: Troubleshooting iCloud Bookmarks and Reading List
    http://support.apple.com/kb/ts4001
    Thanks for being a part of the Apple Support Communities!
    Cheers,
    Braden

  • Please help with creating more diverse iweb blog entries

    I have a blog about sports memorabilia that I use iweb for: http://www.hoopography.com. I have come to a road block in creating blog entries. I have two issues:
    1.) I would like to include more than one image for each blog. I tried to just add images and wrap text around when I create the entry in iWeb, but the images do not show up on the homepage where the blog section is located. I'm assuming I need more than one "place holder", but I have not been able to add more than one. Here is an example of another blog that has multiple images for one entry. Essentially, what I am trying to accomplish: http://offysports.blogspot.com/
    2.) I would like to add YouTube videos so that they not only appear in the individual entry, but also on the homepage where the blog section is located (Otherwise, visitors to the site need to click on the entry to even realize the image is a video. I would like readers to be able to play it right on the homepage.). I have tried to use the "YouTube Widget" to add the videos when working on the entry in iWeb, but the video appears as a still image on the homepage's blog section.
    I have some knowledge of iWeb and Macs. I have been using a Mac and iWeb to work on this blog for about 6 months now, but these 2 problems have stumped and constrained me and the blog. Please help!!!!!! Thanks You.

    I tuned the Place holder into a YouTube Video Widget, and it does display on the homepage, but it does not display as a video. It displays as a still image that the reader has to click on to access the entry and then play the video in the entry instead of playing right on the homepage.
    For the multiple images, are you saying that I can only have one placeholder? I do not follow. I want multiple placeholders for multiple images throughout the single entry (ex: http://offysports.blogspot.com/2010/05/2009-10-panini-studio-basketball.html)
    Thanks

  • Please help with an embedded query (INSERT RETURNING BULK COLLECT INTO)

    I am trying to write a query inside the C# code where I would insert values into a table in bulk using bind variables. But I also I would like to receive a bulk collection of generated sequence number IDs for the REQUEST_ID. I am trying to use RETURNING REQUEST_ID BULK COLLECT INTO :REQUEST_IDs clause where :REQUEST_IDs is another bind variable
    Here is a full query that use in the C# code
    string sql = "INSERT INTO REQUESTS_TBL(REQUEST_ID, CID, PROVIDER_ID, PROVIDER_NAME, REQUEST_TYPE_ID, REQUEST_METHOD_ID, " +
    "SERVICE_START_DT, SERVICE_END_DT, SERVICE_LOCATION_CITY, SERVICE_LOCATION_STATE, " +
    "BENEFICIARY_FIRST_NAME, BENEFICIARY_LAST_NAME, BENEFICIARY_DOB, HICNUM, CCN, " +
    "CLAIM_RECEIPT_DT, ADMISSION_DT, BILL_TYPE, LANGUAGE_ID, CONTRACTOR_ID, PRIORITY_ID, " +
    "UNIVERSE_DT, REQUEST_DT, BENEFICIARY_M_INITIAL, ATTENDING_PROVIDER_NUMBER, " +
    "BILLING_NPI, BENE_ZIP_CODE, DRG, FINAL_ALLOWED_AMT, STUDY_ID, REFERRING_NPI) " +
    "VALUES " +
    "(SQ_CDCDATA.NEXTVAL, :CIDs, :PROVIDER_IDs, :PROVIDER_NAMEs, :REQUEST_TYPE_IDs, :REQUEST_METHOD_IDs, " +
    ":SERVICE_START_DTs, :SERVICE_END_DTs, :SERVICE_LOCATION_CITYs, :SERVICE_LOCATION_STATEs, " +
    ":BENEFICIARY_FIRST_NAMEs, :BENEFICIARY_LAST_NAMEs, :BENEFICIARY_DOBs, :HICNUMs, :CCNs, " +
    ":CLAIM_RECEIPT_DTs, :ADMISSION_DTs, :BILL_TYPEs, :LANGUAGE_IDs, :CONTRACTOR_IDs, :PRIORITY_IDs, " +
    ":UNIVERSE_DTs, :REQUEST_DTs, :BENEFICIARY_M_INITIALs, :ATTENDING_PROVIDER_NUMBERs, " +
    ":BILLING_NPIs, :BENE_ZIP_CODEs, :DRGs, :FINAL_ALLOWED_AMTs, :STUDY_IDs, :REFERRING_NPIs) " +
    " RETURNING REQUEST_ID BULK COLLECT INTO :REQUEST_IDs";
    int[] REQUEST_IDs = new int[range];
    cmd.Parameters.Add(":REQUEST_IDs", OracleDbType.Int32, REQUEST_IDs, System.Data.ParameterDirection.Output);
    However, when I run this query, it gives me a strange error ORA-00925: missing INTO keyword. I am not sure what that error means since I am not missing any INTOs
    Please help me resolve this error or I would appreciate a different solution
    Thank you

    It seems you are not doing a bulk insert but rather an array bind.
    (Which you will also find that it is problematic to do an INSERT with a bulk collect returning clause (while this works just fine for update/deletes) :
    http://www.oracle-developer.net/display.php?id=413)
    But you are using array bind, so you simply just need to use a
    ... Returning REQUEST_ID INTO :REQUEST_IDand that'll return you a Rquest_ID[]
    see below for a working example (I used a procedure but the result is the same)
    //Create Table Zzztab(Deptno Number, Deptname Varchar2(50) , Loc Varchar2(50) , State Varchar2(2) , Idno Number(10)) ;
    //create sequence zzzseq ;
    //CREATE OR REPLACE PROCEDURE ZZZ( P_DEPTNO   IN ZZZTAB.DEPTNO%TYPE,
    //                      P_DEPTNAME IN ZZZTAB.DEPTNAME%TYPE,
    //                      P_LOC      IN ZZZTAB.LOC%TYPE,
    //                      P_State    In Zzztab.State%Type ,
    //                      p_idno     out zzztab.idno%type
    //         IS
    //Begin
    //      Insert Into Zzztab (Deptno,   Deptname,   Loc,   State , Idno)
    //                  Values (P_Deptno, P_Deptname, P_Loc, P_State, Zzzseq.Nextval)
    //                  returning idno into p_idno;
    //END ZZZ;
    //Drop Procedure Zzz ;
    //Drop Sequence Zzzseq ;
    //drop Table Zzztab;
      class ArrayBind
        static void Main(string[] args)
          // Connect
            string connectStr = GetConnectionString();
          // Setup the Tables for sample
          Setup(connectStr);
          // Initialize array of data
          int[]    myArrayDeptNo   = new int[3]{1, 2, 3};
          String[] myArrayDeptName = {"Dev", "QA", "Facility"};
          String[] myArrayDeptLoc  = {"New York", "Chicago", "Texas"};
          String[] state = {"NY","IL","TX"} ;
          OracleConnection connection = new OracleConnection(connectStr);
          OracleCommand    command    = new OracleCommand (
            "zzz", connection);
          command.CommandType = CommandType.StoredProcedure;
          // Set the Array Size to 3. This applied to all the parameter in
          // associated with this command
          command.ArrayBindCount = 3;
          command.BindByName = true;
          // deptno parameter
          OracleParameter deptNoParam = new OracleParameter("p_deptno",OracleDbType.Int32);
          deptNoParam.Direction       = ParameterDirection.Input;
          deptNoParam.Value           = myArrayDeptNo;
          command.Parameters.Add(deptNoParam);
          // deptname parameter
          OracleParameter deptNameParam = new OracleParameter("p_deptname", OracleDbType.Varchar2);
          deptNameParam.Direction       = ParameterDirection.Input;
          deptNameParam.Value           = myArrayDeptName;
          command.Parameters.Add(deptNameParam);
          // loc parameter
          OracleParameter deptLocParam = new OracleParameter("p_loc", OracleDbType.Varchar2);
          deptLocParam.Direction       = ParameterDirection.Input;
          deptLocParam.Value           = myArrayDeptLoc;
          command.Parameters.Add(deptLocParam);
          //P_STATE -- -ARRAY
          OracleParameter stateParam = new OracleParameter("P_STATE", OracleDbType.Varchar2);
          stateParam.Direction = ParameterDirection.Input;
          stateParam.Value = state;
          command.Parameters.Add(stateParam);
                  //idParam-- ARRAY
          OracleParameter idParam = new OracleParameter("p_idno", OracleDbType.Int64 );
          idParam.Direction = ParameterDirection.Output ;
          idParam.OracleDbTypeEx = OracleDbType.Int64;
          command.Parameters.Add(idParam);
          try
            connection.Open();
            command.ExecuteNonQuery ();
            Console.WriteLine("{0} Rows Inserted", command.ArrayBindCount);
              //now cycle through the output param array
            foreach (Int64 i in (Int64[])idParam.Value)
                Console.WriteLine(i);
          catch (Exception e)
            Console.WriteLine("Execution Failed:" + e.Message);
          finally
            // connection, command used server side resource, dispose them
            // asap to conserve resource
            connection.Close();
            command.Dispose();
            connection.Dispose();
          Console.WriteLine("Press Enter to finish");
          Console.ReadKey();
        }

  • How to generate a report from data entered by users in XML forms

    hi,
      i have a requirement to generate report from xml forms which are created using XML forms Builder and stored in Km folders. management want to see in a single report all the activities of all the users in the xml form in such a way that one row in the report presents data blongs to each user.  i have no idea regarding this.
    can any one help me in detail.
    Thanking you in adavance
    sajeer

    Hi Sajeer,
    You have given quite few information what data should be collected / showed in detail. Anyhow, it sounds as if you want to provide data which isn't provided within the standard portal so far (see http://help.sap.com/saphelp_nw2004s/helpdata/en/07/dad131443b314988eeece94506f861/frameset.htm for a list of existing reports).
    For your needs you probably have to develop a repository service which reacts on content / property changes and then you would have to log these changes somewhere, for example in a DB. On the other side, you then could implement a report iView which accesses this data and displays it as whished.
    Hope it helps
    Detlev
    PS: Please consider rewarding points for helpful answers on SDN. Thanks in advance!

  • Please help with creating QTVR movie

    Hi I'm trying to create a QTVR for the first time and I'm using VR Worx.
    I intend to make a drawing referring to photos and use the drawing as a single pano image for a QTVR movie.
    First I decided to learn the creation process by using this Image:
    http://storage.vrantwerp.com/previews/vrijdagmarkt-antwerp-2_preview.jpg
    from this page:
    http://www.vrantwerp.com/index.php?tag=square
    This is the movie created with a higher resolution of that image
    http://www.vrantwerp.com/vr/vrijdagmarkt-antwerp-2/full-quicktime.html
    When I used the low res image for my test, my movie didn't come as expected. VR Worx distors the image. From this link you can download my file showing the problem
    http://savefile.com/files/1368933
    I appreciate any help
    Thank you

    I tuned the Place holder into a YouTube Video Widget, and it does display on the homepage, but it does not display as a video. It displays as a still image that the reader has to click on to access the entry and then play the video in the entry instead of playing right on the homepage.
    For the multiple images, are you saying that I can only have one placeholder? I do not follow. I want multiple placeholders for multiple images throughout the single entry (ex: http://offysports.blogspot.com/2010/05/2009-10-panini-studio-basketball.html)
    Thanks

  • Please help with creating a functional form..

    Hi world,
    I have been able to create a working and functional form using Adobe LiveCycle Designer which others can view and complete as a pdf.  I added a button to where it can be emailed to anyone.
    My question is: The email that automatically is generated currently says
    Form Returned: ProjectInquiryForm test.pdf
    The attached file is the filled-out form. Please open it to review the data.
    And of course there is a pdf attached.  Is there any way to edit this language??
    I am a technology novice so if anyone has step by step or easy instructions it would be greatly greatly appreciated!
    Thanks so much,
    Jennifer

    Thank you for your help.  I was able to create the form, and add the email button functionality, etc.  One last question, The email currently says
    Form Returned: ProjectInquiryForm test.pdf
    The attached file is the filled-out form. Please open it to review the data.
    And then has the pdf attached.  Is there any way to edit this language?
    Thanks again!
    Jennifer

  • Can you please help with creating a spreadsheet with a specific formulas that affect popup menus?

    I am a referee assignor for soccer tournaments. I would like to create a spreadsheet template that I can use that will help me with this. I have a game schedule spreadsheet with the following columns. Date, start time, age group, home team, away team, field #, center referee 1, assistant referee 1 and assistant referee 2. Here is what I would like to do if possible. If a referee has a game at say 10:00am and ends at 11:45am I would like to have a popup menu in the referee columns with referee names  where this particular referee name wouldn't show for any games between 10:00am and 11:45. I should mention that for each different age group the game lengths are different. I can also add a end time column in the spreadsheet if I need to.
    Is this even possible and if so does anyone have any suggestions on how to accomplish? I should also mention I am not very savvy on creating formulas.
    Thanks in advance
    Robert

    Thanks. This is what my schedule looks like.
    As you can see this particular official is scheduled for 10:00am. That particular age group game is 80 minutes long. I would like for his name to not appear in the dropdown until he is available again. I can create another column with the end time if needed or my thought was to sort the games by age group and enter a formula for each age group. It might sound like a lot of trouble but if there is a way to do it it would help tremendously as some of theses tournament have 300-400 games and it is hard to keep track of each referee and not double book them for the same time slot.
    I am not even sure this can be done but trying to have numbers (or excel for that matter) to do the heavy lifting for me.

  • Please help with how to copy CS3 from iMac (Snow Leopard) to MacBook Air (Mavericks)

    I have a 2006 Mac Desktop computer with the CS3 suite on it.  I still have the discs for the suite and would like to move it over to my macbook air.  I tried to just copy the Photoshop file, but that didn't work. Is there an easy way to migrate these files from one mac to another?  My MacBook Air does not have a DVD drive. Ideally, I would like to have these files on both computers, as I believe you can have your purchased programs on 2 computers.  Anyone have a a quick and easy way to make this happen?

    Never, ever migrate. CS installs are "Machine specific", you break licensing doing that.
    Go here: Download CS3 products and download the installer for your suite onto your new Mac.
    Gene

  • Please Help with creating .jar's

    Ok, so I get how to make them, the commands, the manifests, etc.
    But for god's sake my DOS doesnt seem to have access to a jar.exe to run. I can type in:
    c:\some path> jar cmvf manifest.txt jarname.jar file1 file2
    It keeps telling me jar is not a recognized command... i read a part about needing jar.exe in the directory where you're working. Do I have to copy-paste jar.exe into any file I want to make a .jar in? Can I just add jar.exe to windows directory or something to make it a default DOS command?

    yeah, i was curious if i could add it to my system32
    folder and make it a default dos command, I guess
    not... now I have another issue, i have a manifest
    file with:
    Main-Class: Cyptography
    Name: JS/Cryptography
    Specification-Title: JCrypto
    Specification-Version: .2f
    Specification-Vendor: ME
    Implementation-Title: JCrypto
    Implementation-Version: build3
    Implementation-Vendor: ME
    Sealed: true
    and it loads into the jar fine (I unzipped it and
    checked the manifest.mf file in a text editor to make
    sure). But when i run java -jar CryptoStudy.jar, it
    says:
    Exception in thread "main"
    java.lang.NoClassDefFoundError: Cyrptography
    Now my Cryptography.class file is in the .jar along
    with everything else I need. sooo what gives?
    Manifest main-class is defined, class is included in
    n jar, manifest in the jar is correct... why will it
    not run my program? Do I need to package my class
    somehow? (if so how?)You misspelt "Cryptography"

  • Please help with executing a java program from another java program

    Hi, I have tried to execute a very simple java program which is printed out "Hello world" from another java gui program when the user click on the "START" button. However, I don't receive any print out on the terminal when they click it. These two programs are being developed in Unix environment. Here is the code that I am trying to use.
    Runtime r = Runtime.getRuntime();
    r.exec("java HelloWorld");
    p.s. HelloWorld is java class of the HelloWorld.java

    I think you have to luanch your MS Prompt first before executing the command.

  • Problems With Creating Group of Objects from a Collection

    Hi, please kindly help.
    I have a Collection. Its name is "activities". It is a collection of the Activity object with "color" as one of the attributes. I am writing a method and takes "activities" as a parameter (see below). The method is supposed to group "activities" by "color" and return a Collection called "activitiesGroups". And I have created an "activitiesGroup" (note: singular not plural) class with the getters and setters of all its attributes.
    I first sorted the "activities" by color. So far so good. Thereafter, I am iterating through this sorted list. If activity.getColor().trim() is tested different, I know that a new group, i.e., activitiesGroup, should be created and I should code activitiesGroups.add( activitiesGroup );Problems are:
    1. If I am at the first record of the sorted collection while iterating, I do not what to add a new group to the returned List activitiesGroups. I want to greate a new group only.
    Because "colorString" is initialized as a blank, when I code activitiesGroups.add( activitiesGroup );, I depend on that I am not at the first record of the sorted collection by testing if colorString.length(); is not a zero. I do not think it is the correct way to do it.
    What is the proper way of knowing I am at the first record of the sorted collection while iterating?
    2. I have to sum up two of the attributes of the ActivitiesGroup object: increaseToValue and decreaseToValue. While iterating, I repeat for each record within a group:
    aGroup.setIncreaseToValue( increase );
    aGroup.setDecreaseToValue( decrease ); How do I avoid the repetition?
         private Comparator colorComparator;
         private List activitiesGroups;
         private ActivitiesGroup aGroup;
         private String colorString = "";
         private String nextColorString = "";
         private BigDecimal increase;
         private BigDecimal decrease;               
         public List groupingByColor( List activities ) {
              if ( activities == null) {
                   return new ArrayList(0);
              if ( !activities.isEmpty() ) {
                   Collections.sort( activities, colorComparator);  // It works.
                   activitiesGroups = new ArrayList();
                   Iterator it = activities.iterator();
                   while ( it.hasNext() ) {
                        Activity activity = ( Activity )it.next();
                        nextColorString = activity.getColor().trim();                    
                        if ( !nextColorString.equalsIgnoreCase( colorString.trim() ) ) {
                             int length = colorString.length();
                             if ( length != 0 ) { activitiesGroups.add( aGroup ); } // Problem # 1
                             aGroup = new ActivitiesGroup();
                                                              aGroup.setColor( activity.getColor() );
                             increase = increase.add( activity.getIncreaseToValue() );
                             decrease = decrease.add( activity.getDecreaseToValue() );
                             aGroup.setIncreaseToValue( increase ); // Problem #2: repeated for every record in a group
                             aGroup.setDecreaseToValue( decrease ); // Problem #2: repeated for every record in a group
                        } else {
                            increase = increase.add( activity.getIncreaseToValue() );
                            decrease = decrease.add( activity.getDecreaseToValue() );
                            aGroup.setIncreaseToValue( increase ); // Problem #2: repeated for every record in a group
                            aGroup.setDecreaseToValue( decrease );      // Problem #2: repeated for every record in a group                         
                                                                    colorString = nextColorString;
              return activitiesGroups;
         }

    I first sorted the "activities" by color. So far so good. Thereafter, I am iterating through this sorted list. If activity.getColor().trim() is So in fact you are not dealing with an arbitrary Collection (as you stated in the first place), you are dealing with a List.
    You should know that there is a way to do this just with an iterator on an arbitrary collection - without needing to sort your list, and do it in O(n) time.

  • Please help with restoring different apps and their data between 2 iPads

    I just bought a new iPad Air 2 . I currently have 2 iPads, 1st gen and iPad 2nd, each with its own set of apps and their data. I backed up each older iPad manually as  a full backup. I created a separate library for one of them when doing this. Now I want to transfer iPad 1st gen apps and data to iPad 2nd, so I reset iPad 2nd to factory and then restored from the manual back up of the iPad 1st gen and it seems to work fine. Before that I had backed up iPad 2nd's current data. So now I now I want to transfer the iPad 2nd apps and data to the new iPad Air. I selected the backup by the time stamp that I had backed up iPad 2nd. I didn't know how to rename each iPad to something unique. It restored from backup, but it's all the apps and data from my iPad 1st gen backup, not iPad 2nd.
    I'm utterly confused. Even when I have the separate iTunes library open it shows all the manual backups I performed, so it's not truly a separate library. Do I need to manually install/remove the various apps on the newer iPad?

    If you only have 1 file per quarter, one obvious thing to do would be to edit out the time in between plays, the time-outs, and the like. That is easily done in iMovie.
    Having said that, importing (and exporting) in high definition takes time, and your times do not seem unreasonable.
    Message was edited by: AppleMan1958

  • Please help to get onhand stock report with last purchase and billed date warehouse and item wise

    please help to get onhand stock report with last purchase and billed date warehouse and item wise

    Hi Rajeesh Ambadi...
    Try This
    SELECT distinct T0.ITEMCODE , t1.ItemName, T0.ONHAND as 'Total Qty',  
      T1.LASTPURDAT ,t1.LastPurPrc
    FROM OITW T0 INNER JOIN OITM T1 ON T0.ITEMCODE = T1.ITEMCODE
    INNER JOIN OITB T2 ON T1.ITMSGRPCOD=T2.ITMSGRPCOD left join ibt1 t3 on t3.itemcode = t0.itemcode and t3.whscode = t0.whscode
    WHERE
    T0.ONHAND>0
    AND T0.WhsCode ='[%0]'
    Hope Helpful
    Regards
    Kennedy

Maybe you are looking for

  • F110, Automatic payment run.

    Dear GURUS, Is it possible not to clear down vendor or cutstomer while executing F110 trxn? Currently its been cleared but gusee there should be config i can deactivate "clearing". J.

  • Can the SidHistory attribute be moved from one User account to a different User account in the same Forest/Domain?

    Hello, Can the SidHistory attribute be moved from one User account to a different User account in the same Forest/Domain manually with  Active Directory Users and Computers or with something like Powershell?  it would seem to me this is a safe operat

  • Fullscreen 2nd Display on OSX (NBA League Pass streaming)

    When using NBA's League Pass service you can stream live and pre-recorded games. It uses Flash to do this and has a full screen option. Howver, when I full screen it on my 2nd display, and then click on something else on the main display, the video g

  • Receiving a FAX or allowing PC user access to idisk file

    Hello everyone, I work with someone who uses a PC and Outlook Express and I need to be able to receive her appointment schedule in some manner. I have Verizon DSL, I followed the Help instructions to set up my ibook to receive a fax and connected a c

  • BPC 10 MS - FILTER USING PROPERTY

    HELLO, CAN WE USE "PARENTH1" IN SCRIPTLOGIC TO FILTER RECORDS?  WILL BELOW LOGIC WORK? *WHEN ACCOUNT    *IS ACCT1       *WHEN DATASRC.PARENTH1         *IS "PROP1"          *REC(FACTOR=1,ACCOUNT=ACCT2)     *ENDWHEN *ENDWHEN THANKS IN ADVANCE.