Sequence Circumstances

I have been searching for a while with no luck finding an answer... Is it possible to have a sequence on a table that is only called if the insert/update comes from a view? I know you can't put a sequence on a view, but I was hoping to use the sequence only in the instead of trigger.
Thanks!

If you are creating an INSTEAD OF trigger on a view, that trigger has to actually insert into (or update) the underlying physical table (or tables) involved in the view. For example
CREATE VIEW vw_emp
AS
  SELECT empno, ename
    FROM emp;
CREATE SEQUENCE seq_empno;
CREATE OR REPLACE TRIGGER trg_vw_emp
  INSTEAD OF INSERT ON vw_emp
  FOR EACH ROW
BEGIN
  INSERT INTO emp( empno, ename )
    VALUES( seq_empno.nextval, :new.ename );
END;
SCOTT @ jcave102 Local> select * from vw_emp;
     EMPNO ENAME
      7369 SMITH
      7499 ALLEN
      7521 WARD
      7566 JONES
      7654 MARTIN
      7698 BLAKE
      7782 CLARK
      7788 SCOTT
      7839 KING
      7844 TURNER
      7876 ADAMS
      7900 JAMES
      7902 FORD
      7934 MILLER
14 rows selected.
Elapsed: 00:00:00.04
SCOTT @ jcave102 Local> insert into vw_emp( empno, ename ) values( 8888, 'CAVE' );
1 row created.
Elapsed: 00:00:00.06
SCOTT @ jcave102 Local> select * from vw_emp;
     EMPNO ENAME
         1 CAVE
      7369 SMITH
      7499 ALLEN
      7521 WARD
      7566 JONES
      7654 MARTIN
      7698 BLAKE
      7782 CLARK
      7788 SCOTT
      7839 KING
      7844 TURNER
      7876 ADAMS
      7900 JAMES
      7902 FORD
      7934 MILLER
15 rows selected.
Elapsed: 00:00:00.03
SCOTT @ jcave102 Local> select * from emp;
     EMPNO ENAME      JOB              MGR HIREDATE          SAL       COMM     DEPTNO
         1 CAVE
      7369 SMITH      CLERK           7902 12/17/1980        800                    20
      7499 ALLEN      SALESMAN        7698 02/20/1981       1600        300         30
      7521 WARD       SALESMAN        7698 02/22/1981       1250        500         30
      7566 JONES      MANAGER         7839 04/02/1981       2975                    20
      7654 MARTIN     SALESMAN        7698 09/28/1981       1250       1400         30
      7698 BLAKE      MANAGER         7839 05/01/1981       2850                    30
      7782 CLARK      MANAGER         7839 06/09/1981       2450                    10
      7788 SCOTT      ANALYST         7566 04/19/1987       3000                    20
      7839 KING       PRESIDENT            11/17/1981       5000                    10
      7844 TURNER     SALESMAN        7698 09/08/1981       1500          0         30
      7876 ADAMS      CLERK           7788 05/23/1987       1100                    20
      7900 JAMES      CLERK           7698 12/03/1981        950                    30
      7902 FORD       ANALYST         7566 12/03/1981       3000                    20
      7934 MILLER     CLERK           7782 01/23/1982       1300                    10
15 rows selected.
Elapsed: 00:00:00.04Justin

Similar Messages

  • Sequence created in anon PL/SQL missing initial value

    If I create a sequence in an anonymous PL/SQL block, with execute immediate, then perform a select nextval from that sequence outside the block, it misses it's initial value.
    Easily reproducable here:
    create table tab_a ( col_a number(4) not null );
    begin
      execute immediate 'create sequence seq_a start with 47 increment by 1';
    end;
    insert into tab_a select seq_a.nextval from dual;
    select * from tab_a;
    This is a much simplified representation of the circumstance I found myself in, but it reproduces the effect I see.
    If I drop the sequence and truncate the table, and run the statements (excluding the first) again, it works as expected. If I drop the table and run all the statements again, it returns the wrong answer again.
    I don't need a workaround, the issue has been addressed long ago, but I would like to know WHY this happens. starting the sequence at 47 can be any number, it's there just to show the issue when 48 is inserted into the table. The insert could be into any table, and the from could be over any table rather than dual.
    Oracle EE 11.2.0.1.0 on OE Linux, RAC and Single node.
    TIA.

    Can you show the output you get like this? Mine is a 10g DB. But sure it would work in 11g DB as well.
    SQL> select * from v$version where rownum = 1;
    BANNER
    Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    SQL> drop table t;
    Table dropped.
    SQL> create table t (no integer not null);
    Table created.
    SQL> begin
      2     execute immediate 'create sequence seq start with 47 increment by 1';
      3  end;
      4  /
    PL/SQL procedure successfully completed.
    SQL> insert into t select seq.nextval from dual;
    1 row created.
    SQL> select * from t;
            NO
            47
    SQL>

  • Is there a way to view all cameras in the timeline at once without creating a multicam sequence?

    Is there a way to view all cameras in the timeline at once without creating a multicam sequence?  Is there some kind of window I can open where they will show up?  I am scrubbing a timeline and I would like to see all the cameras at once.

    The multicam monitor only shows multiple clips at once when they are part of a mutlicam sequence. is there some reason you don't want to use them inside a multicam sequence for previewing?
    Here is a possible workaround, if your workflow circumstances will permit it:
    Apply a pip preset effect  to each clip in the timeline. Use UL, UR, LL, LR presets and up to four video tracks will display at once. If you need to see more than that, you'll need to tweak their position parameters by hand. When you're done previewing them all at once you just need to delete their effects from the Effects Controls panel.
    I know it's not that neat or quick, but it will let you see everything at once in the program monitor.

  • Port sequence and file processing in SAP MDM

    Hi All,
    Can any one let me know how port sequence mechanism works in MDM 7.1? As per my understanding in SAP MDM no one files from different ports are processed simultaniously...Suppose if you have three different ports A,B,C and the scenairo is as below:
    SAP PI sends 2 files to A port and then sends 2 more files to B port and then sends 1 file to C port....All these files are not send simultaniously.
    Thanks
    Rajeev

    http://help.sap.com/saphelp_mdm550/helpdata/en/43/120367f94c3e92e10000000a1553f6/frameset.htm
    Once started, MDIS scans inbound ports in the order set by the Sequence column in the Ports pane of the MDM Console. When it finds a port containing an import file, it uses the portu2019s associated import map to process the file.
    The sequence in which MDIS processes ports is not affected by a portu2019s remote system.
    MDIS processes all files in a portu2019s Ready folder before scanning the next port in the sequence.
    When more than one import file is present in the folder, MDIS processes the files in a FIFO (first in, first out) order, meaning the oldest file in the port is processed first, then the next oldest, and so on.
    Under certain circumstances, MDIS will skip over a port and not process any import files it may contain. These circumstances include the following:
    ·        Port is set up for manual processing instead of automatic.
    ·        Port is blocked due to a structural exception.
    ·        Port is connected to an Import Manager or other MDIS.
    Once all ports on the MDM Server have been scanned, MDIS waits the number of seconds specified in the Interval property of the mdis.ini file before restarting the sequence (for more information, see MDIS Configuration).
    Thanks,
    Shambhu.

  • Are there any ways to get sequence number other than getting it for each re

    are there any ways to get sequence number other than getting it for each record

    CACHE is the number of values Oracle stores in memory. So the first call to NEXTVAL Oracle grabs x numbers; subsequent calls to NEXTVAL are served from memory until they're all gone and them another bunch is grabbed. The attached sql*plus output demonstrates this behaviour.
    Note that normally unused numbers in the cache are returned to the data dictionary but in exceptional circumstances (DB crash) they may be lost.
    Cheers, APC
    SQL> create sequence seq cache 3
      2  /
    Sequence created.
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              1
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             1
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             2
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             3
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              4
    SQL> select seq.nextval from dual
      2  /
       NEXTVAL
             4
    SQL> select last_number from user_sequences
      2  where sequence_name = 'SEQ'
      3  /
    LAST_NUMBER
              7
    SQL>

  • How to remove gap in sequence?

    Hi,
    SELECT MENU_ITEMID.NEXTVAL INTO :MENU_ITEM.M_ITEM_ID
    FROM SYS.DUAL;
    EXCEPTION
    WHEN OTHERS THEN MESSAGE ('FAILED');
    RAISE FORM_TRIGGER_FAILURE;
    I have applied the above PRE-INSERT trigger on my MENU_ITEM FORM.
    I was inserting values but when I was inserting the 53th item my PC was struck by a power failure, I did not commit or Rollback and next item when I rebooted my system and tried to insert the 53th item in my form it gave me a gap and jumped to 54th item directly.
    Now How can I remove this gap?
    I tried to insert the ids manually using INSERT command,
    INSERT INTO MENU_ITEM VALUES (53, 'AAAA');
    INSERT INTO MENU_ITEM VALUES (54, 'BBAAA');
    INSERT INTO MENU_ITEM VALUES (55, 'UUAA');
    but when I opened the application form then it showed the wrong order of id column.
    like
    53
    55
    54
    and so on.
    I deleted the newly inserted records using this command, DELETE from MENU_ITEM where M_ITEM_ID in(53,54,55);
    COMMIT;
    and then i queried the nextval of sequence.
    and it was 55.
    now I want tthe solution to solve this.
    Please Help me that where I can find the solution?
    Thanks In advance
    Natalia

    I'm afraid you do not understand how a SEQUENCE works.
    A sequence is a "one-time" sheet. Once we have got a number through NEXTVAL the sequence can never give us that number again (unless we created the sequence with the CYCLE clause, in which case we'll see it again, eventually). NEXTVAL is a piece of DDL, so we cannot roll it back. We can only fill in the gaps manually, as you did. You, however, overshot and inserted a row with an ID 55 that was in advance of the last number assigned by the sequence.
    Also note that the SEQUENCE number has a CACHE; this is the default behaviour, because it is memory efficient. As a side effect, if the database goes down, assigned numbers in the cache may be lost. We can avoid this with the NOCACHE option, but it makes sequence usage slower. It depends: do we need every number in the range or can we cope with gaps? As most sequence usage is simply to assign uniqueness gaps do not matter. They do matter in some circumstances, e.g. in an audit subsystem.
    The LAST_NUMBER column on USER_SEQUENCES shows the last number assigned. But, as the example below shows, beware. Before we have called the sequence in this session, LAST_NUMBER shows the actual last number given by the sequence. Once the sequence has satisfied a NEXTVAL call the LAST_NUMBER column shows the last number in the current cache. We can see the actual last number assigned with a CURRVAL statement.
    Regards, APC
    P.S. The rows in your block are being displayed in the "wrong" order because your block does not have an ORDER BY property to sort rows by ID.
    SQL> CREATE SEQUENCE test_seq;
    Sequence created.
    SQL> SELECT last_number, cache_size
      2  FROM   user_sequences
      3  WHERE  sequence_name = 'TEST_SEQ';
    LAST_NUMBER CACHE_SIZE                                                         
              1         20                                                         
    SQL> SELECT test_seq.NEXTVAL FROM dual;
       NEXTVAL                                                                     
             1                                                                     
    SQL> SELECT last_number, cache_size
      2  FROM   user_sequences
      3  WHERE  sequence_name = 'TEST_SEQ';
    LAST_NUMBER CACHE_SIZE                                                         
             21         20                                                         
    SQL> SELECT test_seq.NEXTVAL FROM dual;
       NEXTVAL                                                                     
             2                                                                     
    SQL> SELECT last_number, cache_size
      2  FROM   user_sequences
      3  WHERE  sequence_name = 'TEST_SEQ';
    LAST_NUMBER CACHE_SIZE                                                         
             21         20                                                         
    SQL> SELECT test_seq.NEXTVAL FROM dual;
       NEXTVAL                                                                     
             3                                                                     
    SQL> ROOLBACK;
    Rollback complete.
    SQL> SELECT last_number, cache_size
      2  FROM   user_sequences
      3  WHERE  sequence_name = 'TEST_SEQ';
    LAST_NUMBER CACHE_SIZE                                                         
             21         20                                                         
    SQL> SELECT test_seq.NEXTVAL FROM dual;
       NEXTVAL
             4
    SQL> SELECT last_number, cache_size
      2  FROM   user_sequences
      3  WHERE  sequence_name = 'TEST_SEQ';
    LAST_NUMBER CACHE_SIZE
             21         20
    SQL> SELECT test_seq.CURRVAL FROM dual;
       NEXTVAL
             4
    SQL>

  • PLSQL Insert and Special Circumstance

    I am using APEX 4.0.
    This one is strange. I have a system used to renew UCC filings, which must be renewed within six months of their expiration. I have a report (UCC Tracker Report) which lists all records falling within this date range. I click a sequence number (column link) for a record and go to a form detail page (UCC Detail) for the record identified by the sequence number. There are a number of data items on this page which will not change with the filing renewal; so I want to carry these data items into the new record. I do this with a button labeled "Renew UCC." It executes a PLSQL process which does two things: (1) it inserts a new record with the data preserved from the old record, and (2) updates the old record with an "H" in the "histrec" column (which makes this record history).
    Now, the second part works; the old record is always updated. The first part (the insert) does not work, except under a special circumstance. Back on the UCC Tracker Report page there is a button labeled "Enter New UCC Record." This button calls the same page (UCC Detail) that is called for the renewal, but, of course, since it is for new record, it will have null items. There is a button on it (Return to UCC Tracker Report) which will simply allow the user to return to the report page. If the user goes to this UCC Detail page, then returns to the UCC Tracker Report page, and then clicks a sequence number (column link) to bring up the record for renewal, clicking the Renew UCC button causes the PLSQL to insert the new record. Otherwise, it will not insert.
    Somewhere there must be a setting that needs to be changed for this form to operate as intended. Please help.
    **********************************Additional Wrinkle***************************
    After posting this question, I tried one more thing. I clicked the "Enter New UCC Record" button to go to the UCC Detail page and then edited the Action on the "Return to UCC Tracker Report" button to clear the cache on this page. After that the PLSQL insert would not work.
    Edited by: Doug on Apr 27, 2012 3:45 PM

    Hi,
    The Form page where you Create/Edit does not really come into play in the duplication of record process , unless you are trying to insert a row on that page (which would be bad idea) in the Page rendering side. Analyzing the UCC Detail page may offer clues, but it can also confuse.
    Chances are you are inserting a new record while navigating out of the UCC Tracker Report page in a OnSubmit process. And that would be the right thing to do.
    You also need to make a distinction between "Row not getting inserted in the table" and "Row not showing in the Edit (UCC Detai)". If the parameter passing from UCC Tracker Report to UCC Detail page is not correct you will not see the newly created row even though it is present in the table.
    The scenario you are describing is a routine one.
    If you put up this scenario on apex.oracle.com it will be possible to help fix it. Otherwise one can only guess !
    Regards,

  • I am writting a test  using a sequencer to test for multiple button click

    I'm using flex sdk 4.1 and have a situation where a  button click is sometimes called twice. I am writting a test for this using a sequencer and it will run for at least one button click, what I am not sure is how to test for multiple click events(which shouldn't happen, but occours randomly in my project)
    package tests.view
        import flash.events.MouseEvent;
        import flexunit.framework.Assert;
        import mx.events.FlexEvent;
        import org.flexunit.async.Async;
        import org.fluint.sequence.SequenceEventDispatcher;
        import org.fluint.sequence.SequenceRunner;
        import org.fluint.sequence.SequenceWaiter;
        import org.fluint.uiImpersonation.UIImpersonator;
        import views.AddComments;
        public class TestAddComments
            private var view:AddComments;
            [Before(async,ui)]
            public function setUp() : void
                view = new AddComments;
                Async.proceedOnEvent( this, view, FlexEvent.CREATION_COMPLETE, 600 );
                UIImpersonator.addChild( view );
            [Test]
            public function testButtonClick():void
                view.addCommentBtn
                var sequence:SequenceRunner = new SequenceRunner( this );
                sequence.addStep( new SequenceEventDispatcher( view.addCommentBtn, new MouseEvent( 'click', true, false ) ) );
                sequence.addStep( new SequenceWaiter( view.addCommentBtn, MouseEvent.CLICK, 100 ) );
                sequence.run();

    The only way you could test for that type of circumstance... one where something may happen... is to do so with a timeout. In other words, you cannot let the test pass simply because the first event occurred.
    Two ways to handle this... with sequences:
    Instead, you write a test that expects 2 clicks. In the assertion handler (which would only be reached if both clicks occur) you would fail the test:
    fail('i shouldnt be here');
    In the Waiter for the 2nd click, you would specify a timeout handler. That timeout handler will get called in the 2nd click does not occur in the specified time... (finding that time is the hard part). The default timeout handler fails the test, however, in your case, your timeout handler would just happily do any assertions needed and move on. A timeout does not necessarily mean failure... in your case, it is correct
    Second choice:
    You could create a timer. Create an event handler for the button click which increments a counter. Start the timer, do your test. However, have your test pending on the timer's completion rather than something like the click.. In that case, you would then be able to just check the count:
    private var clickCount:int = 0;
    [Test]
    public function testButtonClick():void {
         var timer:Timer = new Timer( 100, 1 );
        Async.handleEvent( this, timer, TimerEvent.COMPLETE, checkClickCount );
         view.addCommentBtn.addEventListener( 'click', function( e:Event ):void { clickCount++ } );
         view.addCommentBtn.dispatchEvent( new MouseEvent( 'click;, true, false ) );
    private function checkClickCount( e:Event ):void {
    assertEquals( 1, clickCount );
    However, I can't imagine how the test you are describing could ever yield more than one click event... I am guessing the problem is elsewhere, but this will help you verify
    Mike

  • Sequencing in Oracle giving Problems.

    Hi All,
    I am facing a different problem and its related to sequencing.
    The Problem is when i am using a sequence the sequence value should increment in proper fashion of what the increment value is provided.
    Let say if the sequence i have created is:
    create sequence autonum
    start with 1
    increment by 1
    cache 20
    order;
    Then the above sequence should increment by 1 every time. But it does not happen i dont know but after some execution of the sequences the value of the sequence shoots up like if the value is 150 then at the next execution it should show 151 but it shows 175.
    I dont know why it is happening.
    Can u help me in this regard.
    Thanks.

    CACHE 20 means the next 20 numbers are held in memory ready for speedy use. They get lost if the database goes down. There might be other circumstances where these get flushed - perhaps others could advise ?
    Another problem depends on how the application is coded. If a sequence is selected, it gets incremented regardless of whether it is actually used, even if there is no commit.
    Sequence numbers are not ideal when you absolutely must have no gaps. They are really to ensure uniqueness and avoid locking problems, not for counting records.

  • Custom Image Capture that Auto Imports the OS WIM and Creates a New Task Sequence

    We just finished a consulting project where our customer requested an easy solution to capture thick images.  After hearing their reasoning it made sense for their circumstances.  The people that
    will be managing the system will be non-technical and all they wanted was a very, very simple method of capturing and deploying images with no learning curve.   They wanted the ability to Deploy the images via PXE.  
    This quickly became both our easiest scope project but making MDT simple for non-technical users can be challenging.   The MDT capture and staging steps are pretty easy for tech savvy person but for non-technical people it presented a learning
    curve that the customer wanted simplified. They didn’t want to understand sysprep, capture, importing an OS and then creating a Task Sequence to reference that new image.        
    So we changed the scope of our project to automate MDT to perform additional steps following the capture that would:
    Automatically Import the Captured OS into the MDT Deployment Share
    Automatically Create a new Task Sequence that references the newly imported image
    Auto Name the Task Sequence with the Model Name, Date and Time of Capture
    The Final Solution:
    Customer will setup a Windows PC Thick Image (All software and drivers)
    The customer will Kick-off the Sysprep and Capture Task Sequence
    The customized Task Sequence will capture, import the new image, and create a new TS with the new image
    Customer can then PXE boot a new computer and Deploy the image or stage to media and deploy the image
    We were able to remove the import OS and create new task sequence steps and this simplified it for our customer considerably.  If anyone is interested in this functionality
    let me know and I can send you instructions.  We used Vbscript, Powershell and PSExec.exe from PowerShell.  It seems to being working pretty good so far
    MDT Task Sequence Duplicator https://panaconsulting.egnyte.com/h-s/20130614/61707be809944999 Application Bundle Duplicator https://panaconsulting.egnyte.com/h-s/20130614/405e7d64e5d54610

    We just finished a consulting project where our customer requested an easy solution to capture thick images.  After hearing their reasoning it made sense for their circumstances.  The people that
    will be managing the system will be non-technical and all they wanted was a very, very simple method of capturing and deploying images with no learning curve.   They wanted the ability to Deploy the images via PXE.  
    This quickly became both our easiest scope project but making MDT simple for non-technical users can be challenging.   The MDT capture and staging steps are pretty easy for tech savvy person but for non-technical people it presented a learning
    curve that the customer wanted simplified. They didn’t want to understand sysprep, capture, importing an OS and then creating a Task Sequence to reference that new image.        
    So we changed the scope of our project to automate MDT to perform additional steps following the capture that would:
    Automatically Import the Captured OS into the MDT Deployment Share
    Automatically Create a new Task Sequence that references the newly imported image
    Auto Name the Task Sequence with the Model Name, Date and Time of Capture
    The Final Solution:
    Customer will setup a Windows PC Thick Image (All software and drivers)
    The customer will Kick-off the Sysprep and Capture Task Sequence
    The customized Task Sequence will capture, import the new image, and create a new TS with the new image
    Customer can then PXE boot a new computer and Deploy the image or stage to media and deploy the image
    We were able to remove the import OS and create new task sequence steps and this simplified it for our customer considerably.  If anyone is interested in this functionality
    let me know and I can send you instructions.  We used Vbscript, Powershell and PSExec.exe from PowerShell.  It seems to being working pretty good so far
    MDT Task Sequence Duplicator https://panaconsulting.egnyte.com/h-s/20130614/61707be809944999 Application Bundle Duplicator https://panaconsulting.egnyte.com/h-s/20130614/405e7d64e5d54610
    I would love to get the instructions to this process, as I have a simular client.

  • Converting sequence or QT file for Web use

    I have a short 13-minute sequence that I need to convert to a QT file in order to then convert to flash for posting to our Web site. I've done this multiple times today with no luck in reducing the file size. By exporting using Quick Time Conversion, using my default settings for compression (H.264) type, the file size of the final .mov file was 200-some MB. After changing my settings to a lower quality final product, I now have a file .mov that is 2GB!?
    I have several files that I'll need to convert QT files for posting to the Web. The lengths range from 5 minutes to an hour.
    Can anyone give me any kind of advice on the best way to convert to a QT file resulting in a smaller file size? If I am making something very simple, very difficult, please lend your thoughts!

    Hi there,
    FCP may estimate unusual time remaining but usually that estimate is not accurate. When I export to H.264 very often it appears that FCP hangs on 7% but thing is it eventually will encode within 15 minutes. Circumstances change from case to case (machine specs, length of movie, export settings).
    Set an IN and OUT on a portion of your timeline and export again to test quality and the time your machine require to encode.
    G.

  • Modify Cycle Set sequence based on counter outcome

    Dear Experts,
    I have a question with relation to multiple counter plan. We have a scenario where we have 3 cycles based on time and one based on counter. Now the requirement is, when the counter crosses a particular value - for example - if we consider failures - and the equipment fails 3 times, we have to restart the sequence from the beginning, or in other words, the day of performing maintenance based on counter should become the new Start date of the plan/ cycle set.
    Also the other thing is, the number of failures need not be regular - so we should not get any maintenance calls for the same.
    I tested different options in multiple counter plan, but I dont see a standard solution for the above scenario.
    Has any of you come across such scenarios? And do you have a solution?
    Regards,
    Veera

    Dear Pete,
    I have proposed the same solution to business - around the time I posted this query. I was about to leave, when I saw replies from you and Mahesh.
    Thanks. I am marking yours as the answer, as I feel that we don't have any other alternative.
    By the way, Mahesh, you are correct, we cannot maintain multiple time based and performance based alternatives in multiple counter plan. Also, the problem for prediction, is that the plan depends on annual estimate to give a call, and in practical circumstances, will not be able to predict the performance based counter unless it has daily entry.
    But what we can maintain is a sequence of activities on time or performance, based on the cycle set sequence.
    Regards,
    Veera

  • Get next number in sequence

    Assembled gurus...
    Note that:
    Table T_PROJ includes PROJID and PROJNAME.
    Table T_EVAL includes PROJNAME and EVALID and five other fields.
    PROJID and EVALID are 'auto-generate' keys
    Selecting a 'project' from the list on Pg 40 opens Pg 41 which displays: Reg(ion) A - the selected project name (and associated projID); Reg B - the 'risks' associated with this 'project'... one 'project' and one or more 'risks'. The individual 'risks' are displayed via a query and can be edited.
    Clicking a Reg B risk "edit button" opens Pg 42 -- displaying the seven risk fields. Modification of existing risk data is done using Pg 42. Reg B also has a Create button. This button opens Pg 44 which displays all seven risk fields. All fields are blank.
    Upon opening Pg 44 I would like the PROJNAME textbox to contain/display the corresponding value from Pg 42 AND would like the EVALID textbox to contain/display the next autonumber. With these two values entered on Pg 44, I can complete the rest of the textboxes (fields). 'Saving Changes' would then place this informayion in T_EVAL as an appended record. [SQL 'INSERT INTO'?]
    I can't figure out how to populate the Pg 44 PROJNAME and EVALID textboxes with the desired values and thus maintain the desired one-to-many relationship. Can anyone guide me down the correct path?
    Thanks in advance...
    gary b

    Hi John,
    Thanks for the feedback. An elegant solution no doubt, but I do not have an issue with the way my app works; I was merely showing how I generate "line numbers".
    For my app, the line number can change, as it also signifies the order of an activity.
    So I may start with:
    Parent Line Activity
    100 10 Fill Kettle
    100 20 Boil Water
    100 30 Pour into teapot
    But the user may change to
    Parent Line Activity
    100 10 Fill Kettle
    100 20 Boil Water
    100 25 Put tea in teapot
    100 30 Pour into teapot
    or even
    Parent Line Activity
    100 10 Fill Kettle
    100 20 Boil Water
    100 30 Put tea in teapot
    100 40 Pour into teapot
    So whilst I do understand your point, and I do use sequences under normal circumstances, for this particular case and the environment in which it runs, this seems to be the most appropriate and workable solution for me.
    Cheers,
    Rob

  • Sequence for doing updates?

    We've been away for a while, and away from our Macs.
    We have a bunch of updates that need to be done.
    I plan to download the updates and then install them (thank you BD and Klaus for having me do it this way!)
    Is there a sequence for installing these to avoid issues:
    For our G4, running Tiger:
    Java release 7 v 1.0
    QuickTime v7.5.5
    iTunes8.0.2 (I know I have to do QT before iT)
    Security update 007
    Migration & DVD/CD sharing.
    For our MBP with Tiger:
    I haven't recorded the list, but I recall in addition to the above, it also included AirPort Express v1.0 and Digital Camera RAW (for cameras I don't have, I'll skip this one)
    Thanks, Mrs H

    Welcome back Mrs H!
    There are no guarantees, but following this procedure when installing updates and upgrades on your Mac, or even re-installing them, will go a long way towards avoiding unpleasant after effects and ‘post-update stress disorder’.
    It is also worth noting that it is an extreme rarity for updates to cause upsets to your system, as they have all been extensively beta-tested, but they may well reveal pre-existing ones, particularly those of which you may have been unaware. If you are actually aware of any glitches, make sure they are fixed before proceeding further.
    So before you do anything else:
    If you can, make a full backup first.
    Turn off sleep mode for both screen and hard disk.
    Disconnect all peripherals except your keyboard and mouse.
    1. Repair Permissions (in Disk Utility)
    2. Verify the state of your hard disk using Disk Utility. If any faults are reported, restart from your install disk (holding down the C key), go to Disk Utility, and repair your startup disk. Restart again to get back to your startup disk.
    At least you can now be reasonably certain that your system does not contain any obvious faults that might cause an update/upgrade to fail.
    3. Download the correct version of the COMBO update from the Apple download site. If your car runs on gasoline you would not want to fill the tank with diesel, so don’t try to install the PPC updater on an Intel Mac!
    The 10.4.11 Combo Updater for PPC Macs is here: http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eppc.html
    And for Intel Macs: http://www.apple.com/downloads/macosx/apple/macosx_updates/macosx10411comboupdat eintel.html
    If you prefer to download updates via Software Update in the Apple menu (which would ensure that the correct version for your Mac was being downloaded), it is not recommended to allow SU to install major (or even minor) updates automatically. Set Software Update to just download the updater without immediately installing it. There is always the possibility that the combined download and install (which can be a lengthy process) might be interrupted by a power outage or your cat walking across the keyboard, and an interrupted install will almost certainly cause havoc. Once it is downloaded, you can install at a time that suits you. You should make a backup copy of the updater on a CD in case you ever need a reinstall.
    More information on using Software Updater here:
    http://support.apple.com/kb/HT1338?viewlocale=en_US
    Using the Combo updater ensures that all system files changed since the original 10.4.0 are included, and any that may have been missed out or subsequently damaged will be repaired. The Delta updater, although a temptingly smaller download, only takes you from the previous version to the new one, i.e. for example from 10.4.10 to 10.4.11. Software Update will generally download the Delta updater only. The preferable Combo updater needs to be downloaded from Apple's download site.
    Now proceed as follows:
    4. Close all applications.
    5. Unplug all peripherals except your keyboard and mouse.
    6. Install the update/upgrade. Do not under any circumstances interrupt this procedure. Do not do anything else on your computer while it is installing. Be patient.
    7. When it ask for a restart to complete the installation, click restart. This can take longer than normal, there are probably thousands of files to overwrite and place in the correct location. Do nothing while this is going on.
    8. Once your Mac is awake, repair permissions again, and you should be good to go!
    If your Mac seems slightly sluggish or ‘different’, perform a second restart. It can’t hurt and is sometimes efficacious!
    9. Open a few of your most used applications and check that all is OK. In this connection please remember that not all manufacturers of third party applications and plug-ins, add-ons, haxies etc, will have had time to do any necessary rewrites to their software to make them compliant with the latest version of your operating system. Give them a weeks or two while you regularly check their websites for updates. This applies particularly to plug-ins for Safari 3.
    N.B. Do not attempt to install two different updates at the same time as each may have different routines and requirements. Follow the above recommendations for each update in turn.
    Lastly, Apple's own article on the subject of Software Update may also be useful reading:
    http://docs.info.apple.com/article.html?artnum=106695
    If you are updating Safari (or just have):
    Input Managers from third parties can do as much harm as good. They use a security loophole to reach right into your applications' code and change that code as the application starts up. If you have installed an OS update and Safari is crashing, the very first thing to do is clear out your InputManagers folders (both in your own Library and in the top-level /Library), log out and log back in, and try again.
    So, disable all third party add-ons before updating Safari, as they may not have been updated yet for the new version. Add them back one by one. If something goes awry, remove it again and check on the software manufacturer's website for news of an update to match your version of Safari. Remember: Tiger up to 10.4.10 used Safari 2.0.4 or, if you downloaded it, Safari 3.0.3 beta. Safari 10.4.11 used Safari 3.0.4 which was not a beta. If Safari 3.1.2 on 10.4.11 is not the fastest browser you have ever used, then something is wrong!
    Moreover, trying to revert to Safari 3.0.4 (or worse still, version 2) when running 10.4.11 or 10.5 can have repercussions, as Safari 3.1.1 uses a completely different webkit on which other applications like iChat, Mail and Dashboard Widgets etc also rely, and may entail you having to reinstall an earlier operating system.
    Most errors reported here after an update are due to an unrepaired or undetected inherent fault in the system, and/or a third party ad-on. Two such add-on that have been frequently mentioned here for causing such problems are Piclens and Pithhelmet. If you have them, trash them.
    Additional tips on software installation here:
    http://docs.info.apple.com/article.html?artnum=106692
    To reiterate, Input Managers reach right into an application and alter its code. This puts the behavior of the affected application outside the control and responsibility of its developers: a recipe for problems. That's not to say that issues absolutely will ensue as a result of Input Managers, but you, as a user, must decide. If the functionality of a specific Input Manager or set thereof is really important to you, you may well choose to assume the associated risk.
    Again, the advice is to remove all Input Managers from the following directories:
    • /Library/InputManagers
    • ~/Library/InputManagers
    especially prior to system updates (they can always be added back one-by-one later).

  • FCP 7 Renamed Video's in a sequence to the audio name by its self. Why?

    Hey Guys.
    So I'm assisting on a big project in fcp7 for the first time in ages. We have created a sequence for every slate of the video. The video and audio have different names. We had to work quickly so we didn't rename stuff, we just starting syncing by timecode, but that was out, so we still did it manually by eye and ear.
    When we finished the sync we thought it wouldn't hurt to link all the clips with cmd+L. But for some reason now we've come back to our sequence, all the video layers have adopted the same name as the audio clips, and also match frame no longer works.
    I'm baffled to what the answer could be to turn them back. I've included and example of what's going on below.
    Original when syncing.
    (VIDEO) B0137-8JK
    (AUDIO) 104T.WAV
    After FCP 7 did something weird.
    (VIDEO) 104T.WAV
    (AUDIO) 104T.WAV
    If any one could help that'd be awesome.
    Thanks,
    Gary

    hi NLEdit,
    i'm doing them as separate files (mostly) because the majority of the clips come from their own individual scenes/soundscapes within a lengthy documentary, which means the audio (noise reduction, some effects) need to be be tailor-made to suit the video filmed in any/many given circumstances (inside/outside, different background noises, gains, different EQ needed, etc).
    does that answer your question? were you thinking of the lift/stamp tool and apple scripts? if not, please enlighten me.
    thanks,
    marc
    p.s. still can't save basic tweaked audio from a QT without the new file's audio becoming silent....

Maybe you are looking for

  • Embedding video in cfm page

    I am trying to embed a video in a cfm page.  The FORM page before is where they can link the video URL and the preview page is where they can view the video (and other information) before it get submitted and saved in the database. on the FORM page I

  • Anyone know of a tutorial on making this please?

    Hi there, New'ish to using photoshop but use Fireworks and other Adobe stuff so; Attached is a marble image with letters and was wondering does anyone know of a tutorial in Photoshop that could show me how to make it? Many thanks, P.

  • How do i get Apple Mac to sync to ICloud?  Contacts are different on mac, iCloud to iPad

    trying to get my apple mac and iPad to sync.  I have an iCloud account but it is not backing up my mac and doesn't show my iPad if i log in from my mac.  Contacts or photos not updating.

  • Customer return in depot

    Hi SD guys, I am doing a customer rerturn scenario. I created a return SO, delivery ( PGR ) and VF01 w.r.to delivery. When i try to create Excise invoice in J1IG with ref to PGR material number system throws below error "Customising for plant missing

  • Why can't I select compare pic with Return?

    All photos are on line. (All are available for export). But when I select one and hit Return to use is as the compare photo nothing happens. (It doesn't move to Viewer window. Any ideas? Thanks