Sequence number in ADF FORM.

hi All,
I have a table with ID as primary key and have a sequence created for this primary key and have a trigger for generating sequence number while inserting the record in table.
How can i map this Sequence in ADF so while inserting record from Form i can skip the ID column.
Regards,
Suresh kumar

I am using MySQL and primary key is auto incremented in my table. Therefore I have selected
SQL Plateform     :     SQL92     
Data Type Map     :     Java
When I am trying to create entiry object, I do not get option of selecting DBSequence. I did some documents reading, I found out that DBSequence is part of "*Java Extended for Oracle*" Data type Map.
While creating the EO , in the Attribute Settings, I click the Browse and search for DBSequence. I found out oracle.jbo.domain.DBSeqence.
Can someone please let me know that I am going to face any problem in future by using DBSequence in his manner?
Thanks in Advance.

Similar Messages

  • Item Sequence number in form?

    Hello All,
    Can I get the item sequence number in the form according to the Obejct Navigator? Is it possible by any way?
    Regards
    SUN

    Hello Gerd,
    Thanks for your replay. My requirment is like below.
    I am converting a key-board enabled application to mouse enabled application. Here as we have the code in the key-next-item I am doing one loop. Through I am doing do-key('next_item') and it is firing the key-next-item trigger. I am getting the from item and the to item and running the loop from from tiem to to item. I put the code in when-mouse-click trigger.
    My problem is when I am click the mouse in the 10th item and before cursor coming to the 10th item through the key-next-item trigger of 9th item it is moving the corsur to 12th item. That time it is failing.
    Also now my cursor is in the 10th item and I am clicking in the 2nd item. Then as I am running the loop from ---- to item then from the 10th item it is doing the do-key('next_item') and going forward and after traving all the items it is comming to the 2nd item. Which is wrong , it should come to the reverse way. For this I have a procedure which is doing the do-key('previous-item), but problem is in which case I will call the procedure I am not able to get?
    Can you please give me any suggestion on it and what it the best way to do this type of application changes. I saw a white paper in oracle site, but here I am not able to get any more information.
    Regards
    SUN

  • Portal Master-detail form how to auto assign detail record sequence number

    Portal Master-detail form how to auto assign detail record sequence number.Please help me?

    You can just read the following section
    Can I specify a sequence number generator as the default value for a form column?
    Yes. Enter the following in the "default value" field for the column:
    #<schema name>.<sequence name>.nextval
    where <schema name> is the name of the schema containing the sequence, and <sequence name> is the name of the sequence. The entry is preceded by a "#".
    For example, if the schema name is "SCOTT", and the sequence name is "CUSTOMER_SEQ", the default value entry is:
    #SCOTT.CUSTOMER_SEQ.NEXTVAL
    same way you can do for master - detail form.
    for more information on forms please refer the following URL.
    http://otn.oracle.com/products/iportal/htdocs/portal_faq.htm#BuildingApplications
    hope it helps.

  • A sequence number error in a form

    I am currently creating a form with a sequence number in forms 10g
    <pre>
    table name: emp
    table desc: emp_id number,emp_name varchar2(20),emp_no number
    </pre>
    i have to generate the emp_id automatically.
    <pre>
    create sequence emp_seq
    minvalue 1
    start with 1
    increment by 1
    cache 20
    </pre>
    I use pre_insert trigger in block
    <pre>
    begin
    select emp_seq.nextval into :emp.emp_id from dual
    end
    </pre>
    problem;
    I can not insert a record because of sequence number in :emp.emp_id
    no compilation error but there is no automatic sequence number appeared in :emp.emp_id after run a form.
    It used to work before(fine with automatic sequence number in :emp.emp_id).
    it happens after I changed layout format and someone add more columns in emp table.
    eventhough i did not use sequence number in emp.emp_id
    in pre-insert-trigger
    <pre>
    begin
    select nvl(max(emp_id),0)+1
    into :emp.emp_id
    from emp;
    </pre>
    still can not show up any number in :emp.emp_id
    please help me out

    Thank you . It works now.
    would you mind explain to me; what I can not use automatic sequence number in emp.empid text field in pre-insert-trigger in my case
    is it trigger confliction in my forms?

  • Sequence number in pre-insert form trigger

    i have two tables invoice (master) inv_detail(detail) and assign the invoice number using a sequence number,
    by writing the folowing code in the pre-insert trigger
    select a.nextval into :inv_no from dual;
    ( i make the trigger at the form level becuause i have a master (invoice) and detail (inv_detail) relation at the same screen,so i must fetch the value of the
    sequence into the :invo_no in the screen,to let the 'copy value from' property at the detail block works so the value of the foreign key will be copied from
    the sequence number at the screen.
    will this method be a good one for multi user envirment(to select the a.nextval in the pre-insert trigger at the from level?)

    Kevin, thank you for the correct explanation. I was making an assumption and of course it was wrong.
    Mohannad, please do not try to link the invoice count with the sequence number. Any time you need a count, just do a select count(*). The sequence number is ONLY a unique key, and should represent nothing else.
    People have discussed this situation heavily. If you insist on trying to ensure there are no gaps, you will:
    1. Fail -- there are many scenarios where gaps will occur.
    2. Waste your time.
    3. Whatever process you build to try to prevent gaps will cause unnecessary overhead and work for the server, and in a multi-user environment, cause processing bottlenecks due to table locks.

  • Sequence Number Generation in XML Form Buider??????

    Hi All,
    I want to generate some Sequence Number for each XML Form Generated by the XML Form Builder Application?
    Ex: my XML Form Builder Application is "MYAPP". Using this I filled data and Save, then an XML will be created, then it should have some unique Number(say 1234), then if I fill the differennt Data and Save, then another XML will be created. For this the Number should be 1235, next 1236, ........
    I can use the XML Form ID, but that is not User friendly format. Becaz I need to display this Number to the End User.
    (Example: 10b2ae7b-e269-2b10-d88e-ddade2e62015.xml)
    If anybody have idea on this, Please guide me...
    Thanks&Regards||
    Ashok M.
    Edited by: Ashok Kumar Munugoti on Oct 16, 2008 8:04 AM

    closing this Thread.

  • Enq: TX - row lock contention in forms 10g sequency number generation

    Iam Getting the Deadlock issue in oracle formdeveloper 10g database is 11g Acutually in our small Hospital organization using different forms generating entrying labrequest form finally save time
    one sequency number will generated i have give procedure below every save criteria form using below procedure some time iam getting lock iam using blocksession query i have find out some
    OSUSER
    MACHINE
    TERMINAL
    PROGRAM
    SQL_ID
    LOGON_TIME
    BLOCKING_SESSION_STATUS
    BLOCKING_SESSION
    EVENT
    user423
    UMCCDOM\LEVEL4-MICU
    LEVEL4-MICU
    PrjMcr.EXE
    0ccngw7dfkmgb
    23/09/2013 11:34:41 AM
    VALID
    277
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    23/09/2013 11:32:50 AM
    VALID
    186
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    22/09/2013 2:49:47 PM
    VALID
    277
    enq: TX - row lock contention
    SYSTEM
    WORKGROUP\PRIAPPSVR
    PRIAPPSVR
    frmweb.exe
    0ccngw7dfkmgb
    23/09/2013 7:00:22 AM
    VALID
    186
    enq: TX - row lock contention
    user290
    UMCCDOM\LEVEL2-N
    LEVEL2-N
    PrjMcr.EXE
    0ccngw7dfkmgb
    23/09/2013 10:28:06 AM
    VALID
    277
    enq: TX - row lock contention
    lock are happen after open the code i have find out used FOR UPDATE in procedure please tell me any alternative for this every labrequest form saving time using this procedure for generating prefix sequence number multiple user using with different systems
    PROCEDURE   Gsp_GenSeqNum (I_SvPrefixCd IN VARCHAR2,I_SvUserName IN VARCHAR2,
                              O_SvSeqNum OUT VARCHAR2) IS
    --This Procedure generates the sequence number
    --by retrieving the prefix based on the code
    --supllied to the procedure.
      CURSOR  crSeqGenerator IS
             SELECT Gsn_prefix_last_num, Gsn_prefix_year
                FROM G_SEQUENCE_NUMBER
             WHERE Gsn_prefix_Cd = I_SvPrefixCd
                   AND Gsn_prefix_year = TO_CHAR(SYSDATE,'YYYY')
      FOR UPDATE OF Gsn_prefix_last_num;
      udSeqNum        G_SEQUENCE_NUMBER.Gsn_Prefix_last_num%TYPE;
      udNextSeqNum    G_SEQUENCE_NUMBER.Gsn_Prefix_last_num%TYPE;
      udYear          G_SEQUENCE_NUMBER.Gsn_Prefix_year%TYPE;
      udPrefix        G_SEQUENCE_PREFIX.Gsp_Prefix_Value%TYPE;
    BEGIN
      SELECT Gsp_Prefix_Value
      INTO udPrefix
      FROM G_SEQUENCE_PREFIX
      WHERE Gsp_Prefix_Cd = I_SvPrefixCd;
      OPEN crSeqGenerator;
      FETCH crSeqGenerator
       INTO udSeqNum,
            udYear;
      IF crSeqGenerator%FOUND THEN
         udNextSeqNum  :=udSeqNum + 1;
         O_SvSeqNum     := udPrefix||'/'||TO_CHAR(SYSDATE,'YY')
                                   ||'/'||LPAD(TO_CHAR(udNextSeqNum),6,'0');
      ELSE
    INSERT INTO G_SEQUENCE_NUMBER VALUES(I_SvPrefixCd,TO_CHAR(SYSDATE,'YYYY'),0,I_SvUserName,SYSDATE);
         udSeqNum      :=0;
         udNextSeqNum  :=udSeqNum + 1;
         O_SvSeqNum:=UdPrefix||'/'||TO_CHAR(SYSDATE,'YY')
                             ||'/'||LPAD(TO_CHAR(udNextSeqNum),6,'0');
      END IF;
      UPDATE G_SEQUENCE_NUMBER
         SET Gsn_Prefix_last_num=udNextSeqNum
       WHERE Gsn_Prefix_Cd = I_SvPrefixCd
         AND Gsn_Prefix_year=TO_CHAR(SYSDATE,'YYYY');
      CLOSE crSeqGenerator;
    END Gsp_GenSeqNum;
    Thanks
    subbu

    This application is inbuit with some modules VB (cath ,cardio)and oracle forms for required sequence number generation different time used this procedure whereever required the sequence Prefix generation.If i replace the procedure sequene to oracle standard sequency if the user cannot save the form unnessary sequency generated order is missing from sequence.

  • Sequence number over multiple adobe form calls

    Dear all
    I posted this question in another subforum - http://forums.sdn.sap.com/thread.jspa?threadID=1997461 - three days ago,
    but nobody could answer, so I try to post it here.
    We would like to have a sequence number for each page.
    The Adobe Form gets called more than once, so the second call doesn't know, how many pages were printed already, thus it cannot continue the sequence number.
    Do you have any ideas?
    Of course, I would prefer not to publish an SAP-service only for this purpose...
    (The transaction is HRFORMS, we would like to print a sequence number bar code, so that the packing machine to the envelope senses, if two pages are stuck together.)

    Hi,
    I have a problem in printing current page number of an adobe form.
    My requirement is that , my form got 2 pages. On first page i am not printing page numbers and excluded from numbering.
    Numbering starts from second page. The second page needs to be repeated twice.
    In this case my page printing should look like :
    First page - no page number
    second page - 1 of 1
    Third page - 1of 1 (as it is a copy)
    IF second page extends to multiple pages (eg.. 2)
    First page - No Page no
    First instance of second page - 1of 2 , 2 of 2
    Second instance of second page - 1 of 2 , 2 of 2 . Presently it is printing like : 3 of 2 , 4 of 2. I need to initialize current page count. I could able to set the total page count 2 via variable from print program. But while printing the second instance, I am not able to initialize the current page count.
    I have seen the following thread which exactly talks about my problem but with out any solution.
    http://forums.sdn.sap.com/thread.jspa?messageID=10601698&#10601698
    I have tried initializing the current page count in the initializing event and tried assigning the initial value when the second copy starts but for entire no of pages the same initialized value is coming.
    Can anyone help me in this regard.
    Thank You,
    Regards,
    Naresh.

  • Insert new row into oracle databse through application module usng ADF Form

    I am using Jdeveloper 11.1.2. I am a beginner. I had tried in-built createInsert and commit method to add new row into oracle DB. For that, I had created ViewObject, VOImpl and AMImpl. Then, I created to jsf page. On first page, I dragged and dropped createInsert fn and VO(as ADF-readonly table) from DC Palette. and on second page, I dragged and dropped my VO(as ADF-Form) and commit (as Button) from DC palette. I created task-flow for it. when i click on createInsert button, i redirected to second page. where i filled all the required information on form. After filling, when i clicked commit button, i redirected to first page.(coz i created task flow to return first page after commit). New row is inserted into ADF-table, but when i checked my oracle DB, there was nothing added.
    Thus, I want to use custom method to insert row into OracleDB. So how can i get this? what are the steps required to do this? what programming codes required in Bean.java and AMImpl.java. Or is there any other steps to do this?
    please provide me detail steps and programming code for bean, amimpl or for VOImpl or EOImpl.
    please help me.

    User,
    To insert a row into the db you have to use a VO which is based on an EO (entity object). There is no java class (or impl) needed. You can all do this decoratively.
    All you have to think of is the PK of the new row. You can use Groovy for that (http://tompeez.wordpress.com/2011/09/02/using-groovy-expression-to-set-a-primary-key-with-a-sequence-number/)
    The rest is like you described it yourself. Drag the Vo onto the page, drop it as read only table, drag the createInsert onto the page as button and set up the navigation. On the second page drag the same VO onto the page and drop it as ADF Form. drag the commit operation onto the page as button and setup the navigation back to the first page.
    Timo

  • Issue editing a new record in simple ADF form

    I have a simple ADF entry form and table that saves to a database table. The database table has columns that cannot have null values.
    I can create, edit, delete and save rows in the ADF form without problems.
    The problem I have is when I edit a row that I just created and saved. I get an error message that says I cannot save null into the fields that cannot have null values in the database, even though my form shows that my newly created and saved is data there. I seem to have to edit those fields to get the model entity to recognize that there is some value in them.
    So the sequence of events leading to the error is this:
    I create a new record with ADF form using the 'Create' or 'CreateInsert' operation command button, I enter data into all the fields and hit commit.
    I decide I want to make a change to one of the fields, I enter some text, click commit again and an error message pops up saying that I cannot enter null into a required field, but there is data in the field and I did not change anything in it.
    The only way I can save without error now is either by running a rollback operation now or making a edit to all the required fields to get the linked entity to not send a null value to the database.
    This error will still occur even if I navigate away from the newly created record to other records, if I ever navigate back to that record created in the current session, I will get that error message.
    Anyone else experience a similar problem?
    Are there any settings or properties I need to set in the entity that can avoid sending null values to the database when a value already exists?
    I thought at first it was because I'm using the 'CreateInsert' operation to create a new record as opposed to the 'Create' operation, but the same problem exists with both operations.

    I am using jDev version 11.1.2.1.0
    In you sample, does your database have columns that require a not null value?
    I think my problem lies in the entity or view somewhere, how it's sending null value for fields that don't need to be updated.
    Here's the source for my entity and view.
    Entity:
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE Entity SYSTEM "jbo_03_01.dtd">
    <!---->
    <Entity
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="Feedback"
    Version="11.1.2.60.81"
    DBObjectType="table"
    DBObjectName="FEEDBACK"
    AliasName="Feedback"
    BindingStyle="OracleName"
    UseGlueCode="false">
    <Attribute
    Name="FeedbackId"
    Precision="10"
    Scale="0"
    ColumnName="FEEDBACK_ID"
    SQLType="NUMERIC"
    Type="oracle.jbo.domain.Number"
    ColumnType="NUMBER"
    TableName="FEEDBACK"
    PrimaryKey="true">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="22"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="PageName"
    IsNotNull="true"
    Precision="200"
    ColumnName="PAGE_NAME"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="FEEDBACK"
    IsUpdateable="while_insert"
    RetrievedOnInsert="true"
    RetrievedOnUpdate="true">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="200"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="Severity"
    Precision="30"
    ColumnName="SEVERITY"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="FEEDBACK"
    IsNotNull="true">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="InternalAction"
    Precision="30"
    ColumnName="INTERNAL_ACTION"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="FEEDBACK">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="FeedbackNote"
    IsNotNull="true"
    Precision="4000"
    ColumnName="FEEDBACK_NOTE"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="FEEDBACK">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="4000"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="InternalNote"
    Precision="4000"
    ColumnName="INTERNAL_NOTE"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="FEEDBACK">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="4000"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="CreatedBy"
    Precision="30"
    ColumnName="CREATED_BY"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="FEEDBACK">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="CreationDate"
    ColumnName="CREATION_DATE"
    SQLType="TIMESTAMP"
    Type="oracle.jbo.domain.Date"
    ColumnType="DATE"
    TableName="FEEDBACK">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="7"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="ActionDate"
    ColumnName="ACTION_DATE"
    SQLType="DATE"
    Type="oracle.jbo.domain.Date"
    ColumnType="DATE"
    TableName="FEEDBACK"/>
    <Attribute
    Name="ReviewedBy"
    Precision="30"
    ColumnName="REVIEWED_BY"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="FEEDBACK">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30"/>
    </DesignTime>
    </Attribute>
    <Attribute
    Name="AssignedTo"
    Precision="30"
    ColumnName="ASSIGNED_TO"
    SQLType="VARCHAR"
    Type="java.lang.String"
    ColumnType="VARCHAR2"
    TableName="FEEDBACK">
    <DesignTime>
    <Attr Name="_DisplaySize" Value="30"/>
    </DesignTime>
    </Attribute>
    <Key
    Name="Xpkfeedback"
    PrimaryKey="true">
    <DesignTime>
    <Attr Name="_DBObjectName" Value="XPKFEEDBACK"/>
    </DesignTime>
    <AttrArray Name="Attributes">
    <Item Value="ichip.util.Feedback.FeedbackId"/>
    </AttrArray>
    </Key>
    </Entity>
    View:
    <?xml version="1.0" encoding="windows-1252" ?>
    <!DOCTYPE ViewObject SYSTEM "jbo_03_01.dtd">
    <!---->
    <ViewObject
    xmlns="http://xmlns.oracle.com/bc4j"
    Name="FeedbackView"
    Version="11.1.2.60.81"
    SelectList="Feedback.FEEDBACK_ID,
    Feedback.PAGE_NAME,
    Feedback.SEVERITY,
    Feedback.INTERNAL_ACTION,
    Feedback.FEEDBACK_NOTE,
    Feedback.INTERNAL_NOTE,
    Feedback.REVIEWED_BY,
    Feedback.CREATED_BY,
    Feedback.CREATION_DATE,
    Feedback.ACTION_DATE,
    Feedback.ASSIGNED_TO"
    FromList="FEEDBACK Feedback"
    BindingStyle="OracleName"
    CustomQuery="false"
    PageIterMode="Full"
    UseGlueCode="false"
    OrderBy="Feedback.PAGE_NAME asc,Feedback.FEEDBACK_ID desc">
    <EntityUsage
    Name="Feedback"
    Entity="ichip.util.Feedback"/>
    <ViewAttribute
    Name="FeedbackId"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="FeedbackId"
    EntityUsage="Feedback"
    AliasName="FEEDBACK_ID"/>
    <ViewAttribute
    Name="PageName"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="PageName"
    EntityUsage="Feedback"
    AliasName="PAGE_NAME"
    DefaultValue="Feedback"/>
    <ViewAttribute
    Name="Severity"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="Severity"
    EntityUsage="Feedback"
    AliasName="SEVERITY"/>
    <ViewAttribute
    Name="InternalAction"
    PrecisionRule="true"
    EntityAttrName="InternalAction"
    EntityUsage="Feedback"
    AliasName="INTERNAL_ACTION"/>
    <ViewAttribute
    Name="FeedbackNote"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="FeedbackNote"
    EntityUsage="Feedback"
    AliasName="FEEDBACK_NOTE"/>
    <ViewAttribute
    Name="InternalNote"
    PrecisionRule="true"
    EntityAttrName="InternalNote"
    EntityUsage="Feedback"
    AliasName="INTERNAL_NOTE"/>
    <ViewAttribute
    Name="ReviewedBy"
    PrecisionRule="true"
    EntityAttrName="ReviewedBy"
    EntityUsage="Feedback"
    AliasName="REVIEWED_BY"/>
    <ViewAttribute
    Name="CreatedBy"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="CreatedBy"
    EntityUsage="Feedback"
    AliasName="CREATED_BY"/>
    <ViewAttribute
    Name="CreationDate"
    IsNotNull="true"
    PrecisionRule="true"
    EntityAttrName="CreationDate"
    EntityUsage="Feedback"
    AliasName="CREATION_DATE"/>
    <ViewAttribute
    Name="ActionDate"
    PrecisionRule="true"
    EntityAttrName="ActionDate"
    EntityUsage="Feedback"
    AliasName="ACTION_DATE"/>
    <ViewAttribute
    Name="AssignedTo"
    PrecisionRule="true"
    EntityAttrName="AssignedTo"
    EntityUsage="Feedback"
    AliasName="ASSIGNED_TO"/>
    </ViewObject>

  • Error While Generating Sequence Number. Contact your system Administrator

    Hi All,
    I have developed a form to provide our client with 'an easy to fill' User Interface. This form will be used instead of the standard form present in Business Suite.
    Some columns of the table, on which form is based, are getting populated via generation of sequence numbers.
    Now the problem is, after deploying custom form developed by me in the instance, Standard form is showing this error
    " Error While Generating the Sequence Number. Please contact the System Administrator "
    I am unable to trace why this error had started appearing..
    Any suggestions would be of great help...
    Thanks in Advance,..

    Forms version 6i,
    Database version 9.2.0.6.0
    Sequences which I am using are used there in Standard form also..
    So evrytime i need to save the record, I am selecting NEXTVAL of it into
    the respective item of the datablock..

  • How to populate sequence number automatically in fusion web application

    Hi all,
    I created simple fusion web application.
    I created a form which has programid and remaining fields are there.
    If i press save button program details will save in database.
    here i am giving programid manually. but i need to generate a sequence number to programid automatically.
    If i give program details and save for this program details one sequence number should be generate and save in databasePlease help me
    Thanks,
    raj

    Here there are two methods given
    1. Generating sequence number from the trigger
    2. another one is from java class.
    I tried two but i am not getting the sequence number.
    In my application under model project i have programview.
    i created CustomEntityEmpl java class.
    I double clicked on programid in attributes window, given some sequence name in name field,given db sequence name as as value.
    i mentioned name of sequence in Java class. but still it is asking a value when submiting the program details with out program id.
    please help ASAP
    Thanks
    Nag

  • Sequence number in process order

    Hi,
    Kindly brief about usage of sequence number, which is in process order with example. Is this can be used for capacity leveling. If so how that can be done.
    If one sequence number is assigned to multiple process orders means double entries, then what is the impact during capacity leveling based sequence number.
    Is number range is maintained any where in SPRO for sequence number. If so where? Is there any possibility to maintain number range for sequence number if required?
    Thanks & Regards,
    N. Laxman

    1.Seq. number in an order
    Number that can be assigned to production orders or planned orders at the level of the task list header and is therefore valid for all the operations in an order.
    The sequence number is used to  sort the orders for the display on the planning table and to
    form a dispatching sequence using the sort key.
    3.

  • Capacity Leveling in CM25 by Sequence Number in Planned Order

    Hello Gurus,
    I am having an issue with dispatching planned orders using tabular form.  We have to use the tabular form in order to be able to have our program select all planned orders.
    I have been testing and testing this trying to get it to work.  We have sequence numbers defined for our planned orders in the PLAF-SEQNR field.  When entering CM25, we are wanting to dispatch all of our planned orders at once and have them dispatched in the correct order by sequence number.  I have the Strategy Profile defined for Finite Scheduling, Plan. direction forwards, and no closing of gaps.  and I have my Dispatch Sequence layout key defined to only use the Sequence Number in the Planned Orders.
    We need to use the tabular form so we can select all planned orders.  I set up the requirements grouping to only include planned orders that are not yet dispatched.
    When I use the graphical form instead of tabular and I manually highlight all of the planned orders and dispatch then they are all in the correct order with all of the gaps are closed...which is what i want.
    However, I need to be able to do this using the tablular form.  No matter how I try to set up the strategy profile, it doesnt seem to work using tabular form.  They are dispatched according to start date with gaps in between the orders.
    Any help is greatly appreciated.
    I also have the following defined in Strategy Profile for Dispatching Control:
    Sort operation to be dispatched
    Consider operation sequence in the order
    Midpoint scheduling
    Thank you.
    Edited by: Kevin Gorman on Jan 14, 2009 8:19 PM
    Edited by: Kevin Gorman on Jan 15, 2009 3:26 AM

    Hi Vishal,
    I hope the below link will provide you need full information:
    http://help.sap.com/saphelp_470/helpdata/en/8a/a5a7674adc11d189740000e8322d00/content.htm
    Hope it clears your doubt.
    Regards,
    Madhu.G

  • Sequence number in a Order

    Hi,
    Can any body explain me regarding Sequence number in an assignement tab page of a Production Order.
    Under what circumstannces it is used and How?
    Regards,
    Prasad

    SAP help for this issue
    Seq. number order
    Number that can be assigned to production orders or planned orders at the level of the task list header and is therefore valid for all the operations in an order.
    Use
    The sequence number serves:
    To sort the orders for the display on the planning table and
    To form a dispatching sequence using the sort key.

Maybe you are looking for

  • How to control number of rows displayed in a report  by user?

    Hi All! I have provided a select list called 'Number of rows' in my report page.User can choose any number in the list, and accordingly he should be able to see so many number of rows in that report page. For example: if user selects 50 from the list

  • Web Server 7.0 Tech preview will not run J2EE tutorial samples

    The j2ee 1.5 (javaee5) stuff is servlet 2.5. Since this looks like tomcat 5 under the hood, no surprises, but it would be nice if this were more clearly documented. (No JSF 1.2 for me!) This is understandable, I guess. The j2ee1.4 stuff, however, is

  • Cannot Login After 10.4.8 Update!

    I just updated my Powerbook G4 Titanium to 10.4.8, and I can no longer login to my computer. My password uses normal characters, and when I enter it, the login screen disappears (as if the finder was going to load), and then it suddenly REAPPEARS, pr

  • "Media Services Are Not Available"

    I'm new...trying to get my photos off of my Blackberry Curve 8520 , and put some music on my Blackberry. I just installed the Blackberry Desktop Software.  On my Blackberry, under Options -> Memory I have Mass Storage Mode Support set to On, and Auto

  • Save manual ordering of images in a project?

    Hi there, I have a project with images from lots of different cameras which I have edited down ready for making up an Aperture book. I have also laboriously re-ordered the images, into rough "chapter" order. The little indicator at top left correctly