Checking for cycles

I would think that this is a pretty straightforward task however I'm running into some difficulties. Basically I'm given a bunch of "processes" and which can be exectuted in parallel provided they aren't dependent on another processes finishing first. I have to calculate the amount of time needed for all processes to be finished.
So for example, given this:
int[] time = {150, 200, 250};
          String[] prec = {"NYN", "NNY", "NNN"};This means, Process 0 takes 150ms, 1 takes 200ms, and 2 takes 250ms.
Process 0 depends on process 1 to finish, Process 1 waits for process 2, and process 2 has no dependencies. So the total time is 600. My code works however for large cases I seem to have trouble checking for cycles even though I think my code to check for cycles works (a cycle example being if process 2 depended on process 0 as well).
import java.util.*;
public class ParallelProgramming
     public int minTime(int[] time, String[] prec)
          //Go through list of processes and calculate the time
          for(Process p:pList)
               current = p;
               if(!p.visited)
                    check = calcTime(p);
               else check = p.time; //don't waste time going through processes I've already seen
               totalTime=Math.max(totalTime,check);
               if(flag)
                    return -1;
          return totalTime;
     public int calcTime(Process p)
          p.visited = true;
          if(p.parallel)//no dependencies
               return p.time;
          else
               int t = p.time;
               int maxTime = 0;
               for(Integer i:p.deps)//deps is list of processes that this process depends on
                    Process next = pList.get(i);
                    int check = 0;
                    if(next.visited)
                         check=next.time;
                    else check = calcTime(next);
                    if(next != current)//checks for a cycle
                         maxTime = Math.max(maxTime, check);
                    else flag = true;
               t+=maxTime;
               p.time = t;
               return (t);
     }

Sure, sorry this is going to take up quite a bit of space:
Attempt 1:
import java.util.*;
public class ParallelProgramming
     ArrayList<Process> pList = new ArrayList<Process>();
     int totalTime = 0;
     Process current;
     boolean flag = false;
     public int minTime(int[] time, String[] prec)
          //Create a list of processes and link up their dependencies
          for(int i=0;i<time.length;i++)
               Process p = new Process(prec,time[i],i);
               for(int c=0;c<prec[i].length();c++)
                    if(prec[i].charAt(c)=='Y')
                         p.parallel=false;
                         p.deps.add(c);
               pList.add(p);
          //Go through list of processes and calculate the time
          for(Process p:pList)
               current = p;
               int check = 0;
               if(!p.visited)
                    check = calcTime(p);
               else check = p.time;
               if(flag)
                    return -1;
               totalTime=Math.max(totalTime,check);
          return totalTime;
     public int calcTime(Process p)
          p.visited = true;
          if(p.parallel)
               return p.time;
          else
               int t = p.time;
               int maxTime = 0;
               for(Integer i:p.deps)//get each dependent process
                    Process next = pList.get(i);
                    int check = 0;
                    if(next.visited)
                         check=next.time;
                    else check = calcTime(next);
                    if(next != current)
                         maxTime = Math.max(maxTime, check);
                    else flag = true;
               t+=maxTime;
               p.time = t;
               return (t);
     class Process //contains schedule,time for this process, and what number process it is
          int time;
          String sch;
          boolean parallel = true;
          boolean visited = false;
          Integer num;
          ArrayList<Integer> deps = new ArrayList<Integer>();
          public Process(String s,int t,int n)
               sch = s;
               time = t;
               num = n;
          public boolean equals(Object o)
               return num==((Process)o).num;
Fails for this set of data (doesn't report a cycle):time is [299, 986, 91, 28, 462, 70, 805, 234, 730, 746, 3, 276, 999, 35, 982, 7, 632, 915, 82, 945, 55, 639, 988, 147, 702, 552, 739, 908, 833, 85, 904, 443, 47, 828, 159, 10, 260, 998, 242, 213, 990, 817, 839, 96, 995, 59 ]
prec is ["NYNNYYNNNYYNNYNYNNYNYNNYNYNNYNNYYNNYNYNYNYYNYY", "NNNNNYNNNNNNNNNNNNYNNNNNNYNNNNNNNNNNNNNYNYYNNN", "NNNYYYNYNYYYNYYYNNYNYNNNYYYYYYNYYNYYYYNYNYYYNY", "NYNNNYNNYYYNYYYYNNNNYNYYNNNNYNYYYNYYYYNYNYYYNN", "NYNNNYNNNNNNNYNNNNNNNNNYNNNNNNNNNNNYNYNYNNYNNN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "YNYYYYNYNYNNYYYYYYYNYNYYYYYNYYNYYNYYYYYYYYYNNY", "NYNNYYNNYYYYYYYNNNNNYNYYNYYNYNYYYYYYYYNYNNYNNY", "YYNNYNNNNNYNNYNYNNNNNNYYNYNNYNNYYNNNNNNNNYNNYY", "NYNNYYNNNNYNNYYYNNNNYNYYNYNNYNNYYNNYNYNYNYNNYY", "NYNNYYNNNNNNNYNYNNYNNNYYNYNNNNNNNNNNNYNYNYYNYN", "YYNNYYNNYYYNNYNNNNYNNNYYNYNNYNNNYNNYNYNYNNYNNY", "YYNNYYNNYYYNNYYYNNYNYNYYNNNNYNNYYNNNYYNYNYNNYY", "NNNNNYNNNNNNNNNNNNNNNNNYNYNNNNNNNNNYNYNYNYYNNN", "NYNNYYNNNNYNNYNYNNYNYNYYNYNNNNNNYNNYNYNYNNNNNY", "NNNNYYNNNNNNNNNNNNYNNNYYNYNNNNNNNNNYNYNYNYYNNY", "YYYYYYNYYYYYYNYYNYNNYYNYYYYYYYYYYYYNYYNYNYYYYY", "NYYYNYNYYYYYNYYYNNYNYNYYYYYYYNYNYYYNYYNYNNYYYY", "NNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNN", "YYYYYYYYYNYYYYYYYYYNNYYYYYYNYYYNNYYNNYYYYNYNYN", "NYNNYYNNNNYNNYNYNNYNNNYYNYNNNNNNYNNYNYNYNNYNYY", "YNYYYYNYYYNYNYNYNYYNNNYYNYYYYNNNYYYNNYNYYYYYYY", "NYNNNYNNNNNNNNNNNNYNNNNYNYNNNNNNNNNYNYNYNYYNNY", "NNNNNYNNNNNNNNNNNNYNNNNNNNNNNNNNNNNNNNNYNYYNNN", "YYNNYNNYNYYYYYNNNNYNYNNYNNYNYNYYYNYYYYNYNYYYYY", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNYNNNN", "YYNNNYNNNYYNYYNNNNYNYNYYNNNNYNNNYYYNYNNYNYYNYY", "YYNYNYNYYNYNNYYYNNYNNNYYYYNNNNYYYYNYNYNYNYYNYY", "NYNNYNNNNNNNNYYNNNYNYNYYNYNNNNNNNNNNNYNYNYNNYY", "YNNNNYNYYYNNYNYYNNYNYNYYYYYYNNNNYYNYNYNYNYNYYY", "YYNNYNNNYYYNYYYYNNNNYNNYNYNNYNNYYNNNYYNYNYYNYY", "NYNNYYNNNNYNNYYYNNYNYNYYNNNNYNNNYNNYNYNYNYYNNY", "NYNNNNNNNNNNNYNYNNYNNNNYNYNNNNNNNNNYNYNYNYYNNY", "YYNNYYNNYYYYNYYNNNYNYNYYNYNNYNNNNNYYYNNYNYNNYY", "NYNNYYNNYYYYYNNYNNYNNNYYNYNNYNYYYNNNNYNYNYNNYY", "NNNNNYNNNNNNNYNNNNYNNNNYNNNNNNNNNNNNNYNYNYYNNN", "YYNNYNNNYYYYNNYNNNNNNNYYNYNNYNNYYNNNNYNYNYYNYN", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNN", "NYYYYNNYYYYYYNNYYYYNNYYYYYYNYYYYYYYYYYNYYYYYNY", "NNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNN", "YNNYYNNYYYYYYYYYNNYNYNNYYNYYNYYYYNYYYYNYNYYYYY", "NNNNNYNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNNYNNNNNNNN", "NNNNNYNNNNNNNNNNNNYNNNNNNYNNNNNNNNNNNYNYNNNNNN", "NYNNYYNYNYNYYNYYNNYNYNYYNYYNYNYYYYYNYYNNNNYNNY", "NYNNYYNNNNNNNYNNNNYNNNNYNYNNNNNNNNNYNYNYNYYNNY", "NNNNYYNNNNNNNYNNNNYNNNNYNYNNNNNNNNNYNYNYNYYNNN" ]                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                       

Similar Messages

  • When using outlook and trying to retrieve my emails, my system is in this continual cycle of Connecting, Checking for mail, updated -

    When using outlook on my iphone and trying to retreive my emails, my system is in this cycle of connecting, checking for email, updated - This cycle loops after 3 seconds and begins again - I'm still receiveing my mail but it is draining my battery at a rate of 20% per 15 minutes

    Outlook is a mail client for PC's and Macs. There is no such thing as "Outlook" for iOS.

  • Mail constantly checks for new mail; downloads same emails repeatedly HELP!

    For the last three days (since 19th), Mail has been downloading the same emails over and over again. I first noticed a problem when about 20 spam emails that usually route to my Junk folder appeared in my Inbox. I thought I had just moved it incorrectly and deleted them, then they appeared again later.
    The mail jogger cycle (next to Inbox) keeps turning and turning like it can't stop checking for new mail. How do I get it to stop?? The emails are multiplying like gremlins in my Inbox and driving me nuts!
    Also, it only downloads new emails when I first open the app. I have to force-quit out of Mail, then reopen, and I will get a couple of new emails, and then ALL THE EMAILS FOR THE LAST THREE DAYS AGAIN.
    Mail was working fine for me until three days ago. The only thing I've changed recently is a Software Update on the 15th for QuickTime and iTunes.
    Please help! I tried to Repair Permissions and it didn't do anything. I also tried removing all messages from the server and that did nothing either.
    Mail Version 2.1
    THANK YOU ANYONE WHO CAN HELP ME!!
    iMac G5   Mac OS X (10.4.7)   2.1 GHz, 512 MB Memory

    UPDATE: I think I got it to stop checking mail. I have Yahoo mail and I checked my email through online Yahoo. I was able to delete a bunch of emails and it suddenly stopped checking for email in the Mail app.
    HOWEVER, it will NOT remove some of my junk emails. I was able to delete over 100+ of them. But one specific message (which I now have 8 copies of) will not go away. It is one of those 'Delivery Status Notification' emails. Is this a virus??
    I've tried Erasing Deleted Messages and Erasing Junk Mail. Neither helps. These emails won't go away.
    Help please! I would be very grateful.

  • How can I get iTunes Store to properly function on my windows 7 laptop? I have tried numerous things such as the MDos Promt, checked for firewall, checked for applications allowing iTunes to not be affected by anything. "Can't connect to network"

    How can I get my iTunes to function properly. It stopped working a couple of days ago and I can't figure how to get back and running. I have tried numerous things such as rebooting, checking for the network connection, applying it to open without security measures. Error message "Your connection time out. Check your connection." Even though I can get into the internet, iTunes is still not responding! Technical support help isn't helping!

    Just to close out ... the 'supervisor' was clueless as it turns out.  Apple does NOT have a deal with UPS on handling the Mini, so the person who gave me the info was wrong.  Did he call back?  No ... he just let me go out and find out myself.
    So I called again, and this time eventually ended up with a manager, who told me that the UPS Store thing wouldn't work, but that a box would arrive and then there would be a 'forced replacement'.
    About 10 minutes later he called back and said he discovered that EVERYTHING the supervisor did was wrong ... he didn't actually properly flag for auto-replace, so I would have gone through an identical cycle again!  So he had to restart the whole process, meaning I would get TWO 'coffins', but that I would then get an auto-replacement and would see that indicated in my support email.
    I got the email, saw 'auto-replace'.  Got the box on the 28th and immediately turned it around.  Apple got the box on the 31st, and on the 1st I got emails that my Mini would arrive on the 2nd and it also had the new serial #.
    Yesterday I grab the box from FedEx and go home to check it out.  As expected, it IMMEDIATELY worked on my WiFi without issue ... and has worked perfectly since.
    So ...
    - it was NOT my home network.
    - it WAS a hardware issue with the Mini
    - Apple does NOT do proper testing on the Mini to detect what appears to be a fairly common issue.
    - non-retail customers ARE treated as second-class by support.
    This issue took FOUR WEEKS to resolve, involved FOUR shipments back & forth, and the ONLY reason it got resolved was that *I* did the troubleshooting that Apple either would not or could not do.
    For someone who has been an Apple customer for more than 30 years, this has been a sobering experience ... I quite frankly expected much better from them.

  • Is there a program that will check for viruses or other reasons why it runs slow?

    For several months my iMac has been running slow or freezing often. Safari often quits unexpectedly as does mail on occasion.

    Programs that check for viruses are a major cause of slow Macs, so let's look at doing steps that don't handicap your computer:
    1) How full is your hard drive? You need a minimum of 10G free for background processes such as Virtual Memory.
    2) How much RAM is installed? RAM for the Mid-2010s is rather cheap at the moment, I upgraded my 27-inch Mid-2010 recently from the original 4GB to 12 GB for about US$55. Installation took only minutes.
    3) If you have an external hard drive for backups, are you using something other than Time Machine to do the backups. Many third-party backup programs can cause a performance hit.
    The next step is a little longer. It checks to see if some runaway background process is eating processor cycles and slowing you down:
    1) Use your computer normally for typical tasks for several hours, then quit any applications you have launched. Do not restart.
    2) In Applications > Utilities, find Activity Monitor. If you've not used it before, you have to change a setting. At the top of the AM window is a "Show" option. By default it is set to show "My Processes." Change it to "All Processes" like this:
    4) Now highlight the "%CPU"column as shown so the most active processes "bubble"to the top (tiny arrow points down).
    Now watch things move up and down for a minute of two. What you are looking for is any single process that is using more than about 10 percent of the processor cycles while the computer is idling. If you see one doing that, post its name in a reply here.
    Awaiting your report,
    Allan

  • ABC analysis for Cycle Counting.

    Hi SAP gurus,
    I am facing a problem from the user. While doing the ABC analysis for cycle counting using the Transaction MIBC, he is getting an error " table T159c is not maintained for plant XXXX". when i checked it SPRO cycle counting is not done for that particular plant.
    My question is : Where do we maintainc CC Physical inv indicator ? I have checked at material level in Gen.Plant/Sloc view, it is not maintained . so may be they have maintained at Plant level. where do we maintain at plant level.?

    Hi
    1) Maintain the Percentages against A,B,C,D cycle counting indicators in OMCO
    2) Perform  MICN to schedlue the batch input session for Creation of physical Inventory documents
    3) MIBC-For ABC analysis for Cycle counting .
    Note : the percentages maintained in OMCO will decide on the classification of the material as to when the Physical inventory needs to be done based on either the consumtion values/Requirement values
    Regards
    Sandeep

  • Inbound Idoc function module  for Cycle count with msg type WVINVE

    Can any one tell me which is the standard function Module which processes Cycle count for message type WVINVE.
    My requirement is to setup Inbound Idoc for cycle processing with message type WVINVE.

    Hi Mukesh,
             Inbound FM is IDOC_INPUT_STORE_INVENTORY , and Process code is WVIN.
             Yoou can check this in Tcode WE42 for process code WVIN.
    Regards
    Srikanth M

  • How often does my Curve 9300 check for new email messages?

    Hello everyone,
    I hope that you are all well.
    I use a Curve 9300 (3G) and assumed that it checked for and retrieved new emails all of the time. However, it seems that it only retreives new messages from my email account every so often. Could someone please let me know how often it checks for new emails?
    Also, when I run a Diagnostic Test in the Mobile Network Options menu the result says NO when it tests to see if it is connected to my email account. When I ran tests a while ago the result was YES. Could someone please let me know if this is anything to worry about?
    Many thanks.

    First, you have a misunderstanding that the handheld device "checks" for messages. They don't.
    RIM's technology on which the company and popularity was built is that RIM servers go out to your email server and checks for new mail and "pushes" those messages to your handheld BlackBerry.
    On a normal POP3 email server, that occurs every 15 minutes and if new messages are found they are pushed and the RIM server checks again in 2 minutes for a few cycles, and after 3-4 cycles of two minute checks, if no new messages are found, it reverts to 15 minutes.
    On an IMAP email server, the push is instant. An example of this might gmail accounts, yahoo mail, and private domains hosted by GoDaddy.
    1. If any post helps you please click the below the post(s) that helped you.
    2. Please resolve your thread by marking the post "Solution?" which solved it for you!
    3. Install free BlackBerry Protect today for backups of contacts and data.
    4. Guide to Unlocking your BlackBerry & Unlock Codes
    Join our BBM Channels (Beta)
    BlackBerry Support Forums Channel
    PIN: C0001B7B4   Display/Scan Bar Code
    Knowledge Base Updates
    PIN: C0005A9AA   Display/Scan Bar Code

  • My macbook air 13.3 keeps checking for updates and nothing is happening

    While trying to update the newest bundle from turning on this new computer - I can't get it to stop checking for updates and actually update.

    Just tried that, and it won't let me restart without closing the app store, and it won't let me close the app store until all the updates are completed (and the updates are not completing). It's a vicious cycle. Other ideas?

  • "Check for Updates..." menu item missing Acrobat 9 Mac

    Trying a clean install of Acrobat 9 Pro for Mac on a clean Mac OS X.8.3 Mountain Lion. It take the serial number without issue after launching, but in the Help Menu there is no, "Check for Updates..." item.
    Installed and logged in as a local admin. The only alternative way to update the software is to go to the products update page at:
    http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Macintosh
    To download and manually install in succession TWENTY updates to get from v. 9.0 to v. 9.5.4. This shouldn't be this difficult. I bet the Adobe Chat Customer Service that I'd be able to download and install all TWENTY updates before anyone on this forum could provide me with a solution.
    Do you accept the challenge?

    If you can not download the updates from the help menu any more, then for the MAC the updates are available at http://www.adobe.com/support/downloads/product.jsp?product=1&platform=Macintosh. Generally you have to install these updates in order. It is simplest to download the latest first and work back to see if any can be skipped. Once the product hits end of life (and I think AA9 is there), the only updates that are provided are for critical security updates. For instance there has not been an update for AA 8 since Sept 2011. Since the releases are about every 2 years, it is indeed the end-of-life time in the cycle for AA 9 based on the history of the products. The upgrade may be worth it at some time, particularly as your OS or word processor or such change over time. Since the MAC version does not have PDF Maker (as I understand it), the upgrades may not be as critical for you as for PC folks working with newer versions of MS OFFICE -- who have gotten used to those features.

  • Check for null and empty - Arraylist

    Hello all,
    Can anyone tell me the best procedure to check for null and empty for an arraylist in a jsp using JSTL. I'm trying something like this;
    <c:if test="${!empty sampleList}">
    </c:if>
    Help is greatly appreciated.
    Thanks,
    Greeshma...

    A null check might not be you best option.  If your requirement is you must have both the date and time component supplied in order to populate EventDate, then I would use a Script Functoid that takes data and time as parameters.
    In the C# method, first check if either is an empty string, if so return an empty string.
    If not, TryParse the data, if successful, return a valid data string for EventDate.  If not, error or return empty string, whichever satsifies the requirement.

  • Acmcneill1ug 14, 2014 7:16 AM I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great. When check how much memory I am using, with only Safar

    Acmcneill1ug 14, 2014 7:16 AM
    I have IMac OSX 10.9.4, 4GB,Processor 3.06 with Intell2Duo. I would like to check for Malware. I run a TechTool Pro 6 every month and that comes up great.
    When check how much memory I am using, with only Safari open I am using 3.9 and more of her 4.0 memory. She is very. very slow in processing. I had 4000
    trash to clean out and it took her over an hour to expel. Also for some reason Safari will not allow me to click on a link, in my G-mail, and let it go to the page.
    It has a sign saying a pop-up blocker is on and will not let me do it. I must open the stamp to look at my e-mails and if I have redirected link now I can do it.
    I have not changed my preferences so where is this pop-up blocker?
    I have looked at preferences on Safari and Google, which I do not understand Google, and do not see where this blocker could be.
    Malware is something I want to make sure is not on my computer. Tech Tool Pro 6 is all I know of and it does not detect Malware.
    Help.
    Ceil

    Try Thomas Reed's Adware removal tool. He posts extensively in the communities.
    Malware Guide - Adware
    Malware Discussion

  • Checking for PDF 1.7 compatibility in Preflight (Acrobat 9 Pro)

    Hi,
    I've noticed that in the given Preflight profiles in Acrobat 9 there is no compatibility check for PDF 1.7, only 1.6. is there a profile i can load? or a set of checks i can make a profile in order to determine 1.7 compatibility?
    Thanks,
    Yair Agmon.

    Hi,
    Knowing a PDF file's version premits deduction of what version "compatibility" is present.
    Version 1.7 (Acrobat 8.x) lacks compatibility for Acrobat 9.x specific features.
    Version 1.6 (Acrobat 7.x) lacks compatibility for Acrobat 8.x specific features.
    And so forth.
    Certainly, not an elegantly simple approach; but, nevertheless it is functional.
    Using Acrobat Professional/Extended 9.x -
    Open the Preflight dialog.
    Advanced > Preflight
    From the Options drop-down menu, Select "New Preflight Profile".
    The Prefight: Edit Profile dialog opens.
    A default profile name is provided (New Profile <number>).
    Initially, Click the Save button to save the profile. You can rename it later.
    Note that "New Profile" is placed in "Custom
    Now, locate your "New Profile" in the column at the left of the dialog and select
    "Custom checks".
    The available custom checks list loads in the pane to the right.
    Above and to the right is a "Find" field.
    Enter the string "version".
    A filtered list appears.
    A custom check is available for "versions newer than":
    1.2 | 1.3 | 1.4 | 1.5 | 1.6 | 1.7
    and there is a custom check for "version older than 1.3".
    Add the desired custom check to the profile. Save.
    Configure the check for Error | Warning | Info
    Info is "Notification" in the report that can be provided.
    Once you have configured "New Profile" it can be used by a Batch Sequence to check multiple files.
    When a Preflight is selected for use by a Batch Sequence you can configure for a "on success" and/or "on error" report.
    Be well...

  • How can i check for posted but not yet commited changes in a form

    Dears
    I make changes programmatically in a form then i post it using (Post built in).
    If the user exits the form, i make check for any changes in the form to commit it using the system variable :system.form_status
    Unfortunately the value of this system variable is 'Query' not 'Changed' because of using the post built in.
    Is ther another system variable ( or any another way ) that check for posted but not yet commited changes in the form ?
    Thanks a lot
    Mostafa Abolaynain

    I had faced similar situation. Using of package variable which identifies, what is the user's latest action.
    This is just a workaround.
    Capture what the user has performed into a variable say, PKG_VAR.ACTION,
    This will be assigned values like List L, and Create C, Update U and Saved S.
    If commit is executed,assing the status S to the variable.
    So while closing,
    IF :system.form_status = 'CHANGED' or PKG_VAR.ACTION in ('C','U') THEN     
    -- validate the data, n perform commit.
    else
    -- just close the form.
    end if;
    Regards
    Deepz : )

  • Unable to check for purchases. The iTunes Store is temporarily unavailable.

    Every time I go to check for purchases I receive this message. Ive been recieving it for a couple weeks now and its reallly starting to annoy me.
    Based on what info I found, I tried adding different program and port exceptions to my firewall, and I toggled my virus scanner and spyware. (and I dont have an internet accelerator so thats not the cause).
    So then when that failed i just turned my virus scanner and firewall completely off. Still its the same problem.
    I have almost 70 downloads that are incomplete (because of an error that apple support has worked out with me), but I have no way of accessing them.
    PLEASE HELP / GIVE ANY SUGGESTIONS
    iTunes 7.3.0.54, Toshiba Satellite Laptop, Windows XP service pack 2
    Toshiba Satellite   Windows XP  

    ya....
    "I understand that you are still receiving a message about connection error when trying to download your purchases.
    I have confirmed that the iTunes Store is functioning and accepting connections. Therefore, the issue is likely related to your Internet connection, local network, or computer. I'm happy to provide some information that should help you connect to the iTunes Store again.
    I apologize for any inconvenience you have experienced with this issue and I can imagine how frustrating this could be for you. However, the nature of your question falls outside the type of support provided via email by the iTunes Store team. The iTunes Store team answers non-technical questions about billing, customer accounts, downloading music, and iTunes Store."
    Im going to send them my exact connection details and such.. but if anyone knows the solutions to this PLEASE tell. It would save a ton of time and frustration.

Maybe you are looking for

  • User Profile Service failed the sign-in. User profile cannot be loaded - For any new accounts created

    I'm sharing this issue we encountered earlier today so that others might benefit from what we discovered. We're using Win8.1 Ent and on two of the systems, any accounts created encounter the following message upon attempted login (i.e. login fails):

  • Windows iTunes Movies Audio no Video instead grey screen

    Hiya, Hoping someone else knows a fix for this! So I go to play a movie in itunes (windows 7) and when i do the screen maximise and goes fine grey pixelated, i get the audio of the movie, but no video when i hit esc the movie stop and i get a brief i

  • WRVS4400N Connection Problems

    I tried to install a new WRVS4400N router in our main office that has a Static IP address to allow our 5 remote offices that have BEFVP41 routers with dynamic IP's and was unable to connect. We currently have a BEFVP41 in the main office but it is ap

  • How long does it take to burn? 12, 15, 25 hours?

    Hello friends, I have firewired, if that's a word, my one hour long Imovie6 movie from my MacBook to another Mac to burn in IDVD6 which also has IMovie6. It has been 12 hours now that it has been burning, encoding the audio being the most complex par

  • Client Independent & client dependent tables

    Hello, Can anyone please tell me what is client dependent and client independent tables? Thanks in advance. Regards Srini