Disabling save message when leaving a database data block

Hi all,
im using Forms 6i
I have two data blocks that are database blocks, then the user opens an excel file and a function starts filling the forms with data obtained form the file.
If i only fill one block there is no problem, but if i start filling the two when i leave one block with go_block it asks me to save the changes.... is it possible to disable that message and then when the procedure finish filling the two blocks the user can commit changues with F10?
Best Regards,

try POST before going to next block !

Similar Messages

  • Problem updating to iphoto 9.6 after upgrading to Yoesmite  I am getting the following message when I try top date iPhoto This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canc

    problem updating to iphoto 9.6 after upgrading to Yoesmite  I am getting the following message when I try top date iPhoto This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or canc

    "This update is not available for this Apple ID either because it was bought by a different user or the item was refunded or cancelled." ?
    This error message will appear erraneously, if you skipped the update to Mavericks and iPhoto 9.5.1 and went straight from an earlier MacOS X version to Yosemite, without first updating to iPhoto 9.5.1 and associating iPhoto to your AppleID.
    Try first to buy iPhoto with your AppleID instead of updating. Delete iPhoto from Applications, but don't empty the Trash, then go to the main page of the App Store and search for iPhoto. If you are lucky, it will show as free and you can buy it directly.
    If iPhoto  is not showing as free, there is no help but contacting the App Store Support: Ask for a redemption code. You will need to provide a prove of purchase for your mac with iPhoto preinstalled.
    http://www.apple.com/support/mac/app-store/contact/

  • How to save message when getting "email not responding"

    how to save message when getting "email not responding"

    How could you even know if you have a message if the email account isn't responding?
    Quit the mail app and reboot your iPad.
    Tap the home button once. Then tap the home button twice and the recents tray will appear at the bottom of the screen. Tap and hold down on any app icon until it begins to wiggle. Tap the minus sign in the upper left corner of the mail icon. Tap the home button twice.
    Reboot the iPad by holding down on the sleep and home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider if it appears on the screen - let go of the buttons. Let the iPad start up.

  • I am continually getting this error message when trying to up-date software for: iTunes and iPhoto:The operation couldn't be completed. (NSURLErrorDomain error -1012.)

    I am continually an error message when trying to up-date iPhoto and iTunes. Does anyone have any suggestions, please?

    Hello Linc. These are the logs to the last attempts at up-dating iTunes.
    Sep  8 18:10:59 iMac.local Software Update[1722]: SoftwareUpdate: Scan for client pid 1722 (/Applications/App Store.app/Contents/MacOS/App Store)
    Sep  8 18:11:02 iMac.local Software Update[1722]: Failed Software Update - Refusing invalid certificate from host: swscan.apple.com
    Sep  8 18:11:04 --- last message repeated 1 time ---
    Sep  8 18:11:04 iMac.local Software Update[1722]: SoftwareUpdate: Error encountered in scan: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x7fd9a8cfae70 {NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog, NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog}
    Sep  8 18:11:04 iMac.local Software Update[1722]: SUAppStoreUpdateController: scan (f=0, c=1, p=1, r=1) got error The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    Sep  8 18:11:17 iMac.local Software Update[1722]: SUAppStoreUpdateController: proceed with scan based on intervening install (including Unity Web Player at 2013-07-23 17:32:38 +0000) (last scan: 2013-03-11 16:00:20 +0000)
    Sep  8 18:11:17 iMac.local Software Update[1722]: SoftwareUpdate: Scan for client pid 1722 (/Applications/App Store.app/Contents/MacOS/App Store)
    Sep  8 18:11:19 iMac.local Software Update[1722]: Failed Software Update - Refusing invalid certificate from host: swscan.apple.com
    Sep  8 18:11:22 --- last message repeated 1 time ---
    Sep  8 18:11:22 iMac.local Software Update[1722]: SoftwareUpdate: Error encountered in scan: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x7fd9a98c2090 {NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog, NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog}
    Sep  8 18:11:22 iMac.local Software Update[1722]: SUAppStoreUpdateController: scan (f=0, c=1, p=1, r=1) got error The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    Sep  8 18:11:39 iMac.local installd[1728]: installd: Exiting.
    Sep  8 18:14:15 iMac.local Software Update[1751]: SUAppStoreUpdateController: found in cache: <none>
    Sep  8 18:14:16 iMac.local installd[1757]: installd: Starting
    Sep  8 18:14:16 iMac.local installd[1757]: installd: uid=0, euid=0
    Sep  8 18:14:16 iMac.local Software Update[1751]: SUAppStoreUpdateController: proceed with scan based on intervening install (including Unity Web Player at 2013-07-23 17:32:38 +0000) (last scan: 2013-03-11 16:00:20 +0000)
    Sep  8 18:14:16 iMac.local Software Update[1751]: SoftwareUpdate: Scan for client pid 1751 (/Applications/App Store.app/Contents/MacOS/App Store)
    Sep  8 18:14:19 iMac.local Software Update[1751]: Failed Software Update - Refusing invalid certificate from host: swscan.apple.com
    Sep  8 18:14:21 --- last message repeated 1 time ---
    Sep  8 18:14:21 iMac.local Software Update[1751]: SoftwareUpdate: Error encountered in scan: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x7f9391840bf0 {NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog, NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog}
    Sep  8 18:14:22 iMac.local Software Update[1751]: SUAppStoreUpdateController: scan (f=0, c=1, p=1, r=1) got error The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    Sep  8 18:14:22 iMac.local Software Update[1751]: SUAppStoreUpdateController: proceed with scan based on intervening install (including Unity Web Player at 2013-07-23 17:32:38 +0000) (last scan: 2013-03-11 16:00:20 +0000)
    Sep  8 18:14:22 iMac.local Software Update[1751]: SoftwareUpdate: Scan for client pid 1751 (/Applications/App Store.app/Contents/MacOS/App Store)
    Sep  8 18:14:25 iMac.local Software Update[1751]: Failed Software Update - Refusing invalid certificate from host: swscan.apple.com
    Sep  8 18:14:27 --- last message repeated 1 time ---
    Sep  8 18:14:27 iMac.local Software Update[1751]: SoftwareUpdate: Error encountered in scan: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x7f93904b5c00 {NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog, NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog}
    Sep  8 18:14:27 iMac.local Software Update[1751]: SUAppStoreUpdateController: scan (f=0, c=1, p=1, r=1) got error The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    Sep  8 18:14:36 iMac.local Software Update[1751]: SUAppStoreUpdateController: proceed with scan based on intervening install (including Unity Web Player at 2013-07-23 17:32:38 +0000) (last scan: 2013-03-11 16:00:20 +0000)
    Sep  8 18:14:36 iMac.local Software Update[1751]: SoftwareUpdate: Scan for client pid 1751 (/Applications/App Store.app/Contents/MacOS/App Store)
    Sep  8 18:14:38 iMac.local Software Update[1751]: Failed Software Update - Refusing invalid certificate from host: swscan.apple.com
    Sep  8 18:14:41 --- last message repeated 1 time ---
    Sep  8 18:14:41 iMac.local Software Update[1751]: SoftwareUpdate: Error encountered in scan: Error Domain=NSURLErrorDomain Code=-1012 "The operation couldn’t be completed. (NSURLErrorDomain error -1012.)" UserInfo=0x7f93904b7340 {NSErrorFailingURLKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog, NSErrorFailingURLStringKey=https://swscan.apple.com/content/catalogs/others/index-mountainlion-lion-snowleo pard-leopard.merged-1.sucatalog}
    Sep  8 18:14:41 iMac.local Software Update[1751]: SUAppStoreUpdateController: scan (f=0, c=1, p=1, r=1) got error The operation couldn’t be completed. (NSURLErrorDomain error -1012.)
    Many thanks.
    Cropper100.

  • How do you disable i messaging when switching to a non iphone?

    How do you disable i messaging when switching to a non iphone?

    Nope, that doesn't actually do the trick.  It might keep i messages from going to your i phone but still won't allow them to go to your new device. 

  • Using a second table in a Database Data Block ??

    In a Form, I have a Data Block which is a Database Data Block. The Items are associated with columns in a table.
    I want the items in this repeating block to show in a different order. To do this, I need to use a second table and say where table1.key = table2.key ....
    I keep getting problems at runtime with
    ORA-00918: column ambiguously defined
    I tried to qualify everywhere a column name is used. When I do show error it shows
    SELECT ROWID, ....
    And then the "column ambiguously defined".
    I do not have an item in my Form for ROWID. Maybe it is automatic. (This form DOES do update).
    Is it possible to use two tables in a Data Block like this?
    Thanks

    If you only need to order the records in the block, why not defining the "ORDER BY" clause in the block's property??
    Set the "ORDER BY" clause at design time from the property palette of the block or runtime with column of your choice.
    at runtime your can use:
    SET_BLOCK_PROPERTY('your_block', ORDER_BY, 'your_column');If you need to join to tables in one block read the [Block Based on Join|http://www.oracle.com/technology/products/forms/pdf/BlockOnAJoin.pdf] Documentation.
    Tony

  • How to insert multiple data to non database data block?

    Hi all,
    I'm new in using form builder. I have a question about insert multiple data to non database data block.
    I want to upload a csv file that content the attendance transaction of all of employees. If the employee in that
    file doesn't exist in that company,so I must record the employee number into non database data block.
    If I just upload one employee data, I can record it to that data block. But, if more than one, it didn't works.
    May you help me?
    Thanks..
    Tika

    you might need a NEXT_RECORD or CREATE_RECORD to go to the next reord in that block. It would be easier to help if we knew your code.

  • How to promt user to save changes when changing non-database fields?

    Hi,
    I have a form with two tabs. The datablock Block_1 on tab_2 is based on a database view. But all the displayed items of Block_1 are non-database items. Whenever a user changes some items in Block_1 and presses save button, the values from non_db items get copied to the db_items (based on view) and commit_form is called. This works fine.
    But the problem here is: after changing some items in block_1, if the user navigates to some other option/form from the menu , the form doesnt promt the user to 'save the changes' and all the changes made are lost. How can I fix that?
    I have a form level key-exit trigger, (which does not fire) with following code :-
    Declare
      X  Number;
      alert_is             alert;
    Begin
    If :System.Mode = 'ENTER-QUERY' Then
           Exit_Form;
    Else
      If :System.Form_Status In ('NEW','QUERY') Then
           alert_is := FIND_ALERT('TMPL_EXIT'); -- "Are you sure you want to exit?"
        X := Show_Alert('TMPL_EXIT');
        If X = Alert_Button1 Then
           Exit_Form(no_validate);
        End If;
        Else
           Exit_Form;
      End If;
    End If;
    End;

    Slava Natapov wrote:
    Samita wrote:
    Whenever a user changes some items in Block_1 and presses save button, the values from non_db items get copied to the db_items (based on view) and commit_form is called. Try to copy values to the db_items not in save button, but in WHEN-VALIDATE_ITEM of non_db items.- I created the non-db items becoz, it was asking me 'Do you want to save changes', even when I only queried data from the view (becoz i was doing some computations while displaying the items. and the form assumed that the DB items were begin changed ). Inorder to get rid of that problem, i used mirror_items (non-db) for all the db items.
    So under this scenario, when i copy values to the db_items in WHEN-VALIDATE_ITEM trigger of non_db items, the form considers the db_items are changed and asks 'Do you want to save changes' even when the user has not made any changes and only queried data.
    Edited by: Samita on Dec 9, 2009 10:12 AM

  • Two rows instead of one in the database when form with 2 data blocks.

    Hi All,
    I have created a form having 2 data blocks
    data block one to populate table A
    data block two to populate table B .
    now when i save the data after pressing the save option ....i find 2 records instead of one in the database table A and Table B.
    it should have been just one per table ....can some one suggest pls
    Sunny

    ok : step by step :
    do you have a trigger created named "ON-INSERT" on
    the block?Many thanks for your support....
    I do not have an ON-insert trigger.....
    I will explain my scenerio.....
    I have 2 data blocks one-below the other in the form
    accessing 2 different tables....
    now on the canvas of this form I have added a
    button....and on that button i have written a trigger
    'when-button-pressed' Trigger....
    it takes the data from the various text_items of the
    form and inserts them into their corrosponding
    tables....and I have added 'COMMIT' at the end this
    trigger
    so when I press this button ....the data 2 records
    get inserted into the 2 tables instead of one each..
    TIA
    Sunnythe above form looks something like this.....
    -------------------------------------------------------------------------------------------------------|
    |------------------------------------------------------------------------------------------------------|
    | |
    | ---data_block1------------------------------------------------------ |
    | | | |
    | | some data entry here for emp1 table | |
    | |__________________________________________ | |
    | |
    | |
    | |
    | ---data_block2------------------------------------------------------ |
    | | | |
    | | some data entry here for dept1 table | |
    | |__________________________________________ | |
    | |
    | button1 |
    |-------------------------------------------------------------------------------------------------------

  • Program crashes without error message when opening a database

    One of our users is experiencing an issue with Discoverer Desktop whereby the program crashes with no error message when he attempts to open a database from a local or network drive. If he logs in to Windows as himself, and runs Discoverer as himself, the program crashes under any Discoverer login; if I log in to Windows using an admin account, and run the program under the same context, the same issue occurs; however, if I log in to Windows as the user and run the program under the context of admin, the error does not occur under any Discoverer login.
    I've tried removing and reinstalling the program but this has not alleviated the issue. The program version is 10.1.2.55 running on Windows XP SP3. If there are any other relevant details required to diagnose the issue I will gladly provide them. Could someone please help me resolve this?
    Edited by: 805312 on Oct 27, 2010 6:25 AM

    Welcome to the forums !
    Has this ever worked ? Pl see if MOS Doc 197716.1 (Running Discoverer Desktop on Windows 2000 Or Later Releases As a Restricted User Fails With "Failed to update the system registry. Please try using REGEDIT.") can help.
    One option might be to install Process Monitor (http://technet.microsoft.com/en-us/sysinternals/bb896645.aspx) to identify the cause of the issue.
    HTH
    Srini

  • Prevent save Message when there is an error

    Hi all,
    Please help me out here.
    I want to prevent saving a new Support Desk Message when there is an error in the message.
    Kind regards,
    Remy Piets

    Hey Remy,
    This can be achieved if you are ready to do some coding...
    U need to use implement BADI ORDER_SAVE..
    Within this BADI u can have your business validations done...
    If the Validations fails then you have to raise an exception DO_NOT_SAVE...
    This is satisfy your requirment.....
    Reward for usefull post...
    Regards,
    Anand........

  • FRM-92101 when scrolling through a data block on a form

    Folks,
    We recently converted a Forms 6i application to Forms 10g (re-compiled, little changes were requested). Running against an Oracle 10g database (10.1.2.3) on a Solaris server.
    When users scroll through the data block on a canavas after about 2 or 3 screens t hy get the wonderful error message FRM-92101, talking about an error in the Forms Server at startup... (Kinda silly since it is AFTER the Form has started running, but beyond the point).
    I have tried adjusting the # of rows buffered for datablock (started out at 0, changed to 25, 50, 100) and rows to display at once to 1, 10, 16 and we still keep getting this error.
    Can anybody suggest an solution or point me in the right direction to solve this issue?
    Thank you,
    Tony Miller| Consultant | MRE Consulting, Ltd.
    3333 Richmond | Suite 300 | Houston, Texas 77098 [email protected] | 713-844-6211 Consulting | Infrastructure | Outsourcing | Staffing

    Tony,
    I don't have your correct email address. Drop me a line at [email protected]
    Thanks,
    Monty

  • Relation between non-database data blocks?

    Hi all,
    I'm using Oracle Forms Builder 10GR2. I have two data blocks and i want to create a relation between them. They aren't database blocks and when i tried to create a relation between them based on a join condition/joining 2 display items/ i received the error :
    FRM-15004: Error while parsing join condition.Any ideas?
    Thanks in advance,
    Bahchevanov.

    Andreas Weiden wrote:
    As far as i know you cannot create relationships between non-db-blocks (or maybe you can create them, but they will not work).Hi
    Oh yes u can for query purposes only e.g. suppose i have dept table and emp table created Master Block as non-db dept_no & Dept_name and a Detail_block with emp tabel and a dept_no as a foreign key ...
    1. we either set up a form relation ship between the two blocks - if we want the user to retrieve data only -
    2. or we use copy value property in the dept_no item in the detail block to get the copied value from the dept_no of the master to the dept_no of the detail
    3.While the user entered or select the dept_no in the Master Block then Press Entered here comes the role of the WHEN-BLOCK-INSTANCE Trigger
    GO_BLOCK('DEATIL_BLOCK_NAME');
    EXECUTE_QUERY;Here the data will be displayed in the detail block accordingly ...
    So the relation here played the role of the Where Statment or the default where to filter the displaing of data in the Detail Block according to the Master Block
    Regards,
    Amatu Allah.

  • Error message when connecting to database!

    Hi
    For this assignment i create a databse with Acces. when i run the following code i get an error message.
    Dropping indexes & tables ?
    Could not drop primary key on UserStocks table: [Microsoft][ODBC Microsoft Access Driver] Cannot find table or constrant.
    Could not drop UserStocs table: [Microsoft][ODBC Microsoft Access Driver] Table ?UserStocks? does not exist.
    Creating tables ?????????..
    Creating Stocks table with primary key index ?
    Creating Users table with primary key index ?
    Creating UserStocks table ?
    Exception creating UserStocks table: [Microsoft][ODBC Microsoft Access Driver] Syntax error in CREATE TABLE statement.
    Creating UserStocks table primary key index ?
    Exception creating UserStocks index: [Microsoft][ODBC Microsoft Access Driver] Cannot find table or constraint.
    Database created.
    An extract of an error further down after running MakeDB.java
    Chapter 11: The MakeDB Class
    Programmer: Michael Mick
    Date: December 16, 2004
    Filename: MakeDB.java
    Purpose: To build an initial database for the StockTracker application
    import java.sql.*;
    import java.io.*;
    public class MakeDB
    public static void main(String[] args) throws Exception
    Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
    String url = "jdbc:odbc:StockTracker";
    Connection con = DriverManager.getConnection(url);
    Statement stmt = con.createStatement();
    // The following code deletes each index and table, if they exist.
    // If they do not exist, a message is displayed and execution continues.
    System.out.println("Dropping indexes & tables ...");
    try
    stmt.executeUpdate("DROP INDEX PK_UserStocks ON UserStocks");
    catch (Exception e)
    System.out.println("Could not drop primary key on UserStocks table: "
    + e.getMessage());
    try
    stmt.executeUpdate("DROP TABLE UserStocks");
    catch (Exception e)
    System.out.println("Could not drop UserStocks table: "
    + e.getMessage());
    try
    stmt.executeUpdate("DROP TABLE Users");
    catch (Exception e)
    System.out.println("Could not drop Users table: "
    + e.getMessage());
    try
    stmt.executeUpdate("DROP TABLE Stocks");
    catch (Exception e)
    System.out.println("Could not drop Stocks table: "
    + e.getMessage());
    /////////////////////////Create the database tables/////////////////////////
    System.out.println("\nCreating tables ......................");
    // Create Stocks table with primary key index
    try
    System.out.println("Creating Stocks table with primary key index ... ");
    stmt.executeUpdate("CREATE TABLE Stocks ("
    + "symbol TEXT(8) NOT NULL "
    + "CONSTRAINT PK_Stocks PRIMARY KEY, "
    + "name TEXT(50)"
    + ")");
    catch (Exception e)
    System.out.println("Exception creating Stocks table: "
    + e.getMessage());
    // Create Users table with primary key index
    try
    System.out.println("Creating Users table with primary key index ... ");
    stmt.executeUpdate("CREATE TABLE Users ("
    + "userID TEXT(20) NOT NULL "
    + "CONSTRAINT PK_Users PRIMARY KEY, "
    + "lastName TEXT(30) NOT NULL, "
    + "firstName TEXT(30) NOT NULL, "
    + "pswd LONGBINARY, "
    + "admin BIT"
    + ")");
    catch (Exception e)
    System.out.println("Exception creating Users table: "
    + e.getMessage());
    // Create UserStocks table with foreign keys to Users and Stocks tables
    try
    System.out.println("Creating UserStocks table ... ");
    stmt.executeUpdate("CREATE TABLE UserStocks ("
    + "userID TEXT(20) "
    + "CONTRAINT FK1_UserStocks REFERENCES Users (userID), "
    + "symbol TEXT(8), "
    + "CONSTRAINT FK2_UserStocks FOREIGN KEY (symbol) "
    + "REFERENCES Stocks (symbol))");
    catch (Exception e)
    System.out.println("Exception creating UserStocks table: "
    + e.getMessage());
    // Create UserStocks table primary key index
    try
    System.out.println("Creating UserStocks table primary key index ... ");
    stmt.executeUpdate("CREATE UNIQUE INDEX PK_UserStocks "
    + "ON UserStocks (userID, symbol) "
    + "WITH PRIMARY DISALLOW NULL");
    catch (Exception e)
    System.out.println("Exception creating UserStocks index: "
    + e.getMessage());
    // Create one administrative user with password as initial data
    String userID = "admin01";
    String firstName = "Default";
    String lastName = "Admin";
    String initialPswd = "admin01";
    Password pswd = new Password(initialPswd);
    boolean admin = true;
    PreparedStatement pStmt =
    con.prepareStatement("INSERT INTO Users VALUES (?,?,?,?,?)");
    try
    pStmt.setString(1, userID);
    pStmt.setString(2, lastName);
    pStmt.setString(3, firstName);
    pStmt.setBytes(4, serializeObj(pswd));
    pStmt.setBoolean(5,admin);
    pStmt.executeUpdate();
    catch (Exception e)
    System.out.println("Exception inserting user: "
    + e.getMessage());
    pStmt.close();
    // Read and display all User data in the database.
    ResultSet rs = stmt.executeQuery("SELECT * FROM Users");
    System.out.println("Database created.\n");
    System.out.println("Displaying data from databae ... \n");
    System.out.println("Users table contains:");
    Password pswdFromDB;
    byte[] buf = null;
    while(rs.next())
    System.out.println("Logon ID = "
    + rs.getString("userID"));
    System.out.println("First name = "
    + rs.getString("firstName"));
    System.out.println("Last name = "+ rs.getString("lastName"));
    System.out.println("Administratvie = "+ rs.getBoolean("admin"));
    System.out.println("Initial password = "+ initialPswd);
    // Do NOT use with JDK 1.2.2 using JCBC - ODBC bridge as
    // SQL NULL data value is not handled correctly
    buf = rs.getBytes("pswd");
    if (buf != null)
    System.out.println("Password Object = "
    + (pswdFromDB=(Password)deserializeObj(buf)));
    System.out.println(" AutoExpires = "+ pswdFromDB.getAutoExpires());
    System.out.println(" Expiring now = "+ pswdFromDB.isExpiring());
    System.out.println(" Remaining uses = "
    + pswdFromDB.getRemainingUses() + "\n");
    else
    System.out.println("Password Object = NULL!");
    rs = stmt.executeQuery("SELECT * FROM Stocks");
    if(!rs.next())
    System.out.println("Stocks table contains no records.");
    else
    System.out.println("Stocks table still contains records!");
    rs = stmt.executeQuery("SELECT * FROM UserStocks");
    if(!rs.next())
    System.out.println("UserStocks table contains no records.");
    else
    System.out.println("UserStocks table still contains records!");
    stmt.close(); // closing Statment also closes ResultSet
    } // end of main()
    // Method to write object to byte array and then insert into prepared statement
    public static byte[] serializeObj(Object obj)
    throws IOException
    ByteArrayOutputStream baOStream = new ByteArrayOutputStream();
    ObjectOutputStream objOStream = new ObjectOutputStream(baOStream);
    objOStream.writeObject(obj); // object must be Serializable
    objOStream.flush();
    objOStream.close();
    return baOStream.toByteArray(); // returns stream as byte array
    // Method to read bytes from result set into a byte array and then
    // create an input stream and read the data into an object
    public static Object deserializeObj(byte[] buf)
    throws IOException, ClassNotFoundException
    Object obj = null;
    if (buf != null)
    ObjectInputStream objIStream =
    new ObjectInputStream(new ByteArrayInputStream(buf));
    obj = objIStream.readObject(); // throws IOException, ClassNotFoundException
    return obj;
    } // end of class

    This is the output i get when i change the getMessage with printStackTrace.
    String getMessage() replaced with printStackTrace:
    G:\studies\Chapter11\MakeDB.java:33: 'void' type not allowed here
                   System.out.println("Could not drop primary key on UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:43: 'void' type not allowed here
                   System.out.println("Could not drop UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:54: 'void' type not allowed here
                   System.out.println("Could not drop Users table: "
    ^
    G:\studies\Chapter11\MakeDB.java:64: 'void' type not allowed here
                   System.out.println("Could not drop Stocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:83: 'void' type not allowed here
                   System.out.println("Exception creating Stocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:102: 'void' type not allowed here
                   System.out.println("Exception creating Users table: "
    ^
    G:\studies\Chapter11\MakeDB.java:119: 'void' type not allowed here
                   System.out.println("Exception creating UserStocks table: "
    ^
    G:\studies\Chapter11\MakeDB.java:133: 'void' type not allowed here
                   System.out.println("Exception creating UserStocks index: "
    ^
    G:\studies\Chapter11\MakeDB.java:159: 'void' type not allowed here
                   System.out.println("Exception inserting user: "
    ^
    9 errors
    Tool completed with exit code 1

  • How to disable 'Save' button when OAF and XML Publisher integrated...URGENT

    Hi,
    I am new to the OA Framework and XML publisher. I have been working on a requirement where I am designing a new page in Manager Self Service with few fields and a submit button. Also designed a RTF template in XML publisher to display the output in PDF format.
    When the details are entered on the page and click on 'Submit' button, the PDF will Open with the data populated. This is working perfectly... thanks to the forum.
    But my issue is: When the submit button is clicked, it displayes a dialog box with Open/Save/Cancel options and if I click the 'Open', the PDF will be opened. But my client is a retail client and they don't want store managers to save this PDF so either I have to skip this dialog box and directly open the PDF or I have to disable the 'Save' on the dialog box.
    Gurus -- Please help me how to achieve this. This is very urgent
    Below is the piece of code I am using in the controller to generate the PDF.
    TemplateHelper.processTemplate(
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getAppsContext(),
    APP_NAME,
    TEMPLATE_CODE,
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getLanguage(),
    ((OADBTransactionImpl)pageContext.getApplicationModule(webBean).getOADBTransaction()).getUserLocale().getCountry(),
    inputStream,
    TemplateHelper.OUTPUT_TYPE_PDF,
    null,
    pdfFile);
    Thanks in Advance,
    Naren

    Frank, thanks for the update.
    But do you want me to try ControllerContext.getInstance().getCurrentViewPort().isDataDirty(); in button disable property?
    I have written one method in my am like
    public boolean isTransactionDirty(){
    return getDBTransaction.isDity();
    and exposed that method to client side and i try to use this method in my button disable property as
    disable#{bindings.isTransactionDirty.execute} but this is not working.
    Thanks

Maybe you are looking for

  • Scheduling specific time of day for automatic software updates

    How can one schedule a specific time of day (i.e. between 11:01 pm to 5.59 am when I have unlimited download availability) for an iMac to search for automatic software updates? System preferences only offer frequency, but no time option. If it is pos

  • Retrieve the message put in message header using variable substitution

    hi, i am using dynamic configuration to put some information in the message header.is it possible to retrieve the message using variable substitution and if it is possible then how it be done using variable substitution. regards, Meenakshi

  • Partner profile are not available.

    Hi, Iam doing file to idoc scenario. when i execute the scenario  idoc is created with error 56 showing partenr profile are not  avaialble. what will be the exact reason partenr profile  in R/3 input parameter is added but still showing the error . C

  • How to import video frames as layers in Photoshop?

    How to import video as layers in PhotoshopCS3. When I press "Import Video Frames To Layers", an error message pops up: Could not complete the Video Frames to Layers command because the QuickTime version 7.1 or later is required." I've already install

  • How to display an image as a button

    how to make an image like a button ; when we press the image it performs a command