Action timer

Greetings all-
I am creating an interactive that when stagnant for a given
time period will gotoAndPlay another scene. How I have done this in
the past is to add a bunch of frames, and put the actionscript in
the last one. If I have to change the period of time, I have to go
into every scene and increase the number of frames. There has got
to be a better way.
Any suggestions? Your help is as always - appreciated!

i m a newbie,
> I am creating an interactive that when stagnant for a
> given time period will gotoAndPlay another scene.
Gotcha.
> How I have done this in the past is to add a bunch
> of frames, and put the actionscript in the last one.
Aha. Okay. And that's certainly a way to do it. Nothing
wrong with
that. Only, as you've seen, it can be tedious under this
circumstance to
change how long Flash waits, because you have to add more
frames or change
the framerate.
> Any suggestions? Your help is as always - appreciated!
Fortunately, it's pretty to use a timer to accomplish what
you're after.
When you want to change the duration, all you have to do is
change a number,
rather than add frames (this solution pauses the timeline for
a specified
interval, then resumes the timeline).
The first one works for AS2; the second works for AS3.
http://www.quip.net/blog/2006/flash/how-to-pause-timeline
http://www.quip.net/blog/2007/flash/how-to-pause-timeline-as3
David Stiller
Co-author, ActionScript 3.0 Quick Reference Guide
http://tinyurl.com/2s28a5
"Luck is the residue of good design."

Similar Messages

  • Solution manager last action time

    Dear Expert,
    I know in crm_dno_monitor have on column show "Change On"-it show the last action for complete the ticket.
    Now my concern is in crm_dno_monitor, is there any posibility to show on last reply time? i mean the consultant last reply solution to customer while the ticket haven close yet.
    As after consultant send solution then might wait for long time until customer close the ticket. So it will longer our resolution time.
    Please advice any solution for that as might enhance on crm_dno_monitor?
    Thanks
    regards,
    ng chong chuan

    hi,
    1. first you copy the profile and then you add (or copy the action)
    for support message we use SLFN0001 but I guess for AI_SDK_STANDARD this is about the same.
    the developer has developed his own ( method ) implementation of the badi EXEC_METHODCALL_PPF
    filter PPFDFLTVAL with a new filter value Z_SET_LAST_SOLUTION_TIME (something like that in your case)
    if you have 3 fields Just add some coding like
        lv_value-guid             = lv_guid_ref.
        lv_value-ZZCUSTOMER_H0101 = ls_customer_h-ZZCUSTOMER_H0101.
        lv_value-ZZCUSTOMER_H0102 = 'Xxxxxxx'.
       lv_value-ZZCUSTOMER_H0103 =  post time. (ask a programmer to define the write code)
    2. just add the new field(s) as new attribute
    3. I don't understand your question. Your programmer needs more info ? I am not a programmer and I can't help you further, if he knows programming he should know how to implement a new method
    Note : All of this is working if you schedule the action under the right condition via customizing or directly by Calling transaction SPPFCADM and select CRMD_ORDER , select your action profile
    br Xavier

  • Conditions for triggering actions - times in SLA

    Dear CRM experts,
    I'm configuring actions in SAP CRM 2007 - Service Scenario: in particular, I'm trying to configure actions for triggering of e-mails when SLA deadlines are reached.
    Let's assume that the following are the dates in my service ticket:
    Opening of the ticket --> 10/05/09 - 10:15 A.M.
    First level of escalation --> 10/05/09 - 02:15 P.M.
    To Do By --> 10/05/09 - 06:15 P.M.
    When I write the Starting Condition for the action, I can only compare the Date Types (Opening of the ticket , First level of escalation, To Do By ) with the Local Date of the System...
    The problem is that the condition considers only the DATE(10/05/09), but not the TIME!!
    But in our scenarios, the time is a critical parameter!
    Any idea on how to solve my problem?
    Thanks in advance,
    regards,
    Andrea Ricci

    Dear Andrea,
    I have similar requirement,Where as i have maintained the first respone as date type and in duration i have maintained 15 Min.
    Where as in action condition I have maintained Fisrt response<current date. Notification receipt as Todays date and time.
    Please guid me in details.
    Regards
    Ashwin

  • Actions - Time of Processing

    Hi CRM Gurus,
    I have 2 questions.
    1. In CRM config,(crmc_action_conf) , we have Time of Processing where we can tell when to process the action based on following options.
      1. Immediate processing.
      2. When Saving
      3. Process using Selection Report.
    Here the selection Report means 'RSPPFPROCESS'  program? OR any other programs are there?
    2. If RSPPFPROCESS program process the actions , then that means all the actions configured in TIme of Processing option
    must be selected as   'Process Using Selection Report', then only RSPPFPROCESS program will pickup OR
    if I use the other 2 options : Immediate Processing OR When Saving , the program 'RSPPFPROCESS' will pickup if there are actions ready to process.
    Why did SAP give the above 2 options(1 & 2) in the selection screen of the RSPPFPROCESS program?  Isn't the program should pickup only actions that are configured for 3 option(Process using selection report)?
    Pls clarify.
    Thanks,
    Pandu

    Hi Pandu,
    The RSPPFPROCESS program, asyou might already know, is a monitoring tool to check for actions that were processed/incorrectly processed/not processed, from a central area.
    In the event you want to execute, multiple actions at once or repeat them etc, you can do the same from here.
    as for your Q2
    To an extent your question is understandable as to why the options.(but its like asking why "Son" and "Sun" are pronounced the same???)
    It is understood that all the actions of type "Immediate Processing" or "Processing when Saving" would have already processed during the transaction creation & save respectively.
    If you want to repeat any of these in bulk, the program is a good tool for that.
    Plus, all those that result in an error or arent processed, of course can be reexecuted from here as well.
    So, all 3 options have their purpose within here.
    For the ones with Selection report, unless you want to manually go into the ACTION MONITOR and execute, each time, a batch job is used, which takes care of such actions.
    Regards,
    Ashwin

  • Can no longer recommend Fascinate due to non-support of issues -  class action time?

    I loved my Fascinate when I got it, but the failure of Verizon to promptly resolve KNOWN software issues with known-to-Verizon solutions constitutes something dangerously close to fraud.  Like others, I was promised a prompt upgrade to Froyo by a Verizon rep when I bought the phone.  Like others. my GPS performance is terrible, with frequent delays of 10 minutes to infinity to achieve a location lock.  Like others, I let my 30 day return expire because I was promised a software fix was coming out Real Soon Now, so now I am screwed.
    The issue is NOT the delayed Froyo update,the issue is that the phone does not function as promised by Verizon when sold.  Knowing sale of a defective product that does not meet its advertised features is fraudulent under the commercial code in any state of the union.
    Therefore I am doing some of the few things I can do under the circumstances:
    First of all, new buyers are warned that the phone DOES NOT WORK as advertised in many cases due to software issues with GPS, email push, and other features.  If you buy it, don't expect it to work.  If you are promised otherwise by a Verizon store or rep, be warned that the promises are empty.  Be warned that the Verizon implementation of Bing en lieu of Google search and other disruptions of the base Google services makes the phone almost unusable compared to a true Android environment such as that on certain other Android phones and providers.  Bing is terrible. VZNavigator is a rip off (and terrible).  If you are a lawyer interested in a class action against Verizon related to thi sphone be aware that you should have plenty of interested parties.  Personally I would like my service fees waved for the period from September when I bought the phone through whenever-they-actually-make-it-work with debugged software.  It is clear that engineering KNOWS how to make the GPS work even without a full Froyo update - they just haven't released a patch.
    I wish I could love this phone - but I can't recommend it any more to any one for any reason until Samsung/Verizon fix the software and de-Bing and de-bloat an otherwise excellent piece of hardware.  This is EXACTLY what Apple got right, and that Verizon has wrong.  A pox on them and their bloatware and BIng and broken search functions.  It's like a bad dream.  Swapping the hardware out for another Fasicinate won't fix it.  I'm stuck.

    Do I actually expect to see a suit?  No, not really.  But, message reads on the first page of the Fascinate forum suggest that as of now at least 4000 potential Fascinate owners may have received enough reasons to consider either a different phone or a different carrier.  Verizon execs might have a look over the fence at IPhone land, where there is a mob wielding torches and pitch forks that loves their iPhones (but hates ATT for the poor service experience).  Provide even average service and you build brand loyalty that overcomes almost any foul up.  Give your customers good reasons to hate you, and they surely will.
    Today I drove a 30 mile round trip with a fresh A-GPS almanac and never got GPS located closer than 1100 yards.  If it ever DOES synch, it will be good to 10 ft.  and stay locked until I go indoors.  If.  The Bluetooth refused to connect (again).  Works great WHEN it actually occasionally works though.  The hardware can do it.  The software is a bad joke.  Is is Samsung's fault?  Maybe.  Could Verizon provide a timely fix by internal or Samsung resources? Definitely. Samsung has fixed these issues for other markets long ago.   The shame is that it takes what could be a great experience and sours it all.  It's not about Froyo, it's about having basic features that work.  While some of thse phones work perfectly, some combination of hardware and software issues means that too many customers did not receive what the paid for, and they have good reason to be angry with Verizon for the poor experience and callous treatment.

  • How to make the SLA time stop when the status of SR is set to Customer Action?

    Dear All,
    When a Service Request is created, the agent take over this SR and then set the status to Customer Action. I know the CRM 7.03 has the ability to exclude the Cumtomer Action time out form the Response time of SLA. However, I don`t know how to set it up. Could somebody help to give me some information about this?
    I noticed that in SLA, there is a Work duration(SRQ_WORK_DUR) and a Total Duration(SRQ_TOT_DUR), which Duration is used to affect the traffic light of SLA MPT time?
    Thank you in advance.
    BR,
    Elvis

    Hi,
    in fact you can only trace duration of Customer Action status lifetime - this you can do by
    SPRO -> ... -> Define Settings for Durations.
    and SPRO -> ... -> Date Management to create this new duration and add to SR dates profile.
    So then in Dates tab of Service Request you will have new duration called eg. Customer Action.
    If you would like to additionally exclude it from Due Date, so you should then add this status lifetime to Due Date - then Due Date would be pushed to the future (eg. Customer Action status took 3 hours, so after changing status to other one you can write down this time to duration, and then add to Due Date).
    For that you need to have a development - eg. using CRM BT Events, or in WebUI layer.
    BR
    Radek

  • How to display All User Logged in time & Logout Time?

    How to display All User Logged in time & Logout Time?
    Hi..
    I want to display All user who logged in the portal,
    their username,
    their time logged in,
    their time logged out..
    where can i find these information?
    do Portal have already something like this?
    Plz advise..Thanks.

    The login information is in the wwlog_activity_log. The logout action is only logged when it is explicit. I am using the last user action time for the logout time so I can determine the duration of the visit.

  • Time of opening document

    Hi,
    is there a property to read, at what time a document was opened.
    Target is to know how long it took to edit a document.
    File will be opened via the File - Open dialog, at that point no scripting involved,
    but at the end the file is saved by using a javascript. In that script i wan't to make a log file with edit time

    I wrote a run twice script to time the duration it took to run an action the could be used to do something like you want to do. It may not be perfect for I do not know how you would trigger the second run of the script.  You could trigger the first run using the script event manager to run the script when an open document event occurs.  The script would note the start time in the documents metadata.  A second run of the script before your close event would be needed to know the stop time  and  get the start start times from the metadata to calculate the duration. 
    If you use a script to save and close your document you could through in a run of the script before you close out the document.  A close event happens after the document has been closed so the document and its metadata is not available when a script manager close event is triggered.
    /* =============================================================================================
    // 2010  John J. McAssey (JJMack)  http://www.mouseprints.net/
    // This script is supplied as is. It is provided as freeware.
    // The author accepts no liability for any problems arising from its use.
    // This script is designed to be used by a Photoshop Action twice
    // A good pratice to use when creating an actions that use this scipt is for the action
    // not to do a save or play some other action between its two useages of this Script.
    // The first time this script is used by an action the currend date and time
    // are saved into the document's meta-data Info Instructions field.
    // The second time this script used by the action this script retreives the date and time
    // that was saved in the meta-data during the first usage.
    // The script Outputs an Action duration message to Alerts the user of the time it took.
    // Logs the Action Times into the ActionTime.log file in the folder where the script resides.
    // Then the saved date and time is removed from the document's meta-data Info Instructions field.
    // ============================================================================================== */
    <javascriptresource>
    <about>$$$/JavaScripts/ActionTime/About=JJMack's ActionTime^r^rCopyright 2010 Mouseprints.^r^rRun twice script utility for action.^rNOTE:Don't play other actions between runs!^r^rFirst Run records Actions Start Time.^rSecond Run removes start time recording and outputs an execution time message.</about>
    <enableinfo>true</enableinfo>
    <category>JJMack's Action Run Twice Utility</category>
    </javascriptresource>
    if (app.documents.length > 0) { // LOGFile faild trying this --> app.activeDocument.suspendHistory('ActionTime','main()');
              if (app.activeDocument.info.instructions.indexOf("<ActionTime>") == -1 ){ // no footprint fisrt useage
                        //alert("first");
                        // Retreive Date Time for Foot Print
                        var stime = new Date().getTime();
                        //alert("Time = " + stime );
                        StartTime = timeStamp() ;
                        // put footprint in metadata info instructions
                        app.activeDocument.info.instructions = app.activeDocument.info.instructions + "<ActionTime>" + StartTime + "</ActionTime>" + "<ClockTime>" + stime + "</ClockTime>";
                        //alert( "Saved ="  + "<ActionTime>" + StartTime + "</ActionTime>"+ "<ClockTime>" + stime + "</ClockTime>");
              else {
                        //alert("second");
                        var etime = new Date().getTime();
                        //alert("Time = " + etime );
                        EndTime = timeStamp();
                        // Retreive saved information
                        ActionTimeOffset = app.activeDocument.info.instructions.indexOf("<ActionTime>") + "<ActionTime>".length;
                        ActionTimeLength = app.activeDocument.info.instructions.indexOf("</ActionTime") -ActionTimeOffset;
                        StartTime = app.activeDocument.info.instructions.substr(ActionTimeOffset, ActionTimeLength);
                        ClockTimeOffset = app.activeDocument.info.instructions.indexOf("<ClockTime>") + "<ClockTime>".length;
                        ClockTimeLength = app.activeDocument.info.instructions.indexOf("</ClockTime") -ClockTimeOffset;
                        stime = app.activeDocument.info.instructions.substr(ClockTimeOffset, ClockTimeLength);
                    duration = ((etime - stime)/1000);
                        alert("ActionTime \rStart = " + StartTime  + " \rEnd   = " +  EndTime + " \rTime = " +  duration + " Seconds");
                        // Log Edit Session into Log File
                        var scriptLocation = findScript()+ "0";
                    var LOGFilePath = scriptLocation.slice(0,-4) + "log";
                    var LOGFile = File(LOGFilePath);
                        writeLOG(app.activeDocument.name + " Start=" + StartTime  + " End=" +  EndTime + " Time=" +  duration + " Seconds\r")
                        // End log File
                        // Remove footprint from metadata info instructions
                        before = app.activeDocument.info.instructions.substr(0,app.activeDocument.info.instructions.indexOf("<ActionTime>"));
                        afterOffset = app.activeDocument.info.instructions.indexOf("</ClockTime>") + "</ClockTime>".length;
                        after = app.activeDocument.info.instructions.substr(afterOffset, app.activeDocument.info.instructions.length - afterOffset);
                        //alert ("before = " + before + " after = " + after);
                        app.activeDocument.info.instructions = before + after;
    else { alert("You must have at least one open document to run this script!"); }
    //       main function
    function main(){
    // END - main function
    function timeStamp(){
              // Get the time and format it
              var digital = new Date();
              var hours = digital.getHours();
              var minutes = digital.getMinutes();
              var seconds = digital.getSeconds();
              var amOrPm = "AM";
              if (hours > 11) amOrPm = "PM";
              if (hours > 12) hours = hours - 12;
              if (hours == 0) hours = 12;
              if (minutes <= 9) minutes = "0" + minutes;
              if (seconds <= 9) seconds = "0" + seconds;
              // Get the date and format it
              var date = new Date();
              var d  = date.getDate();
              var day = (d < 10) ? '0' + d : d;
              var m = date.getMonth() + 1;
              var month = (m < 10) ? '0' + m : m;
              var yy = date.getYear();
              var year = (yy < 1000) ? yy + 1900 : yy;
              // create a variable with the fully formatted the time and date
              // todaysDate = hours + ":" + minutes + ":" + seconds + " " + amOrPm + " - " + day + "/" + month + "/" + year;
              // todaysDate = hours + ":" + minutes + ":" + seconds + " " + amOrPm + " - " + month + "/" + day + "/" + year;
              MonthNames = new Array("January","February","March","April","May","June","July","August","September","October","November","December");
              todaysDate = hours + ":" + minutes + ":" + seconds + " " + amOrPm + " " + MonthNames[date.getMonth()] + " " + date.getDate() + ", " + year;
            return todaysDate;
    // Find the location where this script resides
    function findScript() {
              var where = "";
              try {
                        FORCEERROR = FORCERRROR;
              catch(err) {
                        // alert(err.fileName);
                        // alert(File(err.fileName).exists);
                        where = File(err.fileName);
              return where;
    // Write LOG file
        function writeLOG(log) {
            try {
                if(LOGFile.exists) {
                    LOGFile.open ("e");
                    LOGFile.seek (0,2);      // Move to EOF
                } else {
                LOGFile.open ("w");          // Add unicode marker if we change to LOG file format for this log file
            LOGFile.encoding = "UTF8"; // set UTF8
            LOGFile.write(log);
            LOGFile.close();
            } catch (e) {
                alert(e);
            } finally {
            return;

  • Help me with this timer stuff

    So here's my code first of all:
    private class TimerListener implements ActionListener{
              @Override
              public void actionPerformed(ActionEvent action) {
                   time--;
                   System.out.println(time);
                   int minute = time/60;
                   int seconds = time%60;
                   updateTime = minute + ":" + seconds;
                   if (time == 0) {
                        timer.stop();
                        if (que.size() != 0){
                             temp = que.remove();
                             time = temp.getPlaytime();
                             timer.start();
                             player.playSong(baseDir + temp.getAudioFileName());
         }this code is located at a class called SongQueue. I have another class called Jukebox which has a song player object in it. Song player has a method called playSong and it takes a string, which is the filename of the song.
    My problem here is that everytime the timer stops, it will search in the queue if there is another Song, if it has then it will start the timer again, until there has been no song in the queue (LinkedList). The main thing is, everytime a timer starts, a song has also to start. But how do I start the song to play then, from the Jukebox class if possible. Any idea??

    yes I do. it is the following:
    package songplayer;
    import java.awt.BorderLayout;
    import java.awt.Container;
    import java.awt.Dimension;
    import java.awt.GridLayout;
    import java.awt.event.ActionEvent;
    import java.awt.event.ActionListener;
    import javax.swing.JButton;
    import javax.swing.JFrame;
    import javax.swing.JLabel;
    import javax.swing.JList;
    import javax.swing.JOptionPane;
    import javax.swing.JPanel;
    import javax.swing.JScrollPane;
    import javax.swing.JTextField;
    import javax.swing.ListModel;
    import javax.swing.ListSelectionModel;
    import javax.swing.event.ListSelectionEvent;
    import javax.swing.event.ListSelectionListener;
    public class Jukebox extends JFrame {
         public static void main(String[] args) {
              Jukebox jukebox = new Jukebox();
              jukebox.setVisible(true);
         private JukeboxAccountCollection account;
         private SongQueue queue;
         private JukeboxAccount currentAccount;
         private JTextField input;
         private JButton play;
         private JButton login;
         private JButton logout;
         private JLabel name;
         private JLabel timeRemaining;
         private JLabel playsRemaining;
         private JPanel panelRight;
         private JPanel panelQueue;
         private JPanel panelProperties;
         private JPanel panelLeft;
         private JPanel panelCenter;
         private JList view;
         private JList view1;
         private ListModel model1;
         private ListModel model;
         public static final String baseDir = System.getProperty("user.dir")
                   + "/songfiles/";
         public Jukebox() {
              this.setSize(600, 600);
              queue = new SongQueue();
              account = new JukeboxAccountCollection();
              play = new JButton("Play");
              login = new JButton("Log on");
              logout = new JButton("Log out");
              input = new JTextField("");
              name = new JLabel("Name: ");
              timeRemaining = new JLabel("Time Remaining: ");
              playsRemaining = new JLabel("Plays Remaining: ");
              model = new SongCollection();
              model1 = new SongQueue();
              ((SongCollection) model).addSong(new Song("Jamiroquai",
                        "7 Days In Sunny June", 242, "7 Days in Sunny June.mp3"));
              view = new JList(model);
              view.setSelectedIndex(0);
              view.setPreferredSize(new Dimension(250, 600));
              view.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
              JScrollPane pane = new JScrollPane(view);
              pane.setPreferredSize(new Dimension(180, 600));
              view1 = new JList(model1);
              view1.setPreferredSize(new Dimension(200, 200));
              panelQueue = new JPanel();
              panelQueue.add(view1);
              panelProperties = new JPanel();
              panelProperties.setPreferredSize(new Dimension(200, 600));
              panelProperties.setLayout(new GridLayout(7, 1, 5, 5));
              panelProperties.add(input);
              panelProperties.add(name);
              panelProperties.add(timeRemaining);
              panelProperties.add(playsRemaining);
              panelProperties.add(login);
              panelProperties.add(logout);
              panelRight = new JPanel();
              panelRight.setLayout(new GridLayout(2, 1));
              panelRight.add(panelQueue);
              panelRight.add(panelProperties);
              panelCenter = new JPanel();
              panelCenter.setPreferredSize(new Dimension(100, 50));
              panelCenter.add(play);
              panelLeft = new JPanel();
              panelLeft.setPreferredSize(new Dimension(260, 600));
              panelLeft.add(view);
              Container cp = this.getContentPane();
              cp.add(panelRight, BorderLayout.EAST);
              cp.add(panelLeft, BorderLayout.WEST);
              cp.add(panelCenter, BorderLayout.SOUTH);
              LoginListener loginListener = new LoginListener();
              LogoutListener logoutListener = new LogoutListener();
              PlayListener playListener = new PlayListener();
              login.addActionListener(loginListener);
              input.addActionListener(loginListener);
              play.addActionListener(playListener);
              logout.addActionListener(logoutListener);
         private class LoginListener implements ActionListener {
              @Override
              public void actionPerformed(ActionEvent arg0) {
                   if (account.find(input.getText())) {
                        currentAccount = account.getAccount(input.getText());
                        name.setText("Name: " + currentAccount.getID());
                        playsRemaining.setText("Plays Remaining: "
                                  + currentAccount.getPlayRemaining());
                        timeRemaining.setText("Time Remaining: "
                                  + currentAccount.getTimeRemaining() / 60 + ":"
                                  + currentAccount.getTimeRemaining() % 60);
                   } else
                        JOptionPane.showMessageDialog(null, JOptionPane.ERROR_MESSAGE);
         private class LogoutListener implements ActionListener {
              @Override
              public void actionPerformed(ActionEvent arg0) {
                   currentAccount = null;
                   name.setText("Name: ");
                   playsRemaining.setText("Plays Remaining: ");
                   timeRemaining.setText("Time Remaining: ");
         private class PlayListener implements ActionListener {
              @Override
              public void actionPerformed(ActionEvent event) {
                   Song currentSong = (Song) view.getSelectedValue();
                   if (currentAccount == null)
                        JOptionPane.showMessageDialog(null, JOptionPane.ERROR_MESSAGE);
                   if (currentAccount.canPlaySong(currentSong.getPlaytime())
                             && currentSong.canPlayToday()) {
                        currentAccount.debit(currentSong.getPlaytime());
                        playsRemaining.setText("Plays Remaining: "
                                  + currentAccount.getPlayRemaining());
                        timeRemaining.setText("Time Remaining: "
                                  + currentAccount.getTimeRemaining() / 60 + ":"
                                  + currentAccount.getTimeRemaining() % 60);
                        queue.addSong(currentSong);
                        ((SongQueue) model1).addSong(currentSong);
                        view1.updateUI();
                        queue.execute();
                   } else
                        JOptionPane.showMessageDialog(null, JOptionPane.ERROR_MESSAGE);
    }I added the execute method in the songQueue class which is:
    public void execute() {
              if (timer.isRunning() == false) {
                   time = que.peek().getPlaytime();
                   player.playSong(baseDir + que.peek().getAudioFileName());
                   timer.start();
         }so therefore I only have one SongPlayer in my SongQueue. The problem now is how do I update the JList when a song has been finished played and I want to remove that song from the JList. ??

  • Sql query to calculate order completion time

    Hello,
    This is probably a textbook example, but I was wondering if someone could show me the technique to answer the following question based on the sample data:
    Show all orders from the orders table where completion time (defined as difference between time the order was completed and received). is > 5 hours
    Order_id
    Action
    Time
    1
    Received
    1/11/2014 10:12:00
    1
    Logged
    1/11/2014 10:15:00
    1
    Sent
    1/11/2014 15:15:00
    1
    Complete
    1/11/2014 16:15:00
    2
    Received
    31/10/2014 8:10
    2
    Logged
    31/10/2014 8:28
    2
    Sent
    31/10/2014 10:11
    2
    Complete
    31/10/2014 12:13
    3
    Received
    30/10/2014 13:10
    3
    Logged
    30/10/2014 15:10
    3
    Sent
    30/10/2014 16:10
    3
    Complete
    30/10/2014 17:10
    Thanks

    create table orders (order_id int, action varchar(50), [time] datetime)
    insert into orders values(1,'Received','1/11/2014 10:12'),(1,'Logged','1/11/2014 10:15'),(1,'Sent','1/11/2014 15:15'),(1,'Complete','1/11/2014 16:15'),
    (2,'Received','10/31/2014 08:10'),(2,'Logged','10/31/2014 08:28'),(2,'Sent','10/31/2014 10:11'),(2,'Complete','10/31/2014 12:13'),
    (3,'Received','10/30/2014 13:10'),(3,'Logged','10/30/2014 15:10'),(3,'Sent','10/30/2014 16:10'),(3,'Complete','10/30/2014 17:10')
    select order_id from (
    select *, datediff(hour,lag([time],1) Over(partition by order_id Order by [time]),[time]) diff
    from orders WHERE action IN ('Complete','Received')) t
    WHERE diff>=5
    drop table orders

  • FASTER RESPONSE FROM keyboard/mouse actions?

    1.42 GHz PPC G4, 1GB DDR SD Ram (4200 rph HD)
    How can I DECREASE computer RESPONSE action/time to day to day activities?
    It is not clear what 'slows down' software/computer responses and causes the spinning balls in relatively simple actions.
    My usage is not 'heavy' nor 'complex'; Typically Mail, Safari, FoxFire, Word 2007, TextEditPlus,
    QuickTime (music on occasion). Occasionally Adobe Reader and Photoshop Elements. Safari often more spinning balls than others.
    By turning OFF USB an external HD with switching Power Supply that helps avoid delays. But what
    else can be done?
    I choose to stay with Tiger 10.4.11 - and do NOT chose to go to a later version of the OS.
    Is there a "faster response" time for later versions of the Mini?
    Given that my first Mac was a 400k floppy machine with MacWrite and MacDraw - in relative terms we I do now is like a supersonic jet... but mine needs a booster -
    ideas??

    Your computer's list of items in-use, per Activity Monitor, tell you
    what is running and while these are Active, give an idea of how
    much of the computer's configuration (hard/soft-ware) resources
    are being used. Also, the Activity Monitor can tell you the load
    of Virtual Memory and actual Chip RAM demands of Apps.
    The interface of USB mouse and keyboard can act slowed-down
    when the computer resources are running loaded. Even with up
    to 75% hard disk drive free-space (unused, except for system
    use as Virtual Memory and application temp or swap space) my
    computer with an 8GB HDD can also, at times, have a slow key-
    board and mouse.
    If you have more than one browser window open, or run Office
    and some other apps at the same time, the overall load on the
    Mini G4 (with the 1024MB max RAM installed) can be critical.
    The virtual memory write/read cycles to the hard disk drive
    increase, and this will also add to a lag when there is a rush
    of demand on diminishing resources; plus, a tired old HDD.
    Do you occasionally log-out of the main user account and log
    back in? This can sometimes help free-up RAM and other use
    of system resources, without having to restart the Mac.
    How often do you restart the computer, & do you leave it to sleep
    when not in use, or do you power it off? Just curious.
    As the computer gets older and the hard disk drive more worn,
    it may be running warmer and slower; less efficiently and tired,
    this lag may be more apparent and point to a need to replace
    the internal hard disk drive with a new, larger & better spec unit.
    In some instances, there had been a controversy over which was
    faster to the computer's processor and RAM (system bus) - be it
    a 400 Mbit FW400 external hard disk drive, or a hard disk drive
    on the computer's own bus. Some tests, machine series dependant,
    showed a variable; with some FW400 enclosures running slower
    than the internal computer's hard disk drive.
    I've found both slower and faster (depending on the computer)
    using an external HDD in FireWire400 enclosure, vs the native
    drive; with even a 7200 RPM 250GB HDD running thoroughput
    slower than an internal 5400 RPM 80GB drive; but not always.
    Do you use a powered USB hub with the peripheral items your
    computer is attached to, when running the Mini? For mine, the
    better setup was to use powered USB hubs, with the keyboard
    plugged directly into the Mac (for startup keyboard combo access)
    and the mouse plugged into a port on the powered USB hub.
    To note, if there is an issue with this set-up, to troubleshoot the
    powered USB hub and have a spare keyboard & mouse available.
    Usually, an over-whelmed USB port in a computer will give you a
    warning message implying an under-powered state exists, & near
    the total possible output of voltage to the USB port is approached.
    The USB bus can only support a limited ceiling; there also is a limit
    on FW port loads, and devices exceeding that amount will affect all
    items on their respective bus. (Example why self-powered is best.)
    When you went to the AppleJack download page and clicked on
    the link to get the download to start, does your browser show you
    a Downloads list and ask you where/how you want the item saved?
    I have mine set so I can see any/all items, choose to install them;
    & have the .dmg or other image file on the desktop where I can
    see it. (In 10.5.8, the default is in a Dock location for Downloads.)
    How the browser is set to handle downloads can affect results.
    If your computer has been acting oddly, there may be some
    kind of file corruption or data corruption causing issues in it.
    This link, in Firefox, goes to the download item for AppleJack
    directly, in my browser, the default is set and asks me what
    I want to do about it. The main option is to accept it and then
    it will download to the desktop (Tiger 10.4.11) as a .dmg. It
    will not open, and does not display some kind of picture:
    http://sourceforge.net/projects/applejack/files/AppleJack/AppleJack-1.6/AppleJac k-1.6.dmg/download
    You should make a good backup, a bootable clone of your Mini's
    entire hard disk drive contents, test it well, and then consider a
    course of maintenance and repair of the internal hard drive; or get
    a new replacement hard disk drive and upgrade the Mini with it.
    Only 5 interruptions here, in the course of this reply to the question.
    (Could be worse; some days they can be hours long; or weeks.
    There is a story, non-computer related to the reader, going on.)
    {Spindown Fix software has been tested in Mac OS X 10.2.3 only.
    The older software suggested, may help if the external is going to
    sleep if used as a boot startup volume; since once a external boot
    FW goes to sleep, the computer may not see it when it awakens.}
    The Mini is sort of like a portable computer, in that the hard drive
    gets a thorough work-out and it has limited upgrade capabilities.
    So, for a hard disk drive to last 3 to 5 years, is lucky run. At least
    the unit isn't being hauled around while asleep, as a 'Book may;
    and isn't as likely to be dropped from the lap while it's running...!
    +{Yes, it's a long post. Sorta like a Totem.}+
    Good luck & happy computing!
    edited 2x

  • Time recording in ChaRM scenario

    Hi
    Is there any possibility for time recording in standard ChaRM scenario?
    Regards
    Andreas

    HIi,
    Did you manage to use time recording for Changes as well?
    At my site, Time Recording is working for Service Desk  messages, but for Changes, the action Time Recording Call is not working.
    Kind regards,
    Remy Piets

  • Differentiating between versions of applications with identical names

    I am in a situation where I have both Microsoft Office 2004 and Microsoft Office 2008 installed (and working OK) on my work computer (1.42GHz eMac, 2GB RAM, OS X 10.5.8). When needing to use Microsoft Excel I use either version, although Excel 2008 is noticeably slower on many tasks. This speed difference is the reason I am trying to achieve what I have described below.
    I have written a script which, after processing/editing/cleaning up a .csv file using AppleScript, saves the results to a tab-delimited text file, opens it in Excel 2004 and does some sorting. So far (after much internet-searching and experimentation), everything works according to plan, consistently and reliably.
    In the script, I have been able to differentiate between *Microsoft Excel* (in the Microsoft Office 2004 folder) and *Microsoft Excel* (in the Microsoft Office 2008 folder) and the script successfully opens the file using Excel 2004. The following lines accomplish this (I have omitted some extra code which similarly checks for Excel 2008 and does some error-prevention - what is here is the important stuff. I have tried the script with and without the omitted code and it runs the same for the purposes of this post):
    +tell application "Finder"+
    +set TargetFile to (path to desktop folder as string) & "ResultsFile.txt"+
    +if exists (application file "Microsoft Excel" of folder "Microsoft Office 2004" of folder "Applications" of startup disk) then+
    +set VersionToUse to (application file "Microsoft Excel" of folder "Microsoft Office 2004" of folder "Applications" of startup disk)+
    +end if+
    +open TargetFile using VersionToUse+
    +end tell+
    No problems so far. The document is open in Excel 2004, waiting for AppleScript commands to be issued.
    (On a computer with only Office 2004 installed, the following paragraph does not apply because there is only one version of Excel - I have been able to issue commands for selection, sorting, etc. with no worries. The problem is when there are two versions of Excel on the same hard disk.)
    However, as soon as I use a tell block starting with *tell application "Microsoft Excel"*, Excel 2008 opens up. Even if Excel 2004 is already open, double-clicking Excel files in Finder will open Excel 2008. I have been looking for ways of uniquely identifying the version which has opened the document so that I can issue commands within that, but to no avail. If both versions of Excel are running at the same time, System Events gives the name of both as "Microsoft Excel". In Finder, I could change the name of one from "Microsoft Excel" to "Microsoft Excel 2004" and the other to "Microsoft Excel 2008", but I am trying to avoid that if possible. I'm not sure of what unwanted side-effects could result.
    Does anyone have any ideas on how to issue commands within the running version without the other, identically-named, version activating itself? Possibly, the method I used to identify the wanted version (setting the variable VersionToUse to the pathway) is not the best way, but I am unable to figure out another way without the other version being opened instead. I would prefer to keep away from shell scripts unless there is no other way, as I am nowhere near as comfortable with shell scripts as I am with normal AppleScript. I have not yet tried setting the default application to Excel 2004 using the Get Info command in Finder (don't know if that will work consistently, as the OS seems to want to use the later version of an application if more than one is available), and I'm trying to make the script portable so that it could work on another computer which has both versions of Office installed without changing any of that computer's settings. However, if that change (so that *tell application "Microsoft Excel"* applies to Excel 2004 instead of Excel 2008) could be effected using AppleScript and then reverted to original settings once the script finished, that might be the simplest way to do it.

    Thank you both for taking time to reply. I have tried your suggestions, but unfortunately they did not bring me any closer to what I am trying to achieve.
    Taylor.henderson - yours did not work as hoped, most likely because AppleScript will only accept just the name of the application when it is being set to a variable. The full pathway, which would solve the confusion about which version of an application to use, seems to be rejected by AppleScript (maybe it is simply not expecting a pathway and does not know what to do with the extra information). The idea is great but unhappily it didn't work.
    Hiroto - when run on the Mac at work (G4 eMac, 1.42 GHz, OS X 10.5.8), your script gave the following results:
    +tell application "Microsoft Excel"+
    +path to current application+
    +«event ascrgdut»+
    +path to current application+
    +alias "MacintoshHD:Applications:Microsoft Office 2008:Microsoft Excel.app:"+
    +end tell+
    When run on my Mac at home (DP 1.25 GHz G4, OS X 10.4.11), it hung AppleScript with the only way out being to force quit. Again, the idea is good but it unhappily also didn't work.
    After a lot more experimenting with both Excel and System Events, I acknowledged that I had come to a dead end. Then I re-read my original post and decided to try what I wanted to avoid - renaming the applications in Finder, although I had to log in as root to do so. After renaming "Microsoft Excel" in the Microsoft Office 2004 folder to "Microsoft Excel 2004", I ran that to see if it still worked. No problems so far. Then I told AppleScript to get the application process names using System Events. I had expected it to return "Microsoft Excel", but to my surprise it actually returned "Microsoft Excel 2004" as the name of the application process. When likewise renaming the 2008 version its application process did actually return just as "Microsoft Excel". I'm not sure why, but as long as they are different it enables me to address/refer to each one without confusion. Possibly because, at least on my home machine Excel 2008, when right-clicked on, gives the option to show package contents. Inside the folder which opens, and then inside Contents > MacOS is the Unix executable file. Excel 2004 does not display "show package contents" (probably PPC only). I tried renaming the Excel 2008 Unix executable file from "Microsoft Excel" to "Microsoft Excel 2008", but that really confused the computer. The name of that file is probably hard-coded and the file does not get recognized if its name is different. So I left the 2008 version completely alone.
    The earlier version of my script had actually been able to open the chosen document in the desired version of Excel. The problem which I could not solve was how to prevent the other version of Excel from opening when using "tell application Microsoft Excel" in the script ("tell application Microsoft Excel" was needed before issuing any commands such as selecting, sorting, etc.). It looks like the renaming of the application and the consequent renaming of the application process did the trick. Hopefully changing the name of an application, as it appears in Finder, is not going to cause any problems. So far, it appears that nothing has gone wrong.
    Just as an afterthought, to prove to myself that the problem was solved (at least sufficiently for me to do what I wanted) I ran the following script to see if having both versions of Excel running was going to cause any problems. The two larger blocks in the middle do the same thing - switching back and forth between the two versions of Excel - but one uses System Events and the other addresses each application individually. The delays are there to give each action time to finish happening before the next one occurs.
    +tell application "Microsoft Excel 2004"+
    open
    +end tell+
    +tell application "Microsoft Excel"+
    open
    +end tell+
    +delay 6+
    +tell application "System Events"+
    +repeat with Counter1 from 1 to 5+
    +delay 1+
    +set frontmost of application process "Microsoft Excel 2004" to true+
    +delay 1+
    +set frontmost of application process "Microsoft Excel" to true+
    +end repeat+
    +end tell+
    +repeat with Counter2 from 1 to 5+
    +tell application "Microsoft Excel 2004"+
    activate
    +end tell+
    +delay 1+
    +tell application "Microsoft Excel"+
    activate
    +end tell+
    +delay 1+
    +end repeat+
    +tell application "Microsoft Excel 2004"+
    quit
    +end tell+
    +tell application "Microsoft Excel"+
    quit
    +end tell+
    Thank you both once again for taking the time and effort to contribute. Even though your suggestions did not give the results hoped for (in fact it might not even be possible to do it with AppleScript), I appreciate your efforts as I always try to learn from other people's ideas and ways of doing things.

  • How to Audit the data displayed within a Webi report

    Hi All,
    We have BOBJ XI R2 SP4 installed on our server.
    One of the requirements is to audit the data the user has viewed through Canned reports and also Adhoc reports created in Webi.
    I understand that we can audit what reports are accessed by the user, but not sure how to audit the data within the report. Could someone please let me know if auditing data can be acheived form SDK ? If so how ?
    Thanks,
    Sireesha

    Pablo,
    The following should get you started;
    This is a report to pull Universe Name, Report Name, Action Time (last refreshed), Action Duration (execution time), User Name and Object Name (universe objects used in reports).
    The Result Objects are as follows:
    Object Name from Actions/Action Details
    Action Time from Actions
    Action Duration from Actions
    Action Type from Actions
    Action Type Detail from Actions (detail object associated with Action Type)
    User Name from Actions
    Document Name from Actions/Document
    Universe Name from Actions/Action Details
    The Query Filters are as follows:
    Action Time between Day1 And Day2
    Note: The Query Filter is necessary (obviously) only to restrict the size of the query. I wouldn't run this query without a filter on demand. Depending on the size of your deployment, you might want to restrict the query initially to a specific universe/list of universes while testing.
    At the report level, I moved Universe Name and Document Name in to (nested) sections.
    i.e.
    Section on: Universe Name
    Section on: Document Name
    Table
    Another option would be to retrieve this information from the CMS tables using WID Scanner [here|http://www.forumtopics.com/busobj/viewtopic.php?t=80856]
    The last option would be to use the Report Engine SDK (for Webi) to write a program extract this information from the CMS tables and pass it to another table. WID scanner (above) does effectively the same thing, passes the info to an MS Access table (if I remember correctly..I may be wrong. I have'nt used it since it last tried to create a report to extract all used objects.)
    Best,
    Srinivas

  • I'm new to flash and need help with some controls

    I'm builidng a site that has a portfiolio of work to display.
    When the visitor arrives at the portfolio page he (or she) is
    faced with a split panel. The right panel displays a summary of a
    client and the work. The left panel displays the work examples
    attributed to that client. By clicking forward and backward arrows
    in the right panel, the visitor can call the summaries of the
    different clients. Landing on a client page 'opens' a separate swf,
    called using loader component, that contains the portfolio of that
    client's work into the left panel
    1. I want forward and backward arrows located on the main
    movie in the left panel to control the progress of the loaded swf,
    rather than using forward and backward arrows on the loaded swf.
    2. I want to prevent the forward and backward arrows in both
    panels from clicking beyond frames in the Portfolio area of the
    timeline.
    3. I want the backward arrow to be innactive on the first
    frame, and the forward arrow to be innactive on the last frame.
    I have no problems making the arrows work on the main movie
    controlling the client summaries. What I don't know how to do is
    make them control the movement of the loaded swf, or #2 and #3.
    Any help will be greatefully appreciated. Thanks in advance,
    Art

    "Art Lazaar" <[email protected]> wrote in
    message news:[email protected]...
    > Tralfaz,
    >
    > Thanks for your response. I must be missing something
    very simple here, but I
    > can't make this work no matter what I do. Let me see if
    I understand some of it:
    >
    > On my main movie I put the fwd_btn and rew_butn
    codes...do I put these on the
    > actual buttons, or in an actions time line? When I put
    them on the buttons, I
    > get an error report saying they need to be in an 'on'
    event handler. I thought
    > that's what 'onRelease' was.
    >
    > On my loaded movie, I place the 'one.swf' code. I'm not
    sure what you mean by
    > placing the code inside a loop, I don't seem to be able
    to find a reference to
    > using 'loop' anywhere. When I use an 'onEnterFrame', I
    presume I do that with
    > onEventClip(enterFrame). When I do that, if I run the
    'one.swf' by itself, i
    > get an error report saying onEeventClip is for movies
    only. But there's no
    > error report when it loads from the main movie. What
    happens tho' is it loops
    > continuously, even if there are stops() in it.
    >
    > Boy, am I confused ;)
    >
    > I am really baffled by this seemingly simple little
    task. Your help is
    > gratefully appreciated.
    >
    > Art
    >
    >
    >
    Hi Art,
    There are different coding methods, depending on where you
    put code..
    1) Frame code
    Click on a frame of the timeline to enter frame code
    2) Attached code for movieclips and buttons
    Click once on a movieclip or a button then enter attached
    code
    To make an onEnterFrame event for a movieclip, first chose
    either frame code or attached code method. I personally rarely ever
    use
    attached code because it hides code in places that can be
    hard to find. Almost all my coding is frame code, but it's a
    personal
    choice.
    Frame code method to make an onEnterFrame for the main
    timeline..
    // put this code into a frame on the main timeline
    this.onEnterFrame = function()
    // do something once per frame at the frame rate
    checkMyButtons(); // once per frame we will check on the
    button status
    OR
    Attached Code method to attach an onEnterFrame event to a
    movieclip
    // click once on the movieclip (don't dbl click it .. stay at
    the root timeline level)
    onClipEvent(enterFrame)
    // do something once per frame at the frame rate
    Those two types of code are not interchangeable. One type
    must be entered into a frame and the other style must be attached
    to a
    movieclip or you will get errors.
    Then there is the DOT syntax way to write frame code that is
    equivalent to attaching code..
    myMovieClip.onRelease = function()
    trace("release");
    myMovieClip.onPress = function()
    trace("press");
    myMovieClip.onDragOut = function()
    trace("drag out");
    tralfaz

Maybe you are looking for

  • Can we use different Databases (Oracle & SQL Server) in one report?

    Post Author: venki5star CA Forum: .NET Hi there. Can we use different databases (Oracle & SQL Server) in a same report? If possible how? Another question, Can we change the Provider Name at runtime of the given report. If so the above question is use

  • Portrait oriented photos are not sync'ed to MobileMe gallery

    I've tried to upload some pictures of an event to my MobileMe account: I've selected the photos, clicked on MobileMe and selected the option to allow downloads. The photos get synced but those photos that were originally taken in portrait mode (and a

  • Graph Legend

    It must be me, it must be because this is fundemental in an graphing application. Across the top row of data I have what I would expect to appear as the legend. In this case 2006, 2007 and 2008 Down the first column the months, jan feb etc And in the

  • How do I restore my Mac to 10.4.11 after a crash?

    I downloaded an old platform game--OS 8 or 9--and was happily playing along when I decided to switch the game to full screen, I was having so much fun. System crashed and now the Finder is 10.4.7 while all else appears to be 10.4.11. I now have a flo

  • SC 3.0 file system failover for Oracle 8i/9i

    I'm a Oracle DBA for our company. And we have been using shared NFS mounts successfully for the archivelog space on our production 8i 2-node OPS Oracle databases. From each node, both archivelog areas are always available. This is the setup recommend