Sequence generation(urgent)

Hi
im new to jdev..I would like to set sequence generation for table fields.Im using JSp as my client and populating fields in the jsp screen.pls let me know is there any thing to set on wizard or any help in tutorial..thnks..

I'm assuming that you've added your code segment to EmpImpl.java.
The first parameter to SequenceImpl() should be the name of a database sequence, not the name of a table column.
Once you've changed that, if you still get the same error, you need to check whether EmpImpl.java has a method called setId(), since this is what your error is complaining about. Your entity should contain accessor (getter and setter) methods by default. If your entity doesn't have these methods, then edit the entity, select the Java tab in the Entity Object Wizard, and check "accessor methods" for the entity object class.
Lastly, I recommend testing your business components in the business component browser (aka the tester). This is a way of making sure your business logic works before you try to run your client.
Blaise

Similar Messages

  • Single image sequence generation. ?

    Hello, ..
    Essentially, I'm looking to find the best solution, to the idea of building sequences where and with using - importing, different sequencial, single images.
    — To be clearer perhaps, I'm a Weather student / enthusiast, and this would be toward generating a sequence / different sequences .. of hourly weather-satellite obtained images.
    To this point, or up until very recently, and in fact for several years previous, I have - in fact, been able to do this fairly simply, with using an older version of QuickTime (older logo, I think that main version offered still, through "Tiger".) and, with once I've dropped a first or more initial image more in particular, into the application, then merely dragging and dropping whichever others into its main viewer-window, checking save, and naming the file.
    — Perhaps, unorthodox. But, it's worked just fine for the idea.
    — And, of course, this idea can't be used with the newer version/s of QuickTime.
    "very recently": .... Today, and with having been using this method of "simple sequence" generation, together with older version of QuickTime, on my relatively new "iMac", and running Snow Leopard, Mac OS X v. 10.6.8 - all up to date, ....
    .. I've found that I'm no longer able to access the older version of the application.  (I think this advent, might be related to a "MacKeeper" clean-up that I did recently. ....)
    — In fact, the main reason that I can't say more exactly, which version it is - or was, in fact.
    Beyond this question more general, I'm thinking — (Something, I think that I'd read at one point in the past.) — that I can in fact do what I've suggested above, with / within QuickTime Pro.
    Hope this is clear - at all.
    Any help. ?
    Appreciate your response and time.

    Opening an "image sequence" (folder of sequentially named same dimension files) is a feature found only in QuickTime Player Pro.
    Beginning with Snow Leopard the OS includes QuickTime Player X (in Lion it is 10.1) in the Applications folder and QuickTime 7.6.6 is moved to the Utilities folder.
    QuickTime X has its own feature set but can't be upgraded to "Pro".

  • Sequence generation in Oracle RAC env. (Cached, non-ordered)

    Env: Oracle Env. 11G, Transaction Java Application
    How does CACHED, non-ordered sequence behave (for PK generation), here is the scenario,
    Cache size =10
    Node 1 Active - Records created 1,2,3 (3 records total in table)
    Node Changes - 2 is Active - Records created 11,12,13, 14 (7 records total in table)
    Node Changes - 1 is Active - Records created 21, 22 (or are sequences going to be 4, 5) (9 records total in table)
    Node Changes - 2 is Active - No new record added (9 records total in table)
    Node Changes - 1 is Active - 2 more Records created (9 recor11s total in table) - Is it going to be 23, 24 OR or is it going to be 6,7 OR or is it going to be 31, 32 (9 records total in table)
    Please help with accurate generated seq numbers (PKs) for 9 records.
    Also, What happens to PK numbers at:
    * shutdown
    * hotbackup
    * mirroring whole schema or database to another separate db using storage mirroring
    * mirroring whole schema or database to another separate db using datapump
    How about using cached, ordered sequences to start with and change to no-order if needed for performance reasons
    -D

    A necessary problem solving skill in the Oracle environment is the ability to experiment. A couple of minutes constructing a simple test is better than hours of speculation:
    jw1> create sequence s1;
    Sequence created.
    jw1> select s1.nextval from dual;
      NEXTVAL
            1
    jw1> /
      NEXTVAL
            2
    jw1> conn sys/oracle@jw2 as sysdba
    Connected.
    jw2> select s1.nextval from dual;
      NEXTVAL
            21
    jw2> select s1.nextval from dual;
      NEXTVAL
            22
    jw2> conn sys/oracle@jw1 as sysdba
    Connected.
    jw1> select s1.nextval from dual;
      NEXTVAL
            3
    jw1> select s1.nextval from dual;
      NEXTVAL
            4
    jw1> exit
    Disconnected from Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Advanced Analytics and Real Application Testing options
    [oracle@berlin1 ~]$ srvctl start instance -db jw -instance jw1 -startoption force
    [oracle@berlin1 ~]$ sqlplus sys/oracle@jw1 as sysdba
    SQL*Plus: Release 12.1.0.1.0 Production on Sat Aug 16 10:40:40 2014
    Copyright (c) 1982, 2013, Oracle.  All rights reserved.
    Connected to:
    Oracle Database 12c Enterprise Edition Release 12.1.0.1.0 - 64bit Production
    With the Partitioning, Real Application Clusters, Automatic Storage Management, OLAP,
    Advanced Analytics and Real Application Testing options
    jw1> select s1.nextval from dual;

  • Sequence Generation on Oracle Client

    Hi...
    We have to create sequences on the oc4j client with the format <mobileuser name><date stamp><sequence number>.How do we get the mobileuser name from the mobile client authentication.Can u please tell us the API to login the mobile client and how it can be passed on to include in the sequence.
    Thanks in Advance....

    You need to place that code where ever you are creating your user session object. I don't know the architecture you are using so I really can't tell you exactly where to place it.
    http://download-uk.oracle.com/docs/cd/B19188_01/doc/B15920/nvappdev.htm
    Here is what the documentation has on the subject:
    <blockquote>
    7.2.4.3.2 Web-to-Go User Context
    Web-to-Go creates a user context (or user profile) for every user who logs in to Web-to-Go. Web applications always run within the user's specific context. Servlets, which are always part of an application, can use the user context (in which it is running) to access the services provided by Web-to-Go. The user context can then be used to obtain the following information.
    Name of the user
    Mode the user is running in (online or offline)
    Application that a user is accessing
    The database connection
    Roles that the user has for this application
    Name or value pairs stored in the registry for the user
    Servlets can access the user profile through the standard named java.security.Principal obtained through the getUserPrincipal method of the javax.servlet.http.HttpServletRequest class.
    This object can also be obtained from the HttpSession object. For example,
    public void doGet(HttpServletRequest request, HttpServletResponse response)
    throws ServletException, IOException{
    // Retrieve the database connection from the User Profile,
    // which can be accessed from the HttpRequest
    HttpSession session = request.getSession(true);
    OraUserProfile profile = (OraUserProfile)session.getAttribute("x-mobileserver-user");     
    7.2.4.3.3 Database Connectivity in Java Code
    Servlets can obtain a connection to the Oracle database, using the following statement.
    HttpSession sess = request.getSession();
    WTGUser user = (WTGUser)sess.getAttribute("x-mobileserver-user");
    Connection conn = user.getConnection() ;
    </blockquote>

  • Sequence generation issue

    Hi , I am working in Healthcare industry . we have a claim and payment matching process . Every day 1.5 million payments get matched with 70 million claims and the matched payments are stores in some output table . After matching, an oracle seqence number is generated for each matched record and that is the primary key for the output table.
    Match query will be like this,.
    Select seqeunce1.nextval,a.column1,a.column2,b.coulmn1,b.column2 from claim_table a, payment_table b
    where a.column3=b.column3
    We are facing some seqence problem here. some sequence are missed during the first day and the missed sequnces are getting generated in the second day.
    Sequence Query:
    CREATE SEQUENCE ERA_CLAIM_MATCH_S
    START WITH 1
    MAXVALUE 999999999999999999999999999
    MINVALUE 1
    NOCYCLE
    CACHE 500
    NOORDER;
    Example to demonstrated the problem:
    Day 1(15th July) : sequence generated from 1 to 1000000 (some sequence are missed in between)
    Day2 (16th July) : sequence generated from 2500 to 2000000 (some missed sequence in day 1 are generated here)
    Our database in in RAC system.

    Hemant K Chitale wrote:
    I think that the question is : If the highest value generated on Day 1 was 1000000,  how could a value of 2500 be generated on Day 2 ?
    Shouldn't happen if the Sequence is a NOCYCLE.Hemant, but that is possible if Day 1's processing used the sequence on RAC instance 1 - whereas on Day 2, RAC instance 2 (with unused cached sequences from yesterday) is used.
    E.g.
    // on node 1
    SQL> create sequence testseq start with 1 increment by 1 nomaxvalue nocycle;
    Sequence created.
    SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
       NEXTVAL INSTANCE
             1 dev_1
    // on node 4
    SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
       NEXTVAL INSTANCE
            21 dev_4
    // on node 1, use the sequence a couple of times
    SQL> declare i integer; begin loop i := testseq.nextval(); exit when i > 100000; end loop; end;
      2  /
    PL/SQL procedure successfully completed.
    SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
       NEXTVAL INSTANCE
        100002 dev_1
    SQL>
    // on node 4, check the sequence
    SQL> select testseq.nextval, sys_context( 'user', 'instance_name' ) as instance from dual;
       NEXTVAL INSTANCE
            22 dev_4

  • Sequence Generation

    Hi,
    I want to generate a sequence of numbers daily remebering where the last sequence number was from the day before.
    Is there a straight solution in lieu of using a JDBC solution.
    Can somebody help on this and give some clarity.

    Hi ,
    I guess by having a counter object ,storing the current sequence in it,and using persistence u can acheive the same.
    But i wud have gone for a database storage.

  • Next Sequence number - Urgent help

    I have to pass in a sequence number in my method.
    The sequence number is the order an attribute should appear in relative to other attributes in this Address object.
    Can anyone help in how i am to do this.....i am confused!!
    Ta
    Sammy

    Sorry if i confused you.
    I have an object which contains attributes that are dislayed. On the UI the user can add an attribute to that object.
    Eg: Address object, it has attributes, line1, line2, town, postcode. The user can add an attribute called county to the object.
    My address object contains a parmeter called sequecene. So when the attribte is added, it should be added to the next sequence- so for teh example above it would be sequence no 5. So i think i need to work out the maximum sequence number of the contained attributes in the object.......but not sure how to do this.
    Any help would be appreicated.
    Thanks
    Sammy

  • DB Adapter Multi Table sequence generation through a procedure call

    Hi,
    I am trying to insert data into multiple tables (master/detail) .The proble I am facing is I need to insert data in such a way that the primary key column should be substitued by the value returned by a procedure/function .
    So I cannot use native sequencing as well for the primary key. Do let me know if anyone has done this before or anyone has any suggestions on this
    Thanx

    here is some sample code for and object type for a simple PO.
    create or replace type xxsoa_poline_inbnd_row_type as object
    ( LINE_NUMBER NUMBER
    , ITEM_DESCRIPTION VARCHAR2(400)
    , ITEM VARCHAR2(100)
    , ITEM_ID NUMBER
    , UNIT_OF_MEASURE VARCHAR2(10)
    , LIST_PRICE NUMBER
    , UNIT_PRICE NUMBER
    , QUANTITY NUMBER
    , PO_NUMBER VARCHAR2(10)
    grant all on xxsoa_poline_inbnd_row_type to apps;
    create or replace public synonym xxsoa_poline_inbnd_row_type for xxsoa.xxsoa_poline_inbnd_row_type;
    create or replace type xxsoa_poline_inbnd_rec_type as varray(9999) of xxsoa_poline_inbnd_row_type;
    grant all on xxsoa_poline_inbnd_rec_type to apps;
    create or replace public synonym xxsoa_poline_inbnd_rec_type for xxsoa.xxsoa_poline_inbnd_rec_type;
    create or replace type xxsoa_poheader_inbnd_row_type as object
    ( PO_NUMBER VARCHAR2(10)
    , VENDOR_NAME VARCHAR2(100)
    , VENDOR_ID NUMBER
    , VENDOR_SITE VARCHAR2(100)
    , VENDOR_SITE_ID NUMBER
    , SHIP_TO_LOCATION VARCHAR2(100)
    , SHIP_TO_LOCATION_ID NUMBER
    , BILL_TO_LOCATION VARCHAR2(100)
    , BILL_TO_LOCATION_ID NUMBER
    , ORG_ID NUMBER
    , AGENT_NAME VARCHAR2(100)
    , AGENT_ID NUMBER
    , APPROVED_DATE DATE
    , COMMENTS VARCHAR2(400)
    , STATUS VARCHAR2(10)
    , PO_LINE xxsoa_poline_inbnd_rec_type
    grant all on xxsoa_poheader_inbnd_row_type to apps;
    create or replace public synonym xxsoa_poheader_inbnd_row_type for xxsoa.xxsoa_poheader_inbnd_row_type;
    create or replace type xxsoa_po_inbnd_rec_type as varray(1000000) of xxsoa_poheader_inbnd_row_type;
    grant all on xxsoa_po_inbnd_rec_type to apps;
         create or replace public synonym xxsoa_po_inbnd_rec_type for xxsoa.xxsoa_po_inbnd_rec_type;
    create or replace type xxsoa_po_inbnd_type as object (
    po_rec xxsoa_po_inbnd_rec_type
    grant all on xxsoa_po_inbnd_type to apps;
         create or replace public synonym xxsoa_po_inbnd_type for xxsoa.xxsoa_po_inbnd_type;
    cheers
    James

  • Sequence generation automatically

    Hello,
    I don't if I'm wrong or I'm unable to find how: I'd like to generate sequences for primary keys in a database. I can generate the sequences but I do not find the way to trigger it automatically.
    Does anyone know if Designer generates the whole pack: sequence and trigger or do I have to write the trigger manually and associate it with the sequence?
    Thank you for help.

    Hi,
    Once you have generated the table and the sequence, generate the Table API for that table with the "Generate Table API Triggers" checkbox selected.
    This will create and generate the triggers.
    And if you are generating Form modules whose blocks are based on that table, your next step is to generate the Module Component API.

  • Wrong MRP generation-Urgent

    Issue: - Wrong MRP generation.
    We use to receive the 6 month rolling plan from the customer in the form of Excel sheet. Then our marketing team feed the day wise plan in SAP under Sales Operation plan under TCode(MC82).
    The main issue is some time by mistake marketing team uploads the full month requirement in one day only. When MRP runs then the material requirement planning gets affected majorly.
    To bring the ownership in marketing department, we want to put a workflow system on TCode(MC82).
    Eg:-
    SOP Upload-- SOP Reviewed--
    SOP
    Approved----
    MRP Run.
    Please suggest, How can we implement such system on the T Code MC82.
    Regards
    Vivek K. Sharma

    Uploading some values in MC82 will only have impact on MRP when it is transferred to DM eg: by MC75
    So before you transfer why not review the details in MC75 by doing an on-line transfer instead of invisible or background schedule?
    If you wish to manage this as a workflow, then you will need to get in touch with a workflow consultant or maybe the workflow forum would be able to provide guidance for you.

  • Sequence  generation problem

    hi,
    Sequence values are not generated properly if the session is changed .
    thank you

    808542 wrote:
    Sequence values are not generated properly if the session is changed .
    Incorrect. They are generated properly since they are always unique.

  • Change in Request type and different sequences generation for Req. Type

    Dear All,
    We have the following requisition types in the Requisition Form:
    1. Purchase Requisition
    2. Internal Requisition
    We would like to divide the Internal Requisition to:
    Internal Requisition from Branches and
    Internal Requisition from Departments/Sections
    I found that these values are available in FND_LOOKUPS table.
    Is it possible for us to make this change, through the Application Developer..?
    If the above change is possible, then based on the requisition type selection, it should generate a different sequence number.
    Is this possible without customization..?
    Please update...
    Many thanks in advance..
    Edited by: santark on Jan 20, 2010 4:03 AM

    Is it possible for us to make this change, through the Application Developer..?I dont know if one can change or not but I would suggest not to try and do internal changes
    If the above change is possible, then based on the requisition type selection, it should generate a different sequence number.
    what you can do is open a DFF at header level,make a number series auto generate which could be a context sensitive DFF ..depending on what type of requisiton is being made, Internal or standard..if internal, u can classify the numbering series too..this type of customization is achievable
    Hope this helps
    Please mark the thread as useful or answered if it is
    Emm
    www.teknofunctional.com

  • Fetch out of sequence ERROR - urgent

    Hi guys ..
    If i try to run the program i am getting an error message as
    java.sql.SQLException: ORA-01002: fetch out of sequence at oracle.jdbc.dbaccess.DBError.throwSqlException(DBError.java:169)
    will u pl help me how to solve this
    import java.sql.*;
    import oracle.sql.*;
    import oracle.jdbc.driver.*;
    import java.io.*;
    class LOBTest
         public static void main(String str[])
              try
                   DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
                   Connection con = DriverManager.getConnection("jdbc:oracle:thin:spk/[email protected]:1521:spk");
                   Statement stmt = con.createStatement();
                   ResultSet rs = stmt.executeQuery("select temp from blobtest where no = 1 for update");
                   BLOB bl = null;
                   if(rs.next())
                        bl = ((OracleResultSet)rs).getBLOB(1);
                             FileInputStream ins = new FileInputStream("map.gif");
                             byte br[]= new byte[ins.available()];
                             ins.read(br);
                             bl.putBytes(0,br);
              }catch(Exception ept)
                   ept.printStackTrace();
                   System.out.println(ept);
    }

    from the Oracle docs:
    "ORA-01002: fetch out of sequence
    Cause: In a host language program, a FETCH call was issued out of sequence. A successful parse-and-execute call must be issued before a fetch. This can occur if an attempt was made to FETCH from an active set after all records have been fetched. This may be caused by fetching from a SELECT FOR UPDATE cursor after a commit. A PL/SQL cursor loop implicitly does fetches and may also cause this error.
    Action: Parse and execute a SQL statement before attempting to fetch the data. "
    taken from:
    http://technet.oracle.com/doc/server.804/a58312/newch221.htm#16189
    Solution:
    when you use "for update" in your select statement you must set the connection's auto commit to false--> Connection.setAutoCommit(false);
    Jamie

  • Parent/Child BC4J Entity Object Sequence # Generation

    If anyone can help us in this we greatly appreciate it. We are using DBSequence data type to poplulate the parent entity with the sequence #; however, we need to populate the child entity with the same sequence #.
    We have a DB Trigger for every insert of the parent's key and it's working great but what do we need to do for populating the child record.
    Is there a way to get the sequence # as a part of the this code for the child entity object.
    protected void create(AttributeList attributeList)
    super.create(attributeList);
    SequenceImpl mySeq = new SequenceImpl("MY_SEQ",getDBTransaction());
    setMyObjectId(mySeq.getSequenceNumber());
    Thank you,
    Kamran

    Well,
    I still can't insert the parent's primary key as a forign key automatically. Like in the Dept/Emp situation, I need to setup the supporting Impl files so it would insert the Dept No automatically as a part of the Employee creation.
    New info : Here is a sample of what I am trying to accomplish. Sorry I could
    have been more clear:
    I am sending you my Workspace using Scott's table Dept and Emp. In my JSP file,
    The user needs to input the Department information and some of the Employee
    info, but the same deptno generated for the Dept record needs to be populated
    for the Employee at the time of submit.
    Please let me know if you need anything else.
    Thank you,
    Kamran
    Creat_Emp.jsp
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <%@ page contentType="text/html;charset=windows-1252"%>
    <HTML>
    <HEAD>
    <META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=windows-1252">
    <TITLE>
    Hello World
    </TITLE>
    </HEAD>
    <BODY>
    <jbo:ApplicationModule id="Mypackage2Module"
    configname="mypackage2.Mypackage2Module.Mypackage2ModuleLocal"
    releasemode="Stateful" />
    <jbo:DataSource id="Dept" appid="Mypackage2Module" viewobject="DeptView" />
    <jbo:DataSource id="Emp" appid="Mypackage2Module" viewobject="EmpView" />
    <jbo:Row id="myrow" datasource="Dept" action="Create" >
    <jbo:SetAttribute dataitem="*" />
    </jbo:Row>
    <jbo:Row id="myrow5" datasource="Emp" action="Create" >
    <jbo:SetAttribute dataitem="*" />
    </jbo:Row>
    <form NAME="sForm" action="Submit.jsp" >
    <td><h3> DAAO <br> New Dept Entry Screen</h3></td>
    <tr>
    <TABLE bgColor="#c0c0c0" cellspacing="0" cellpadding="0" border="0" frame="box"
    style="WIDTH: 530px; HEIGHT: 34px" >
    <TR>
    <TD><font color=darkyellow >Dept No:<br><jbo:InputText datasource="Dept"
    dataitem="Deptno" ></jbo:InputText></TD>
    <TD><font color=darkyellow >Dept Name:<br><jbo:InputText datasource="Dept"
    dataitem="Dname" ></jbo:InputText></TD>
    <TD><font color=darkyellow >Dept Location:<br><jbo:InputText datasource="Dept"
    dataitem="Loc" ></jbo:InputText></TD>
    </TABLE>
    <TABLE bgColor="#c0c0c0" cellspacing="0" cellpadding="0" border="0" frame="box"
    style="WIDTH: 530px; HEIGHT: 34px" >
    <TR>
    <TD><font color=darkyellow >Emp Dept No:<br><jbo:InputText datasource="Emp"
    dataitem="Deptno" ></jbo:InputText></TD>
    <TD><font color=darkyellow >Emp Id<jbo:InputText datasource="Emp"
    dataitem="Empno" ></jbo:InputText>
    <TD><font color=darkyellow >Emp Name:<br><jbo:InputText datasource="Emp"
    dataitem="Ename" ></jbo:InputText></TD>
    <TD><font color=darkyellow >Emp Job:<br><jbo:InputText datasource="Emp"
    dataitem="Job" ></jbo:InputText></TD>
    </TR>
    </TABLE>
    <TABLE bgColor="#c0c0c0" cellspacing="0" cellpadding="0" border="0" frame="box"
    style="WIDTH: 530px; HEIGHT: 34px" >
    <TR>
    <TD><font color=darkyellow >Emp Mgr:<br><jbo:InputText datasource="Emp"
    dataitem="Mgr" ></jbo:InputText></TD>
    </TABLE>
    <input name="RowKeyValue" type="hidden" value="<jbo:ShowValue
    datasource="Emp" dataitem="RowKey"/>" />
    <input type="submit" value="Save" /> <input type="reset" value="Clear
    Screen"/> <input type="BUTTON" value="Q&A" onClick="Create_new_qa.jsp">
    </form>
    <form NAME="qForm" action="Create_New_Qa2.jsp" ></TD>
    <input type="submit" value="Q&A" />
    </form>
    </body>
    <jbo:ReleasePageResources releasemode="Stateless" />
    </html>
    Here is the submit.jsp
    <%@ page language="java" contentType="text/html;charset=WINDOWS-1252" %>
    <html xmlns:jbo="foo">
    <body>
    <center>
    <br>
    <%@ taglib uri="/webapp/DataTags.tld" prefix="jbo" %>
    <br>
    <jbo:ApplicationModule id="Mypackage2Module" configname="mypackage2.Mypackage2Module.Mypackage2ModuleLocal" releasemode="Stateful" />
    <jbo:DataSource id="Dept" appid="Mypackage2Module" viewobject="DeptView" />
    <jbo:DataSource id="Emp" appid="Mypackage2Module" viewobject="EmpView" />
    <jbo:Row id="myrow" datasource="Dept" action="create" >
    <jbo:SetAttribute dataitem="*" />
    </jbo:Row>
    <jbo:Row id="myrow5" datasource="Emp" action="Create" >
    <jbo:SetAttribute dataitem="*" />
    </jbo:Row>
    <%
    try
    %>
    <jbo:PostChanges appid="Mypackage2Module" />
    <jbo:Commit appid="Mypackage2Module"/>
    <p><font face="Arial, Helvetica, sans-serif"><b><font color="006699">DAAO Case Saved Successfully! </b></font></font> </p>
    <%
    catch(Exception exc)
    %>
    <title>this page will be displayed</title>
    <meta http-equiv="Content-Type" content="text/html; charset=gb2312">
    </head>
    <body bgcolor="#FFFFFF">
    <h1> Attenion the following error has occured:</h1><br>
    <%
    String error_msg = exc.getMessage();
    if(exc instanceof oracle.jbo.JboException)
    oracle.jbo.JboException jboex = (oracle.jbo.JboException)exc;
    String sMsg = jboex.getDetailMessage();
    out.println("<center>JBO Error:" + sMsg + "</center>");
    // grab exception object. type cast to jbo object then get details
    // parse details for specific error
    Object[] details = jboex.getDetails();
    if ( sMsg.startsWith("JBO-26041") )
    if (
    (details !=null)
    && (details.length >0 )
    && (details[0] instanceof java.sql.SQLException )
    java.sql.SQLException sourceException = (java.sql.SQLException)(details[0]);
    int sqlErrorCode = sourceException.getErrorCode();
    if (sqlErrorCode == 1400)
    out.println("<br><br><b><font color=\"006699\">One or more of the following required fields (Labeled in Red) have not been entered: </b></font></center><b>");
    else
    out.println("<br><br><b><font color=\"006699\"> Already exist on our system!! </b></font></center><b>");
    if ( sMsg.startsWith("JBO-26041") )
    else // unknown JBO exception
    } //JBO exception instance
    %>
    <jbo:ReleasePageResources releasemode="Stateless"/>
    <%
    return;
    %>
    <br>
    <br>
    <form action="main.html" method= onclick><input type="submit" value="Back to Main"></form>
    </center>
    </body>
    <jbo:ReleasePageResources releasemode="Stateless"/>
    </html>

  • Serial/Sequence Generation in INFORMIX

    Hello Friends,
    How can a sequence number be generated in INFORMIX? Its known that there is SERIAL
    column... But, is there any way to get this done as below:
    func()
    id=get_next_id();
    EXEC SQL insert into table1 values (id, ...);
    get_next_id()
    EXEC SQL select .......I don't know what should come here???
    return..
    This is possible in Oracle as u can read the next value from a sequence. Does
    Informix also provide some such functionality??
    Thanks for ur time and answers.
    Best Regards
    MS

    As far as I know, you can't. The serial is a property of the table. The new value
    is created when you insert a row in the table.
    (In fact you can force a value in the column, as long as it does not violate the
    UNIQUEness constraint).
    The engine will always try to take the next value, except when that is already
    present. On startup it takes the highest value in the column + 1.
    The serial is returned in the error structure (forgot the name for the moment)
    after the insert, so you can use it for other updates.
    The mechanism is less flexible than Oracle's, but automatic (as no separate select
    is necessary), KISS like.
    Regards
    "Manoj SASIDHARAN" <[email protected]> wrote:
    >
    Hello Friends,
    How can a sequence number be generated in INFORMIX? Its known that there
    is SERIAL
    column... But, is there any way to get this done as below:
    func()
    id=get_next_id();
    EXEC SQL insert into table1 values (id, ...);
    get_next_id()
    EXEC SQL select .......I don't know what should come here???
    return..
    This is possible in Oracle as u can read the next value from a sequence.
    Does
    Informix also provide some such functionality??
    Thanks for ur time and answers.
    Best Regards
    MS

Maybe you are looking for

  • Getting an error while installing Solution Manager 7.0

    I'm tring to install Solutionmanger 7 SR2 on a windows 2003 32bit Server. and facing this issue. I have US_export_policy.jar and local_policy.jar are installed properly. But still getting following issue... SAP Secure Store in the File System - Copyr

  • How do you add a link to a .swf file?

    Is there a way to add a link/URL to a .swf file, without embedding into the original .fla file? Is there any way to do that with just the .swf file alone, and without actually editing the .fla or re-creating it?

  • How to change destination table dynamically in configuration file in ssis?

    hello,         i have a package i am having one data flow task.in data flow task i have one source and one destination.source and destination are different.i have created xml configuration file by configuring source and destination connection strings

  • Objects Overlay within Flex (foreground/background)

    Hello, I am new to flex programming so please forgive me if this question is out of place, newbish or just plain stupid. Within my flex application, I want to change to a veiw, and in that view I want to expand a panel, so that it fills the majority

  • Retaining Column width after screen refresh in Web Excel

    Hi, We have allowed the users to control the width of the cells in Web Excel, while still retaining the lock on the sheet.  I was wondering if anyone has created something that retains the width of the cells after the user has pressed refresh or save