Groovy for sequence

Hi Experts.....
JDEV 11.1.2
In one of entity object , i set groovy expression "(new oracle.jbo.server.SequenceImpl("SEQ_VRNO",adf.object.getDBTransaction())).getSequenceNumber()" for primary key and also set Refresh Expression value to TRUE and Updatable LOV to WHILE NEW.....
But my issue is.....once we have performed createinsert operation and then we canceled insret operation (depends on the situation).....when we take the form again , sequence number is changed....(canceld number is not able to use for record)
did we need any more settings?
PMS

Hi jabr,
thankz for ur reply.....
so we will lost continous sequence numbers , each time cancel the createinsert operation.....
how did you implement primary key from sequence?
method i knew is , set DBSequence , but we can't display next value in the UI form....
any other method which loose any continous number?
PMS

Similar Messages

  • EJB3 and Toplink pre-allocation size for Sequences

    Hi,
    How do I override the Toplink pre-allocation size for Sequences for a EJB3 Project?
    My problem in detail:
    I have a DB sequence which gets incremented by 1. I am using this sequence to generate primary keys for one of my tables. If I try to use the @GeneratedValue annotation for this primary key, then I am getting toplink validation exception 7027. I gather that this exception comes because the default pre-allocation size (increment-by value) is 50 for TopLink while DB uses 1. Now is there is any possiblity for me to override the default pre-allocation size for EJB3 project?
    Currently I am leaving the primary key empty when I persist the entity and letting a DB trigger insert the sequence value into the DB.
    thanks,
    Chandru.

    Chandru,
    When defining a sequence generator in JPA you also have the ability to configure a preallocationSize that should match the DB sequence's increment.
    Here is a simple example:
    @Entity
    @SequenceGenerator(name = "emp-seq", sequenceName = "EMP-SEQ", allocationSize = 1)
    public class Employee implements Serializable {
        @Id
        @GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "emp-seq")
        private int id;Doug

  • Date Created for sequence

    Anyone know of a way to generate a date created field for sequences ala Avid?
    I find a lot of date metadata fields but none of them work for sequences. Im in 7.2.1
    Thanks

    Sorry but just trying to understand.
    Not sure why the Date Created on a Sequence makes a difference to what is sent...which I assume would be an Export.
    ie how does the Sequene relate to "the finished versions for broadcast"?
    My finished versions for broadcast (TVCs)  have a Key number *& title on the file name and if I look in Explorer..the date created is in the appropriate column.
    If I wanted the sequence to have that  "created date" info..I would put it in the Sequence Name alongside the Key number etc.

  • Cmdlnlauncher for sequences throwing connection string error..

    Hi All,
    I have Hyperion suite v11.1.1.3. I am trying to use cmdlnLauncher.bat to schedule few rules and sequences. I was able to do it for rules however for sequences, I am getting error.
    My syntax:
    cmdlnLauncher.bat -p:password -S<server name> -Uadmin -sAct2011
    Error: "Connect String missing or has an invalid format. Please specify a valid connect string (Server/App/DB)"
    As the -f<rtp file> is ignored for sequences, I am not sure how to pass connection string to the wizard.
    Any suggestions please..
    Kind regards,
    Ankit

    Thanks for Reply
    Excel SOurce give me below Error
    TITLE: Microsoft Visual Studio
    Parameters cannot be extracted from the SQL command. The provider might not help to parse parameter information from the command. In that case, use the "SQL command from variable" access mode, in which the entire SQL command is stored in a variable.
    Try as below,
    declare @sql varchar(1000), @fq varchar(260)
    select @fq = ?
    select @sql = 'SELECT * FROM OPENROWSET(''Microsoft.ACE.OLEDB.12.0'',''Excel 12.0;Database=''' + @fq + ''', ''SELECT * FROM [sheet$]'')'
    ---print @sql
    insert into TEMP
    exec(@sql)
    OR
    declare @sql varchar(1000), @fq varchar(260)
    select @fq = ?
    select @sql = 'SELECT * INTO TEMP FROM OPENROWSET(''Microsoft.ACE.OLEDB.12.0'',''Excel 12.0;Database=''' + @fq + ''', ''SELECT * FROM [sheet$]'')'
    ---print @sql
    exec(@sql)
    Regards, RSingh

  • NI PXIe 4141 source trigger for sequence start

    Hi all,
    Is it possible to use Source Trigger to generate a sequence in NI PXIe 4141 SMU? Whenever I try this only first and Second sequence voltages are produced and then sequence stops. 
    It seems to be waiting for Sequence Advance trigger. In this case what is the purpose of Source Trigger? can it only be used for single voltage transition?
    I know I can use Start Trigger to start generat my whole sequence, but I don't want to do use it because it limits my capability to control Measurement using Measurement Trigger individually.
    Please help! 
    Anandelamaran Duraisamy,
    Senior Project Engineer,
    Soliton Technologies (P) Ltd,
    www.solitontech.com

    Kevin:
    Thanks for the info.
    I have since added the ability to use the arm start trigger instead the start trigger, and it does what I was looking for.
    >In practice, it seems that the "arm start" trigger is simply the one and only start trigger
    >that can be configured for counter tasks.
    Well, the regular start trigger works with output pulse tasks.
    Which brings up another question: on a board with analog trigger circuitry, can you use an analog trigger for an task that accepts a regular start trigger? I don't seem to have a board with analog trigger, so I can't try it.
    I find the documentation to be not as clear sometimes as it could be. I also find that it is often difficult to find the particular spot in the documentation where something is disscussed. That is partly because sometimes pieces of a given topic are scattered about.
    Sure wish it was in a PDF so I could actually read through it!
    John Weeks
    WaveMetrics, Inc.
    Phone (503) 620-3001
    Fax (503) 620-6754
    www.wavemetrics.com

  • Waiting for sequencer to come up (Rosegarden)

    I really want to get rosegarden working, so I can start producing and such.  But I'm having some errors.  First I get an error message box telling me that Sequencer could not be started so sound and recording is unavailable.  If I look at the standard output in the terminal window I see something like this:
    JackDriver::initialiseAudio - JACK server not running
    ALSA lib seq_hw.c:455:(snd_seq_hw_open) open /dev/snd/seq failed: No such file o r directory
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    rosegarden: RosegardenGUIDoc::syncDevices - waiting for Sequencer to come up
    Any Ideas?

    try:  modprobe snd-seq-oss

  • ConnectionPool for Sequence

    Hello,
    in our application, i use ConnectionPools for Read and Default with these commands:
    aLogin.setUsesExternalConnectionPooling(true);
    aSession.getConnectionPools.put(new ConnectionPool ("default", aLogin, 2, 4, aSession));
    aSession.getConnectionPools.put(new ConnectionPool ("read", aLogin, 2, 4, aSession));
    For Sequences, i would instanciate one new ConnetionPool for Sequences like this
    aSession.getConnectionPools.put(new ConnectionPool ("sequencing", aLogin, 2, 4, aSession));
    But this connectionPool is not used.
    I use toplink 9.045 and on the way to change this in toplink 10.1.3.
    Please can somebody help me?

    Yes,
    i do so, but it is not possible to use an own connection pool.
    In the SequencingManager, the connectionpool is generated like this:
    protected void createConnectionHandler()
    boolean flag = getOwnerSession().isServerSession();
    if(getLogin() == null)
    DatabaseLogin databaselogin;
    if(flag)
    databaselogin = ((ServerSession)getOwnerSession()).getReadConnectionPool().getLogin();
    else
    databaselogin = getOwnerSession().getLogin();
    setLogin((DatabaseLogin)databaselogin.clone());
    if(getLogin() != null && getLogin().shouldUseExternalTransactionController())
    throw ValidationException.invalidSequencingLogin();
    if(flag)
    Object obj = null;
    if(getLogin().shouldUseExternalConnectionPooling())
    obj = new ExternalConnectionPool("sequencing", getLogin(), (ServerSession)getOwnerSession());
    } else
    if(getMinPoolSize() == 0 && getMaxPoolSize() == 0)
    setMinPoolSize(2);
    setMaxPoolSize(2);
    obj = new ConnectionPool("sequencing", getLogin(), getMinPoolSize(), getMaxPoolSize(), (ServerSession)getOwnerSession());
    setConnectionHandler(new ServerSessionConnectionHandler(((ConnectionPool) (obj))));
    } else
    setConnectionHandler(new DatabaseSessionConnectionHandler(getOwnerSession(), getLogin()));
    My problem is, that db2 on os/390 closes the unused connections by itself and the connection in the application doesn't register that.
    For read and default connection pools i register a KeepAliveAction which tests the unused connections, but for the pooled connections of the sequencing manager, i have no chance to get involved with this pool. I also can't set the number of min or max numbers of connections.

  • Problem with IDL generation for sequences

    Hi, I have idl that is defined such that generated stubs will not compile. I have reproduced the error using both jdk1.3, and jdk1.4 idl compilers. I am looking for advice as to workarounds that dont involve changing the idl for reverse compatibility reasons.
    IDL:
    struct structA {
    string something;
    module someModule {
    struct structB {
    sequence<structA> someSeq;
    Upon compiling the class structBHelper, the compiler will fail unable to find the type structAHelper. The problem is easy to ascertain, ie, the import for 'structAHelper' is not generated ( all other necessary imports exist ). Is this a problem or something that exists by design? Does anyone have advice as to how to workaround without modifying the idl?

    Put both under the same module as in.
    in your current construct, structB does not see structA
    module someModule {
      struct structA {
       string something;
       struct structB {
         sequence<structA> someSeq;
    };If you want struct to outside someModule, the try this
    module someModule1 {
      struct structA {
       string something;
    module someModule2 {
       struct structB {
         sequence<someModule1::structA> someSeq;
    Hi, I have idl that is defined such that generated
    stubs will not compile. I have reproduced the error
    using both jdk1.3, and jdk1.4 idl compilers. I am
    looking for advice as to workarounds that dont involve
    changing the idl for reverse compatibility reasons.
    IDL:
    struct structA {
    string something;
    module someModule {
    struct structB {
    sequence<structA> someSeq;
    Upon compiling the class structBHelper, the compiler
    will fail unable to find the type structAHelper. The
    problem is easy to ascertain, ie, the import for
    'structAHelper' is not generated ( all other necessary
    imports exist ). Is this a problem or something that
    exists by design? Does anyone have advice as to how
    to workaround without modifying the idl?

  • User Exit/BTE for F-26  for sequencing clearing open items

    Hi All,
    Is there a BTE/User exit to identify the items selected for clearing in F-26? ( On line item double click)
    Based on the open items displayed we need to enforce a check that they are selected in a proper sequence.
    Thanks in advance,
    Puneet

    Thanks for the reply.
    I succeded creating the validation with an user-exit. I made the following steps:
    1) I created the validation in GGB0 (for document header), issuing a standard message (420 "Exchange rate not found") from message class (ZRSAU) - which is a copy of RSAU message class (in the beggining I put no pre-requisites, checks or rules, just the message).
    2) In OB28 I attached the validation (with call point document header) and I made it active (without batch input).
    3) I copied the RGGBR000 program (which is standard program with an example of validation) into ZRGGBR00 (it should be maximum 8 characters).
    Then I changed the ZRGGBR00 program (form U100) comparing the translation date (from BKPF) with the date from table TCURR (and exchange rate type M, and documents currency other than local currency).
    If the program doesn't find any exchange rate in TCURR in that date, it issues the error message (assigned in GGB0).
    4) In GGB0, I put the U100 user exit as a check and rule
    5)  In GCX2, I attached the ZRGGBR00 program to the GBLR application area (which is for user exits for validations / rules).
    Now it's working fine!

  • Field Dominance Question for Sequence

    I shot my video in DVCPro50 format at 30p. I have edited my video in a DV50 sequence. I am ready to take to a production house to be transferred to BetaSP. In the past with other videos I take the finished sequence and nest it into a Uncompressed 8-bit NTSC sequence and that is what I give to production house. In this Uncompressed 8-bit sequence should I select Field Dominance: None or Field Dominance: Lower (even)?
    Thanks for your help!

    If someone could help me out to confirm this. I would rather do this right than find out when my commercial is broadcast that I messed up the field dominance.
    My final sequence is being transferred to BETASP. I take to the production house an uncompressed 8 bit NTSC sequence.
    If I understand this correctly my uncompressed sequence will have a field dominance of lower if the original footage was SD.
    If my original footage was HD than my uncompressed sequence should have the field dominance set to upper.
    So the uncompressed sequence that is transferred to BETASP has a field dominance set by the original footage?
    Thanks for taking the time with this.
    Darrin

  • Merging Script for Sequences of Pictures

    Hi,
    from my panorama rendering passes, I receive picture sequences (picture.0001.png, picture.0002.png ...), where I need to
    * import each pic of the sequence,
    * crop it with a fixed value
    * place all next to each other from left to right and then
    * save the final pic as .png (incl. mask if exists)
    * with the same name but numbered as picture_01, picture_02 ... continuing the order of existing final pictures. 
    * All cropped pics of the sequence constitute the width of the final pic.
    * After finishing I need it to show me the final pic and
    * ask me if I want to delete all pics of the sequence ...
    * while enabling me to navigate in the the final pic before I make my deletion decision.
    Since I can't do this with recording an action, I think this can be achieved with a script. I made a quick breakdown of the steps here.
    I did some javascript longer time ago and can understand stuff, but am too new bee to get this off the ground. Would be great if someone help me to set this up right.
    Thx,
    Frank

    Hi Lasantha,
    Please refer to the following post related to renaming user profile thumbnail.
    https://blogs.blackmarble.co.uk/blogs/rhepworth/post/2010/07/29/powershell-script-to-rename-files-for-use-as-sharepoint-2010-user-profile-thumbnails.aspx
    Please don't forget to mark it answered, if your problem resolved or helpful.

  • Best datatype definition for sequence generated PK

    Hi everyone,
    I realize the actual answer to this question will most likely be "it doesn't really matter," but as a typical database developer, my over-analytical self just can't move past this unless I handle it the "best" way.
    I have surrogate primary keys in my tables generated by sequences incremented by 1. So, I want to enforce the constraint on this column to not allow decimal values like 38.5, for instance...just integers. I don't necessarily care about the precision, since, as far as I'm aware, there are no negative impacts for defining a column as NUMBER(38) vs NUMBER(10).
    So, I've come to find three ways in defining this datatype to accomplish this. All of them end up being defined as NUMBER(38), which is why I figured it doesn't really matter, but there are some slight differences.
    1.  CREATE TABLE IMOVERTHINKING (MY_PK NUMBER(*,0));
    2.  CREATE TABLE IMOVERTHINKING (MY_PK INTEGER);
    3.  CREATE TABLE IMOVERTHINKING (MY_PK NUMBER(38));The first two essentially do exactly the same thing. In USER_TAB_COLUMNS, both of those will give me a PRECISION of NULL and SCALE of 0. The third one will give me a PRECISION of 38 and SCALE of 0.
    So, does anyone have a suggestion for a "best practice?" Is it best to define a PRECISION like in #3? Or, what about scalability? Say, if Oracle changes the max PRECISION to 58 one day. Will the undefined PRECISION automatically reflect that? Will I have to redefine all columns that used the #3 approach?
    Thanks for any advice in advance.
    Mark

    Yeah, I have them as just plain number currently, but was thinking I shouldn't allow decimals, so I need to specify 0 scale. I don't have any restrictions on precision. I was kindof wondering how come I seem to be the only one worried about this, because, like you say, even Oracle just uses plain number. People would probably say that, since it's senquence-generated, decimals should never be a problem... But, I have an IF statement in my trigger to override the sequence if a primary key value is supplied (for my development purposes when loading bulk data sometimes I want to use the same primary keys as in my test/prod environments). Also, people would probably say that, since it's a pk field, it is essentially a relationship identifier, and it shouldn't matter if it has decimals in it or not. True, but it still bothers me, lol.

  • Quicktime Settings for Sequence

    Oh, I'm quite disappointed. Having worked with FinalCut Pro for many years on my G4 Macs without problems, I needed the new software for my new Intel iMac. I thought it would be enough to buy FCE, but I miss hardly the Quicktime Video Settings for the sequence, which made an easy workflow with different formats. A lot of material waits in HD Foto-JPEG, others in H264. Do I have to render all these clips into Apple Intermediate Codec before I can start editing? This is a real kickback. Or are there hidden tricks? I'm still using Quicktime 7 Pro, so the codecs must be there anywhere.
    Thanks for any hints!
    Ingolf01

    Thanks for reply. I found out that I'm able to edit by switching to "low" video playback settings, rendering follows anyway. No fun at all, as well as converting all raw material.
    But - no; I had always good results by matching the sequence settings close to the original material, since my camera is recording QuickTime .movs with Photo-JPEG compression. For future projects I can of course switch to AVCHD format, but it's no better quality.

  • Synonym for Sequence e grant to other user

    Hola,
    I have two user
    AAA e BBB
    In AAA I have this sequence SQ_NUMEAVVI
    I create in BBB user
    CREATE SYNONYM SQ_NUMEAVVI_AAA FOR AAAA.SQ_NUMEAVVIAnd from sql connection of user BBB I haven't problem to see this sequence, but when I compile this function
    CREATE OR REPLACE  FUNCTION F_CALCNUMEAVVISEQU (VC_USER IN VARCHAR2)
    RETURN varchar2 IS
         VC_NUMEAVVI             VARCHAR2(15);
    BEGIN
         SELECT      DECODE((SELECT CODI_TIPO_UTEN FROM ANAGUTEN WHERE NOME_UTEN = upper(ltrim(rtrim(VC_USER)))),10,'C',11,'R',12,'S',13,'D','C')||SQ_NUMEAVVI_AAA.NEXTVAL
         INTO      VC_NUMEAVVI
               FROM      DUAL;
    RETURN(VC_NUMEAVVI);
    EXCEPTION
         WHEN OTHERS THEN
         RETURN(1);
    END;
    /I have the error "The sequence doesn't exist"
    Do you have to give a grant to this sequence from AAA to BBB?
    And How can do?
    Thank's!!
    Paolo

    GRANT SELECT ON SQ_NUMEAVVI TO BBB;SY.

  • UI for sequence of modifiable actions?

    Hi,
    I want to program an interface to a cell-stimulation device I have built. What I want to do is have a tab-based user interface of actions (eg, stimulate some cell with a voltage pulse of some particular waveform, or turn on or off channels that will be stimulated etc) that the user can customize and add to a sequence of tasks to perform. So, the user should be able to set a task ie, pause for 5 minutes, and add that to the list of things to do. Then add say, turn on channel 1. Then stimulate with waveform x for 10 minutes. then turn off channel 1, then turn on channel 2, then run stimulation pattern y, etc etc etc.
    Once the list of actions is programmed in, the user should be able to run the sequnce of actions, as well as delete mistakes, or reorder the sequence by drag and drop. 
    Can I do this with tables or listboxes? Can Labview even do this kind of interface?
    Thanks in advance!
    David

    David,
    Yes.  You can do things like this in LV.
    Listboxes are a good way to get input from users. Depending on how many options there are and how complicated things can get, you may want to have a hierarchy.  The tab control is one way to approach that.
    To minimize confusion to the user, do not present too many options at any one time.  I suggest only dislaying the options for one stage of the test at a time.  Internally (not displayed) keep an array (of clusters or classes) with the parameters of each stage.  Consider developing some kind of graphic display which will show the user the entire test sequence before the test starts.  For editing bring up the parameters for the stage to be edited and afterwards replace that element in the array.
    Lynn

Maybe you are looking for

  • How to get all oneorder header_guids for a specific reference PRODUCT_ID?

    Hi, in servicerequest we add iobjects as reference objects. The iobject represents the machine a customer has an issue with. Within the iobject master we have a PRODUCT_ID. The product_ID represents the machine type. So: 1 product_id could have 1:n i

  • Problem using the e-mail button in Acrobat Pro 7.1.0 with Outlook 2013

    I just switched my e-mail application from Mozilla Thunderbird to Outlook 2013. I have always been able to click the e-mail button in Acrobat 7.1.0 to open a blank e-mail message with the PDF file attached. I keep getting an error now that I have Out

  • SID Generation Error while activating the DSO.

    Hello Gurus, Am trying to load the data to a dso in FIGL, the data is getting loaded to the dso very fine, this is extracting data of 1700000. But the problem is while activating the dso it throws an error "Activation of M records from DataStore obje

  • Cannot play videos in iPhoto since SL upgrade

    Since I upgraded to SL, it appears that I cannot play videos that I have loaded to iPhoto. I go into an event in iPhoto in which I have some digital camera videos and they do not play. These used to open in QuickTime and run fine. When I click on the

  • Is initial state of a Java stack frame stored somewhere

    In My IDE (Eclipse), debugger has an option "Drop to Frame" for each method in the method stack, which when clicked resets the stack to the initial state of the selected method. How is the operation achieved? Is this an potion from JDB or IDE would h