Problem in assigning Database Value to jTextfield (form doesn't show up)

Hi,
I'm trying to get an integer value from database, add 1 to it and assign it to a jTextfield in formInternalFrameOpened event, but this causes the form not to open.
If I remove just this thing the rest of the form works fine.
The open event has no problem it works fine, I have checked with jOptionDialog.
heres the code
    private void formInternalFrameOpened(javax.swing.event.InternalFrameEvent evt) {                                        
// Get last driver ID, add 1 to it and assign it to driver ID JTextField
        Connection con = null;
        try
            MyDBConnection myDBConnection = new MyDBConnection();
            myDBConnection.init();
            con = myDBConnection.getMyConnection();
            Statement pullStmt = con.createStatement();
            ResultSet pullRs = pullStmt.executeQuery("SELECT key_driverId FROM drivers ORDER BY key_driverId DESC LIMIT 1");
            pullRs.first();
            driverId.setText(String.valueOf(pullRs.getInt("key_driverId")+1));
            pullRs.close();
            con.close();
        catch(SQLException e){}
    }   

Thanks, here it is.... Remember, I'm trying to insert a value from database into jTextfield in formInternalFrameOpened event.
* NewDriver.java
* Created on August 9, 2007, 9:14 AM
package LimoApp;
import java.sql.*;
import java.text.DateFormat;
import java.text.SimpleDateFormat;
import javax.swing.JOptionPane;
* @author  NKA
public class NewDriver extends javax.swing.JInternalFrame {
    /** Creates new form NewDriver */
    public NewDriver() {
        initComponents();
    /** This method is called from within the constructor to
     * initialize the form.
     * WARNING: Do NOT modify this code. The content of this method is
     * always regenerated by the Form Editor.
    // <editor-fold defaultstate="collapsed" desc=" Generated Code ">                         
    private void initComponents() {
        jPanel1 = new javax.swing.JPanel();
        driverId = new javax.swing.JTextField();
        firstName = new javax.swing.JTextField();
        jLabel1 = new javax.swing.JLabel();
        jLabel2 = new javax.swing.JLabel();
        jLabel3 = new javax.swing.JLabel();
        jLabel4 = new javax.swing.JLabel();
        lastName = new javax.swing.JTextField();
        jLabel5 = new javax.swing.JLabel();
        address = new javax.swing.JTextField();
        jLabel6 = new javax.swing.JLabel();
        city = new javax.swing.JTextField();
        jLabel7 = new javax.swing.JLabel();
        state = new javax.swing.JComboBox();
        jLabel8 = new javax.swing.JLabel();
        zipcode = new javax.swing.JTextField();
        jLabel9 = new javax.swing.JLabel();
        workPhone = new javax.swing.JTextField();
        jLabel10 = new javax.swing.JLabel();
        extention = new javax.swing.JTextField();
        jLabel11 = new javax.swing.JLabel();
        homePhone = new javax.swing.JTextField();
        jLabel12 = new javax.swing.JLabel();
        mobilePhone = new javax.swing.JTextField();
        jLabel13 = new javax.swing.JLabel();
        dispatchEmail = new javax.swing.JTextField();
        personalEmail = new javax.swing.JTextField();
        jPanel3 = new javax.swing.JPanel();
        licenseNumber = new javax.swing.JTextField();
        jLabel18 = new javax.swing.JLabel();
        socialSecurityNumber = new javax.swing.JTextField();
        jLabel19 = new javax.swing.JLabel();
        dateOfBirth = new javax.swing.JTextField();
        jLabel20 = new javax.swing.JLabel();
        hireDate = new javax.swing.JTextField();
        jLabel21 = new javax.swing.JLabel();
        vehicleAssigned = new javax.swing.JComboBox();
        jLabel22 = new javax.swing.JLabel();
        jPanel4 = new javax.swing.JPanel();
        payWaitingTime = new javax.swing.JCheckBox();
        payExtraStops = new javax.swing.JCheckBox();
        payEarlyLate = new javax.swing.JCheckBox();
        payTolls = new javax.swing.JCheckBox();
        payParking = new javax.swing.JCheckBox();
        payGasSurcharge = new javax.swing.JCheckBox();
        gratuity = new javax.swing.JTextField();
        jLabel14 = new javax.swing.JLabel();
        jLabel15 = new javax.swing.JLabel();
        commission = new javax.swing.JTextField();
        perHourRate = new javax.swing.JTextField();
        perMileRate = new javax.swing.JTextField();
        jLabel16 = new javax.swing.JLabel();
        jLabel17 = new javax.swing.JLabel();
        btNewDriverSave = new javax.swing.JButton();
        setClosable(true);
        setIconifiable(true);
        setTitle("New Driver");
        addInternalFrameListener(new javax.swing.event.InternalFrameListener() {
            public void internalFrameActivated(javax.swing.event.InternalFrameEvent evt) {
            public void internalFrameClosed(javax.swing.event.InternalFrameEvent evt) {
            public void internalFrameClosing(javax.swing.event.InternalFrameEvent evt) {
            public void internalFrameDeactivated(javax.swing.event.InternalFrameEvent evt) {
            public void internalFrameDeiconified(javax.swing.event.InternalFrameEvent evt) {
            public void internalFrameIconified(javax.swing.event.InternalFrameEvent evt) {
            public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
                formInternalFrameOpened(evt);
        jPanel1.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Driver", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(102, 0, 0)));
        driverId.setEditable(false);
        driverId.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        firstName.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                firstNameFocusLost(evt);
        jLabel1.setText("Dispatch Email");
        jLabel2.setText("Personal Email");
        jLabel3.setText("Driver ID");
        jLabel4.setText("First Name");
        lastName.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                lastNameFocusLost(evt);
        jLabel5.setText("Last Name");
        jLabel6.setText("Address");
        jLabel7.setText("City");
        state.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "AL", "VA" }));
        jLabel8.setText("State");
        zipcode.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                zipcodeFocusLost(evt);
        jLabel9.setText("Zipcode");
        workPhone.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                workPhoneFocusLost(evt);
        jLabel10.setText("Work Phone");
        extention.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                extentionFocusLost(evt);
        jLabel11.setText("Extention");
        homePhone.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                homePhoneFocusLost(evt);
        jLabel12.setText("Home Phone");
        mobilePhone.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                mobilePhoneFocusLost(evt);
        jLabel13.setText("Cell");
        dispatchEmail.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                dispatchEmailFocusLost(evt);
        personalEmail.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                personalEmailFocusLost(evt);
        javax.swing.GroupLayout jPanel1Layout = new javax.swing.GroupLayout(jPanel1);
        jPanel1.setLayout(jPanel1Layout);
        jPanel1Layout.setHorizontalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGap(8, 8, 8)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel12)
                            .addComponent(jLabel10)
                            .addComponent(jLabel4)
                            .addComponent(jLabel3)
                            .addComponent(jLabel6)
                            .addComponent(jLabel7)))
                    .addComponent(jLabel1)
                    .addComponent(jLabel2))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addComponent(firstName, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel5)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(lastName))
                    .addComponent(address)
                    .addComponent(dispatchEmail)
                    .addGroup(jPanel1Layout.createSequentialGroup()
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING, false)
                            .addComponent(workPhone, javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(city, javax.swing.GroupLayout.Alignment.LEADING, javax.swing.GroupLayout.DEFAULT_SIZE, 112, Short.MAX_VALUE)
                            .addComponent(homePhone, javax.swing.GroupLayout.Alignment.LEADING))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel8)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addGap(10, 10, 10)
                                        .addComponent(jLabel11)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(extention, javax.swing.GroupLayout.PREFERRED_SIZE, 71, javax.swing.GroupLayout.PREFERRED_SIZE))
                                    .addGroup(jPanel1Layout.createSequentialGroup()
                                        .addComponent(state, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(jLabel9)
                                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                        .addComponent(zipcode))))
                            .addGroup(jPanel1Layout.createSequentialGroup()
                                .addComponent(jLabel13)
                                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                                .addComponent(mobilePhone, javax.swing.GroupLayout.PREFERRED_SIZE, 111, javax.swing.GroupLayout.PREFERRED_SIZE))))
                    .addComponent(personalEmail)
                    .addComponent(driverId, javax.swing.GroupLayout.PREFERRED_SIZE, 63, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        jPanel1Layout.setVerticalGroup(
            jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel1Layout.createSequentialGroup()
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel3)
                    .addComponent(driverId, javax.swing.GroupLayout.PREFERRED_SIZE, 20, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel4)
                    .addComponent(jLabel5)
                    .addComponent(lastName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(firstName, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel6)
                    .addComponent(address, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel7)
                    .addComponent(city, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(state, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel8)
                    .addComponent(jLabel9)
                    .addComponent(zipcode, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(workPhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel10)
                    .addComponent(jLabel11)
                    .addComponent(extention, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel12)
                    .addComponent(jLabel13)
                    .addComponent(mobilePhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(homePhone, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel1)
                    .addComponent(dispatchEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                .addGroup(jPanel1Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(jLabel2)
                    .addComponent(personalEmail, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        jPanel3.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Documents", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(102, 0, 0)));
        licenseNumber.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                licenseNumberFocusLost(evt);
        jLabel18.setText("License #");
        socialSecurityNumber.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                socialSecurityNumberFocusLost(evt);
        jLabel19.setText("Social Security #");
        dateOfBirth.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                dateOfBirthFocusLost(evt);
        jLabel20.setText("Date of Birth");
        hireDate.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                hireDateFocusLost(evt);
        jLabel21.setText("Hire Date");
        vehicleAssigned.setModel(new javax.swing.DefaultComboBoxModel(new String[] { "Item 1", "Item 2", "Item 3", "Item 4" }));
        jLabel22.setText("Vehicle Assigned");
        javax.swing.GroupLayout jPanel3Layout = new javax.swing.GroupLayout(jPanel3);
        jPanel3.setLayout(jPanel3Layout);
        jPanel3Layout.setHorizontalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel18)
                            .addComponent(jLabel19))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(socialSecurityNumber)
                            .addComponent(licenseNumber, javax.swing.GroupLayout.DEFAULT_SIZE, 104, Short.MAX_VALUE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 19, Short.MAX_VALUE)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addComponent(jLabel20)
                            .addComponent(jLabel21))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING, false)
                            .addComponent(hireDate)
                            .addComponent(dateOfBirth, javax.swing.GroupLayout.PREFERRED_SIZE, 77, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addComponent(jLabel22)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(vehicleAssigned, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addContainerGap())
        jPanel3Layout.setVerticalGroup(
            jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel3Layout.createSequentialGroup()
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel18)
                            .addComponent(licenseNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel19)
                            .addComponent(socialSecurityNumber, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                    .addGroup(jPanel3Layout.createSequentialGroup()
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(jLabel20)
                            .addComponent(dateOfBirth, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                            .addComponent(hireDate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                            .addComponent(jLabel21))))
                .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 9, Short.MAX_VALUE)
                .addGroup(jPanel3Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                    .addComponent(vehicleAssigned, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addComponent(jLabel22))
                .addContainerGap())
        jPanel4.setBorder(javax.swing.BorderFactory.createTitledBorder(null, "Payroll Stettings", javax.swing.border.TitledBorder.DEFAULT_JUSTIFICATION, javax.swing.border.TitledBorder.DEFAULT_POSITION, new java.awt.Font("Tahoma", 1, 11), new java.awt.Color(102, 0, 0)));
        payWaitingTime.setText("Pay Waiting Time");
        payWaitingTime.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        payWaitingTime.setMargin(new java.awt.Insets(0, 0, 0, 0));
        payExtraStops.setText("Pay Extra Stops");
        payExtraStops.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        payExtraStops.setMargin(new java.awt.Insets(0, 0, 0, 0));
        payEarlyLate.setText("Pay Early / Late");
        payEarlyLate.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        payEarlyLate.setMargin(new java.awt.Insets(0, 0, 0, 0));
        payTolls.setText("Pay Tolls");
        payTolls.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        payTolls.setMargin(new java.awt.Insets(0, 0, 0, 0));
        payParking.setText("Pay Parking");
        payParking.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        payParking.setMargin(new java.awt.Insets(0, 0, 0, 0));
        payGasSurcharge.setText("Pay Gas Surcharge");
        payGasSurcharge.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
        payGasSurcharge.setMargin(new java.awt.Insets(0, 0, 0, 0));
        gratuity.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        gratuity.setText("0");
        gratuity.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                gratuityFocusLost(evt);
        jLabel14.setText("Gratuity %");
        jLabel15.setText("Commission %");
        commission.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        commission.setText("0");
        commission.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                commissionFocusLost(evt);
        perHourRate.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        perHourRate.setText("0");
        perHourRate.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                perHourRateFocusLost(evt);
        perMileRate.setHorizontalAlignment(javax.swing.JTextField.RIGHT);
        perMileRate.setText("0");
        perMileRate.addFocusListener(new java.awt.event.FocusAdapter() {
            public void focusLost(java.awt.event.FocusEvent evt) {
                perMileRateFocusLost(evt);
        jLabel16.setText("Per Mile Rate");
        jLabel17.setText("Per Hour Rate");
        javax.swing.GroupLayout jPanel4Layout = new javax.swing.GroupLayout(jPanel4);
        jPanel4.setLayout(jPanel4Layout);
        jPanel4Layout.setHorizontalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addGap(16, 16, 16)
                        .addComponent(jLabel14)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(gratuity, javax.swing.GroupLayout.PREFERRED_SIZE, 52, javax.swing.GroupLayout.PREFERRED_SIZE)
                        .addGap(9, 9, 9)
                        .addComponent(jLabel16)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(perMileRate, javax.swing.GroupLayout.PREFERRED_SIZE, 51, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createSequentialGroup()
                        .addComponent(jLabel15)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(commission, 0, 0, Short.MAX_VALUE)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(jLabel17)
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                        .addComponent(perHourRate, 0, 0, Short.MAX_VALUE))
                    .addGroup(javax.swing.GroupLayout.Alignment.TRAILING, jPanel4Layout.createSequentialGroup()
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(payWaitingTime)
                            .addComponent(payEarlyLate)
                            .addComponent(payExtraStops))
                        .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED, 45, Short.MAX_VALUE)
                        .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.TRAILING)
                            .addGroup(jPanel4Layout.createSequentialGroup()
                                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                                    .addComponent(payParking)
                                    .addComponent(payTolls))
                                .addGap(36, 36, 36))
                            .addComponent(payGasSurcharge))))
                .addContainerGap())
        jPanel4Layout.linkSize(javax.swing.SwingConstants.HORIZONTAL, new java.awt.Component[] {commission, gratuity, perHourRate, perMileRate});
        jPanel4Layout.setVerticalGroup(
            jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(jPanel4Layout.createSequentialGroup()
                .addContainerGap()
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel14)
                        .addComponent(gratuity, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel16)
                        .addComponent(perMileRate, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE)))
                .addGap(14, 14, 14)
                .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(jLabel15)
                        .addComponent(commission, javax.swing.GroupLayout.PREFERRED_SIZE, javax.swing.GroupLayout.DEFAULT_SIZE, javax.swing.GroupLayout.PREFERRED_SIZE))
                    .addGroup(jPanel4Layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                            

Similar Messages

  • Problem in assigning variables value.. FORM bdc_field

    Though the value is there in y_lv_fval it is not assigned to WA field y_li_bdcdata-fval.
    FORM bdc_field USING y_lv_fnam y_lv_fval.
        CLEAR y_li_bdcdata.
        y_li_bdcdata-fnam = y_lv_fnam.
        y_li_bdcdata-fval = y_lv_fval.    "KBETR field length..larger than y_li_bdcdata-fval
        APPEND y_li_bdcdata.
      ENDFORM.                    "BDC_FIELD

    ok

  • Spry Contact Form doesn't show all the information on email

    Hi there,
    So I have created a contact form with the spry text fields.
    The text fields are:
    Name
    Email
    Message
    Onced tested the email shows:
    Name     : [email protected]
    Email     :  (blank)
    Message: (blank)
    So The two issues is that is shows the email shows under name and the email and message sections dont show any infomation at all.
    Link is here
    Thanks in advance
    Ash

    The best way is to have no separate action page and lump the whole lot into one document.
    The following is an example of this
    <?php
    if(isset($_POST['Email'])) {
        // EDIT THE 2 LINES BELOW AS REQUIRED
        $email_to = "[email protected]";
        $email_subject = "Your email subject line";
        function died($error) {
            // your error code can go here
            echo "We are very sorry, but there were error(s) found with the form you submitted. ";
            echo "These errors appear below.<br /><br />";
            echo $error."<br /><br />";
            echo "Please go back and fix these errors.<br /><br />";
            die();
        // validation expected data exists
        if(!isset($_POST['Name']) ||
            !isset($_POST['Email']) ||
            !isset($_POST['message'])) {
            died('We are sorry, but there appears to be a problem with the form you submitted.');     
        $name = $_POST['Name']; // required
        $email_from = $_POST['Email']; // required
        $comments = $_POST['message']; // required
        $error_message = "";
        $email_exp = '/^[A-Za-z0-9._%-]+@[A-Za-z0-9.-]+\.[A-Za-z]{2,4}$/';
      if(!preg_match($email_exp,$email_from)) {
        $error_message .= 'The Email Address you entered does not appear to be valid.<br />';
        $string_exp = "/^[A-Za-z .'-]+$/";
      if(!preg_match($string_exp,$name)) {
        $error_message .= 'The Name you entered does not appear to be valid.<br />';
      if(strlen($comments) < 2) {
        $error_message .= 'The Comments you entered do not appear to be valid.<br />';
      if(strlen($error_message) > 0) {
        died($error_message);
        $email_message = "Form details below.\n\n";
        function clean_string($string) {
          $bad = array("content-type","bcc:","to:","cc:","href");
          return str_replace($bad,"",$string);
        $email_message .= "Name: ".clean_string($name)."\n";
        $email_message .= "Email: ".clean_string($email_from)."\n";
        $email_message .= "Comments: ".clean_string($comments)."\n";
    // create email headers
    $headers = 'From: '.$email_from."\r\n".
    'Reply-To: '.$email_from."\r\n" .
    'X-Mailer: PHP/' . phpversion();
    @mail($email_to, $email_subject, $email_message, $headers);
    ?>
    <!-- include your own success html here -->
    <p class="message">Thank you for contacting us. We will be in touch with you very soon.</p>
    <?php
    ?>
    <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
    <html xmlns="http://www.w3.org/1999/xhtml">
    <head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>Untitled Document</title>
    <script src="SpryAssets/SpryValidationTextField.js" type="text/javascript"></script>
    <script src="SpryAssets/SpryValidationTextarea.js" type="text/javascript"></script>
    <link href="SpryAssets/SpryValidationTextField.css" rel="stylesheet" type="text/css" />
    <link href="SpryAssets/SpryValidationTextarea.css" rel="stylesheet" type="text/css" />
    <style>
    .message {
        font-size: 1.4em;
        color: #F00;
    </style>
    </head>
    <body>
    <h1>Contact Us</h1>
    <p>Please use any of the below methods to contact us for any enquiries or questions you may have</p>
    <p>Email : <a href="mailto:[email protected]">[email protected]</a></p>
    <form id="formmail" name="formmail" method="post" action="">
      <p id="nametextfield2">
        <label for="Name"></label>
        <input type="text" name="Name" id="Name" />
        <span class="textfieldRequiredMsg">A value is required.</span>
        <span class="textfieldMinCharsMsg">Minimum number of characters not met.</span>
        <span class="textfieldMaxCharsMsg">Exceeded maximum number of characters.</span>
      </p>
      <p id="emailtextfield3">
        <label for="Email"></label>
        <input type="text" name="Email" id="Email" />
        <br />
        <span class="textfieldRequiredMsg">A value is required.</span>
        <span class="textfieldInvalidFormatMsg">Invalid format.</span>
      </p>
      <p id="messagetextarea1">
        <label for="message"></label>
        <textarea name="message" id="message" cols="45" rows="5"></textarea>
        <span id="countmessagetextarea1"> </span>
        <span class="textareaRequiredMsg">A value is required.</span>
        <span class="textareaMinCharsMsg">Minimum number of characters not met.</span>
        <span class="textareaMaxCharsMsg">Exceeded maximum number of characters.</span>
      </p>
      <p>
        <input type="submit" name="Submit" id="Submit" value="Submit" />
      </p>
    </form>
    <script type="text/javascript">
    var sprytextfield2 = new Spry.Widget.ValidationTextField("nametextfield2", "none", {hint:"Name", minChars:1, maxChars:50, validateOn:["blur"]});
    var sprytextfield3 = new Spry.Widget.ValidationTextField("emailtextfield3", "email", {validateOn:["blur"], hint:"Email"});
    var sprytextarea1 = new Spry.Widget.ValidationTextarea("messagetextarea1", {minChars:1, maxChars:400, validateOn:["blur"], counterType:"chars_remaining", counterId:"countmessagetextarea1", hint:"Message"});
    </script>
    </body>
    </html>
    Down the track you will be able to hide the form once it has been submitted.
    Gramps

  • Problem in assigning characteristics values to characters against material

    Hello Gurus,,
    I am doing a wrapper RFC to populate characteristic values to characters and finally that needs to be visible in material classfication view.
    The following is my code let me know if any thing needs to be corrected on this
    *"*"Local Interface:
    *"  IMPORTING
    *"     VALUE(CLASSNUM) TYPE  BAPI1003_KEY-CLASSNUM
    *"     VALUE(CLASSTYP) TYPE  BAPI1003_KEY-CLASSTYPE
    *"     VALUE(MATNR) TYPE  MATNR
    *"  TABLES
    *"      CHARVALUES STRUCTURE  ZCLASSCHAR
    *"      RETURN STRUCTURE  BAPIRET2
      TYPES: BEGIN OF ty_classchar,
             atnam TYPE atnam,
             atfor TYPE atfor,
             END OF ty_classchar.
      DATA: t_classchar TYPE TABLE OF ty_classchar,
            x_classchar TYPE ty_classchar,
            v_matnr(50) TYPE c.
      DATA: objectkeynew  TYPE  bapi1003_key-object,
            objecttablenew  TYPE  bapi1003_key-objecttable,
            classnumnew TYPE  bapi1003_key-classnum,
            classtypenew  TYPE  bapi1003_key-classtype,
            status  TYPE  bapi1003_key-status,
            standardclass TYPE  bapi1003_key-stdclass,
            changenumber  TYPE  bapi1003_key-changenumber,
            keydate TYPE  bapi1003_key-keydate,
            no_default_values TYPE  bapi1003_key-flag,
            classif_status  TYPE  bapi1003_key-status.
      DATA: allocvaluesnum  TYPE TABLE OF bapi1003_alloc_values_num WITH HEADER LINE,
            allocvalueschar     TYPE TABLE OF     bapi1003_alloc_values_char WITH HEADER LINE,
            allocvaluescurr     TYPE TABLE OF     bapi1003_alloc_values_curr WITH HEADER LINE.
      REFRESH: t_classchar,return.
      IF charvalues IS NOT INITIAL.
        SELECT atnam
               atfor
               FROM cabn
               INTO TABLE t_classchar
               FOR ALL ENTRIES
               IN charvalues WHERE
               atnam EQ charvalues-characteristic.
        IF sy-subrc <> 0.
          CLEAR return.
          return-message = 'No values in CABN against provided input'.
          APPEND return.
        ENDIF.
      ELSE.
        CLEAR return.
        return-message = 'No input is provided'.
        APPEND return.
      ENDIF.
      REFRESH: allocvalueschar,allocvaluesnum.
      LOOP AT charvalues.
        CLEAR x_classchar.
        READ TABLE t_classchar INTO x_classchar WITH KEY atnam = charvalues-characteristic.
        CASE x_classchar-atfor.
          WHEN 'NUM'.
            CLEAR allocvaluesnum.
            allocvaluesnum-charact = charvalues-characteristic.
            allocvaluesnum-value_from = sy-datum.
            APPEND allocvaluesnum.
          WHEN 'CHAR'.
            CLEAR allocvalueschar.
            allocvalueschar-charact = charvalues-characteristic.
            allocvalueschar-value_char = charvalues-description.
            APPEND allocvalueschar.
        ENDCASE.
      ENDLOOP.
      CLEAR: v_matnr.
      CALL FUNCTION 'CONVERSION_EXIT_ALPHA_INPUT'
        EXPORTING
          input  = matnr
        IMPORTING
          output = v_matnr.
      CALL FUNCTION 'BAPI_OBJCL_CREATE'
        EXPORTING
          objectkeynew            = v_matnr
          objecttablenew          = 'MARA'
          classnumnew             = classnum
          classtypenew            = classtyp
       STATUS                  = '1'
    *   STANDARDCLASS           =
    *   CHANGENUMBER            =
         keydate                 = sy-datum
       NO_DEFAULT_VALUES       = ' '
       IMPORTING
         classif_status          = classif_status
       TABLES
         allocvaluesnum          = allocvaluesnum
         allocvalueschar         = allocvalueschar
    *   ALLOCVALUESCURR         =
         return                  = return
      CALL FUNCTION 'BAPI_TRANSACTION_COMMIT'.
    The output which i got has following error codes
    I CL                   732 Assignment does not exist or is not valid on
    E CL                   763 Object 00000000000000000000000000000000000000000000001631 does not exist
    I CL                   736 Assignment was not created
    Please let me know what could be the error.
    Regards
    S.Janagar

    Hi Mr.Sengathir Jeyamani,
    Did u got the solution for this? Me also looking answer for your question. If u found, Pls let me know. Thanks.
    -JANARAJA

  • Forms doesn't show up after R12 fresh install on OEL5

    Application Version : 12:11
    OS Version: OEL5
    All Services came up but the forms sessions are not opening up !
    I compiled all the forms still it was not showing up ! by throwing error.
    Restarted Forms Server couple of time but still it was showing below error
    FRM-92101. There was a failure in the Forms Server during startup. this could
    happen due to invalid configuration. Please look into the web-server for the details.
    Details...
    Java Exception:
    Oracle.forms.net.ConnectionException:Forms Session<74> failed during startup: no response from runtime process
    at oracle.forms.net.HTTPNStream.getResponse(unknown source)
    at oracle.forms.net.HTTPNStream.doFlust(unknown source)
    at oracle.forms.net.HTTPNStream.flush(unknown source)
    at java.io.DataOutputStream.flush(unknown source)
    at oracle.forms.net.HTTPconnection.connect(unknown source)
    at oracle.forms.engine.formsDispatcher.InitConnection(unknown source)
    at oracle.forms.engine.Formsdispatcher.init(unknown source)
    at oracle.forms.engine.Runform.initConnection(unknown source)
    at oracle.forms.engine.Runform.startRunform(unknown source)
    at oracle.forms.engine.Main.createRunform(unknown source)
    at oracle.forms.engine.Main.Start(unknown source)
    at sun.applet.appletPanel.run(unknown source)
    at java.lang.Thread.run(unknown source)
    I was not even able to open not even one form session
    With metalink and google I am not able to get hit to resolve this problem
    Thanks for reading the post !
    Edited by: user644525 on Dec 2, 2009 11:17 AM

    Hi,
    Did you install all pre-req. software packages and OS?
    I can see couple of hits on Metalink, so did you go through all the documents? Please see (Note: 880088.1, 465926.1, 454427.1, 468429.1, 549055.1, and 429627.1).
    Did AutoConfig complete successfully on the application tier node?
    Regards,
    Hussein

  • Form doesn't show -- HZ_CUST_ACCOUNT_ROLE_V2PUB.create_role_responsibility

    Hi All,
    Created Role responsibilities using HZ_CUST_ACCOUNT_ROLE_V2PUB.create_role_responsibility. API returned responsibility_id and I could check record in HZ_ROLE_RESPONSIBULITY table. But when I view it from Contact Roles screen, No value but If I click on the field then value appears on screen.
    I am setting below values. Can you please share your thoughts on it.
    l_role_responsibility_rec_type.cust_account_role_id:=335599;
    l_role_responsibility_rec_type.responsibility_type:='DELIVER_TO';
    l_role_responsibility_rec_type.created_by_module:='API_V2';
    HZ_CUST_ACCOUNT_ROLE_V2PUB.create_role_responsibility (
    p_init_msg_list => FND_API.G_TRUE,
    p_role_responsibility_rec => l_role_responsibility_rec_type,
    x_responsibility_id=> x_resp_id,
    x_return_status =>x_return_status,
    x_msg_count =>x_msg_count,
    x_msg_data => x_msg_data
    Thank

    Try setting the primary flag to 'Y' i.e.
    l_role_responsibility_rec_type.primary_flag:='Y';
    Also have a look at the steps listed at the following link and confirm that you have created all the listed entities.
    http://tenthsense.blogspot.com/2011/08/oracle-apps-create-customer.html
    Thanks,
    Hiten

  • Problem in assigning date valje to field

    Hi,
    I have  a problem in assignning date value to field.
    i am retriving date from a table and assigning it to a field which is date type in the form.. but it is not reflecting..
    Error: form Bad Value..
    how to assign the date values in the form..
    Mahi

    Hi mahendra,
    I think the Bad Value Error Occurs only if the databound datasource in the form must have different data type...
    oForm.DataSources.UserDataSources.Add("eDate", SAPbouiCOM.BoDataType.dt_DATE, 10);
      SAPbouiCOM.EditText oEdit;
      oEdit = oForm.Items.Item("1").Specific;
      oEdit.DataBind.SetBound(true, "", eDate);
    with Regards,
    MadhuSudhana Rao.G

  • Problem to fetch aquisition value

    hi,
    i am facing the problem to fetch aquisition value.
    my smart form working fine if equipment is not goes for AUC settlement but when it goes for settlement then i m not getting the aquisition value for deptt.
    since after settlement equipment assign with a new asset number. so i m not getting the exect field to get the aquistion value.
    b4 that i m using aqistion value for deptt is kansw from anlc table but it fails under settlement.
    i got one field AIBN1 in ANLA for new asset number under settlement but not sure about the amount that where it will b.
    since in our dev system data is not there so i m not sure that where i will get the aquision value, i hav track one field in ANLA (URWRT) or field will be same KANSW for new asset number in ANLC..
    please help me if u can?
    thanks in advance and marks will be sure for each helpfull answer*
    regards
    vijay

    Hi Vijay,
    Yes the field is right. It will store the original asset number.
    Regards,
    Atish

  • Assigning a value to an array cell populated [BULK]

    Hi all,
    I've got a problem in assigning a value to an array populated with BULK COLLECT INTO .
    I can reproduce the problem with this
    CREATE TABLE TEST_TABLE (
    value1 NUMBER,
    value2 NUMBER
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);
    INSERT INTO test_table VALUES(1,1);And this is the PL/SQL anonymous block that gives me problems:
    DECLARE
      SUBTYPE t_rec IS TEST_TABLE%ROWTYPE;
    TYPE records_table IS TABLE OF t_rec;
      elist RECORDS_TABLE;
      CURSOR table_cursor IS SELECT * FROM TEST_TABLE WHERE rownum <= 20;
    BEGIN
      OPEN table_cursor;
      FETCH table_cursor BULK COLLECT INTO elist;
        FOR j IN 1..elist.COUNT
        LOOP
          elist(j)(1) := elist(j)(1) +1;
        END LOOP;
      CLOSE table_cursor;
    END; The error is
    ORA-06550: line 13, column 7:
    PLS-00308: this construct is not allowed as the origin of an assignment
    ORA-06550: line 13, column 7:
    PL/SQL: Statement ignored
    06550. 00000 -  "line %s, column %s:\n%s"
    *Cause:    Usually a PL/SQL compilation error.
    *Action:So it doesn't compile because of this line of code:
    elist(j)(1) := elist(j)(1) +1;
    Why doesn't it work?
    If I try to do this, works perfectly:
    DECLARE
    TYPE v_num_table
    IS
      TABLE OF NUMBER;
    TYPE v_2_num_table
    IS
      TABLE OF v_num_table;
      v_nums V_2_NUM_TABLE := V_2_NUM_TABLE();
    BEGIN
      v_nums.EXTEND;
      v_nums(1) := v_num_table();
      v_nums(1).EXTEND;
      v_nums(1)(1) := 1;
      v_nums(1)(1) := v_nums(1)(1) +1;
      dbms_output.put_line(v_nums(1)(1) );
    END;Edited by: user10396517 on 2-mar-2012 2.35

    Variable "elist" is a collection of record, so you access an individual field of a given collection element by specifying the field name, not its position :
    DECLARE
      SUBTYPE t_rec IS TEST_TABLE%ROWTYPE;
      TYPE records_table IS TABLE OF t_rec;
      elist RECORDS_TABLE;
      CURSOR table_cursor IS SELECT * FROM TEST_TABLE WHERE rownum <= 20;
    BEGIN
      OPEN table_cursor;
      FETCH table_cursor BULK COLLECT INTO elist;
        FOR j IN 1..elist.COUNT
        LOOP
          elist(j).value1 := elist(j).value1 + 1;
        END LOOP;
      CLOSE table_cursor;
    END;Your second example is different as you're dealing with a collection of collections.

  • Pass values to other forms

    Hi Guys!
    My Problem is to pass values through call forms to another form. There are two ways I had done it before. First:global variables.
    Second library spec with variables in in, then call forms share library data and the calles form uses the same library. The second way is descriped by Oracle Corp., too.
    Do you know another, better way, or do I have to make one of this better? What's the best way? Thank you very much

    You can build and pass a parameter list. Look at the help for CALL_FORM for details (I think you'll see an example there of how to use it).

  • Exchange 2007/2010 Console doesn't show up Exchange 2007 Databases after RBAC Implementation

    I have implemented a RBAC model after which Exchange 2010/2007 Console won't show up Exchange 2007 Mailbox Databases.
    Everything was working fine up until the Users were members of "Exchange Recipient Administrators" Group.
    I have created Custom Roles based on PArent Roles, Mail Recipients, Mail Recipient Creation, Distribution Groups & Public Folders and assigned that to a universal security group "Helpdesk operations". I removed membership for Helpdesk operations
    from "Exchange Recipient Administrators" Group and assigned the Custom Roles to "Helpdesk Operations" using the cmdlet below:
    New-ManagementRoleAssignment "Custom Role" -SecurityGroup "HelpDesk Operations"
    Exchange 2010 console shows Exchange 2010 Databases but not Exchange 2007 DAtabases. Exchange 2007 console doesn't show up any databases on New-Mailbox and simply displays a message "No Objects Found".
    Even Get-MailboxDatabase REturns blank output on Exchange 2007 SHell. Please help me with this and let me know in case if there is something that i need to be looking at!
    any help on this is much appreciated.
    M.P.K ~ ( Exchange | 2003/2007/2010/E15(2013)) ~~ Please remember to click “Vote As Helpful" if it really helps and "Mark as Answer” if it answers your question, “Unmark as Answer” if a marked post does not actually answer your question. ~~ This
    Information is provided is "AS IS" and confers NO Rights!!

    Hi,
    I recommend you use the following cmdlet and check the result.
    Get-MailboxDatabase -Server "Exchange 2007 server name"
    In my environment, if I don't specify the Server parameter on Exchange 2010 Management Shell, Exchange 2007 mailbox database can't be displayed. If I specify the Server parameter, Exchange 2007 mailbox database will be displayed.
    What's more, please check if the account you use has been delegated the Exchange View-Only Administrator role.
    Here is a thread for your reference.
    Get-MailboxDatabase
    http://technet.microsoft.com/en-us/library/bb676367(v=exchg.80).aspx
    Hope it helps.
    Best regards,
    Amy
    Amy Wang
    TechNet Community Support

  • Problem in assigning value to an array element

    hi all
    in the following prog i am not able to assign the value to the array element
    i am not getting why it is giving me error
    //my program is as follows
    public class ArrayTest
         static int [] intArray = new int[5];
         static int [] intArray1 = new int[1];
         intArray1[0] = 5; // this line gives error
         static char [] charArray = new char[5];
         public static void main(String args[])
              System.out.println(charArray);
              intArray1 = intArray;
    }thanx in advance as usual

    The problem is that you try to execute code outside a method. This can be only done in form of a variable declaration or as a static initilization block which will be executed once when the class is loaded:public class ArrayTest
         static int [] intArray = new int[5];
         static int [] intArray1 = new int[1];
         static char [] charArray = new char[5];
         static {
              intArray[0] = 5;
         public static void main(String args[])
              System.out.println(charArray);
              intArray1 = intArray;
    }

  • NLS_LANG value that suits Forms 10G and Database 11G wanted !

    I can't believe how bad is to install Oracle Database and Oracle Forms on the same Windows Vista machine!
    I had a problem in Oracle Forms 10g that prevents many items in the Form Builder menu from appearing in English Language and also prevents anything in the web-based forms runtime from appearing in English. I searched the forum for a solution and found that I have to set a NLS_LANG value in the environment variables equal to the following: AMERICAN_AMERICA.WE8MSWIN1256.
    I did this and my Forms builder looked great. Everything in english with no problems. But now what ?! The Oracle Database itself refused to connect from all clients! It refused to connect from Forms Builder, SQL Deeveloper, and even from SQL PLUS! The error given is: ORA-12705: Cannot access NLS data files or invalid environment specified.
    It seems that what I exactly need is a NLS_LANG value that will satisfy both Oracle Forms 10G and Oracle Database 11G that both are installed on the same Vista machine. The question is: What could this NLS_LANG value be?!
    Thank you in advance

    If you have connected to the database on which the form is based, prior to running the form from the Builder, the uname and password will automatically be passed in at startup and you will not be prompted.
    If you would rather hard code a username and password, enter it in formsweb.cfg. For example:
    SYNTAX:
    userid=<USERNAME>/<PASSWORD>@<DB NAME>
    EXAMPLE:
    userid=scott/tiger@orcl
    Remember that this change will only impact runtime and have no effect on the Builder.

  • Assign a value to a global variable - form personalization

    Hi All,
    We have a requirement in which we want to display a message depending upon the out parameter of the procedure in form personalization.
    We are using 'Builtin' with the buitin type 'Execute a Procedure'.
    And the argument passed is :
    *='declare
    l_request_id Number;
    l_out_come VARCHAR2(10);
    begin
    apps.xx_sr_email_pkg1.xx_sr_email_p1
    ('''||${GLOBAL.XX_CUST_ACCOUNT_ID.VALUE}||''',
    '''||${GLOBAL.XX_INCIDENT_ID.VALUE}||''',
    '''||${GLOBAL.XX_EMAIL_TYPE.VALUE}||''',l_request_id);
    :GLOBAL.XX_REQUEST_ID := l_request_id;
    end'*
    But its not assigning the value of l_request_id to the gloabal variable XX_REQUEST_ID.
    Can you please help?
    Thanks

    I don't have a solution but a work around.
    What if you create a function that accepts the same in parameters and returns the message.
    And then you create an action of the type message and in the message you call the function such as
    = select xx_sr_email_pkg1.sr_email_f1 .... from dual
    Sandeep Gandhi

  • Facing problem of Assigned Value in CJ33

    Hi All,
    I am facinfg a problem with Assigned value shown in CJ33 T code. My Sceneraio is like this.....
    1. I have activated availiblity controll on Released Budget.
    2. I have maintained tolerence limit  only for PR and PO.
    Now My problem is  that I budgeted one of my WBS as INR2000, Same amount is released also. I created a PR  for INR500. The same PR is converted to a Purchase order of INR500.
    Now in CJ33 T code my assigned value is comming as INR1000. Which is not correct for me because i have only used INR500 for my INR2000 budget and i want to use my Remaining INR1500 budget for another PR, But system is giving me Budget excedded error.
    Please advise. It would be a great help of all of you.
    Regards
    Rahul

    Hi Rahul,
    Refer this thread,
    Assigned Values For Project
    I had a strong feelilng that you were using ECC 5.0. I had come across the same issue. Just refer the note and try to apply the notes mentioned there. I am not sure which one i had applied but you can try out with the note number that Muraleedharan has mentiond in the thread. It should work.
    Kindly revert.
    Best Regards,
    Gokul

Maybe you are looking for