No guardar cambios de lenguaje

Después de cambiar idioma a Español al entrar nuevamente a SBO vuelve a estar Czech.
El usuario de la estación de trabajo es Administrador de su equipo.
¿A que se debe esta situación y como se resuelve?
Gracias

Estimado Osel,
Por favor intente lo siguiente:
Abra la carpeta:
C:Documents and SettingsI814733Local SettingsApplication DataSAPSAP Business One
Seleccione el archivo 'b1-current-user.xml'. Haga click en el boton derecho y abra el archivo con Notepad.
Busque el codigo:
1<                                                                               
Cambie el valor de 1 a 25 (1 puede ser otro numero, el numero correspondiente al idioma español es 25).
Saludos cordiales,
Mathieu Ruiz de Mendarozqueta
SAP Business One Forums Team

Similar Messages

  • Illustrator no me deja guardar cambios. Muestra un error desconocido y no guarda los cambios

    Sólo he conseguido guardar si antes convierto a trazado todas las funtes del documento

    Ah, exb.
    I had understood it the other way round (only able to save live Type).
    Which font(s) are we talking about, or is it happening with all fonts?

  • Saves the word Null - Using jTable!!

    Hi..
    I am using a jTable to show data to the final user, and also i added a button which save changed made on the jTable is the user modifies it!! But, if i save it with in the ms access saves the word null when it finds an empty space.. why this happens? here is the code.. and sometimes it didn't work well on somefields, that why i use vectors, and now it is working.. but i am still wondering why if a field was empty, when i click on the save button it saved the word null.
    Thanks for your attention,
    Xavier Arroyo
    * Main.java
    * Created on March 29, 2007, 7:31 AM
    package empesec;
    import java.io.IOException;
    import javax.swing.*;
    import java.sql.*;
    import java.util.Vector;
    import javax.swing.JOptionPane;// Para el MessageDialog
    import javax.swing.event.*;
    import javax.swing.DefaultCellEditor;
    import javax.swing.table.DefaultTableCellRenderer;
    import javax.swing.table.TableCellRenderer;
    import javax.swing.table.DefaultTableModel;
    import javax.swing.table.TableColumn;
    * @author  Xavier Arroyo
    public class Main extends JFrame {
         * Creates new form Main
         int numCol;
        public Main() {
            initComponents();
         tResultado.setSelectionMode(ListSelectionModel.SINGLE_SELECTION);
            setUpCategoryColumn(tResultado, tResultado.getColumnModel().getColumn(2));
            setUpSituationColumn(tResultado, tResultado.getColumnModel().getColumn(3));
            setUpDepartmentColumn(tResultado, tResultado.getColumnModel().getColumn(4));
            if (ALLOW_COLUMN_SELECTION) { // true by default
                if (ALLOW_ROW_SELECTION) {
                    //We allow both row and column selection, which
                    //implies that we *really* want to allow individual
                    //cell selection.
                    tResultado.setCellSelectionEnabled(true);
                tResultado.setColumnSelectionAllowed(true);
                ListSelectionModel colSM =
                    tResultado.getColumnModel().getSelectionModel();
                colSM.addListSelectionListener(new ListSelectionListener() {
                    public void valueChanged(ListSelectionEvent e) {
                        //Ignore extra messages.
                        if (e.getValueIsAdjusting()) return;
                        ListSelectionModel lsm = (ListSelectionModel)e.getSource();
                        if (lsm.isSelectionEmpty()) {
                            return;
                        } else {
                            int selectedCol = lsm.getMinSelectionIndex();
                            //numCol = selectedCol;
                            /*System.out.println("Column " + selectedCol
                                               + " is now selected.");*/
                                if (ALLOW_ROW_SELECTION) { // true by default
                                    ListSelectionModel rowSM = tResultado.getSelectionModel();
                                    rowSM.addListSelectionListener(new ListSelectionListener() {
                                        public void valueChanged(ListSelectionEvent e) {
                                            //Ignore extra messages.
                                            if (e.getValueIsAdjusting()) return;
                                            ListSelectionModel lsm = (ListSelectionModel)e.getSource();
                                            if (lsm.isSelectionEmpty()) {
                                                System.out.println("");
                                            } else {
                                                int selectedRow = lsm.getMinSelectionIndex();
                                                tIdCompu.setText("ping wna-gye-" + modeloDef.getValueAt(selectedRow,0));
                                }else {
                                tResultado.setRowSelectionAllowed(false);
        /** 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() {
            rbGroup = new javax.swing.ButtonGroup();
            jLabel1 = new javax.swing.JLabel();
            jSeparator1 = new javax.swing.JSeparator();
            textIdE = new javax.swing.JTextField();
            jLabel2 = new javax.swing.JLabel();
            bOk = new javax.swing.JButton();
            bExit = new javax.swing.JButton();
            tJSPt = new javax.swing.JScrollPane();
            tResultado = new javax.swing.JTable();
            tIdCompu = new javax.swing.JTextField();
            jLabel3 = new javax.swing.JLabel();
            bConnect = new javax.swing.JButton();
            rButton1 = new javax.swing.JRadioButton();
            rButton2 = new javax.swing.JRadioButton();
            bSave = new javax.swing.JButton();
            setDefaultCloseOperation(javax.swing.WindowConstants.EXIT_ON_CLOSE);
            setTitle("Consulta Activos Por Empleado");
            jLabel1.setText("Consulta de Activos por Empleados");
            jLabel2.setText("Id de Empleado :");
            bOk.setText("Aceptar");
            bOk.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    bOkMouseClicked(evt);
            bExit.setText("Borrar");
            bExit.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    bExitMouseClicked(evt);
         modeloDef = new javax.swing.table.DefaultTableModel(
              new Object [][] {
                new String [] {
                    "Codigo Barra", "Descripci?n", "Categor?a", "Situaci?n", "Departamento", "Nro. Modelo", "Nro. Serie", "Empresa", "Comentarios", "AR Number", "Sistema Operativo", "Version Office"
                boolean[] canEdit = new boolean [] {
                    false, true, true, true, true, true, true, true, true, true, true, true
         public boolean isCellEditable(int rowIndex, int columnIndex){
              return canEdit [columnIndex];
            tResultado.setModel(modeloDef);
            tJSPt.setViewportView(tResultado);
            jLabel3.setText("Command");
            bConnect.setText("Conectar");
            bConnect.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    bConnectMouseClicked(evt);
            rbGroup.add(rButton1);
            rButton1.setText("Por Apellido");
            rButton1.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            rButton1.setMargin(new java.awt.Insets(0, 0, 0, 0));
            rbGroup.add(rButton2);
            rButton2.setText("Por Nombre & Apellido");
            rButton2.setBorder(javax.swing.BorderFactory.createEmptyBorder(0, 0, 0, 0));
            rButton2.setMargin(new java.awt.Insets(0, 0, 0, 0));
            bSave.setText("Guardar Cambios");
            bSave.addMouseListener(new java.awt.event.MouseAdapter() {
                public void mouseClicked(java.awt.event.MouseEvent evt) {
                    bSaveMouseClicked(evt);
            org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(getContentPane());
            getContentPane().setLayout(layout);
            layout.setHorizontalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(tJSPt, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)
                        .add(org.jdesktop.layout.GroupLayout.TRAILING, jSeparator1, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, 668, Short.MAX_VALUE)
                        .add(layout.createSequentialGroup()
                            .add(253, 253, 253)
                            .add(jLabel1)))
                    .addContainerGap())
                .add(layout.createSequentialGroup()
                    .add(20, 20, 20)
                    .add(jLabel2)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING, false)
                        .add(layout.createSequentialGroup()
                            .add(bOk)
                            .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                            .add(bExit, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 73, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                        .add(textIdE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createSequentialGroup()
                            .add(rButton1)
                            .add(53, 53, 53)
                            .add(jLabel3))
                        .add(rButton2))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(tIdCompu, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 151, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(bConnect))
                    .add(87, 87, 87))
                .add(org.jdesktop.layout.GroupLayout.TRAILING, layout.createSequentialGroup()
                    .addContainerGap(553, Short.MAX_VALUE)
                    .add(bSave)
                    .addContainerGap())
            layout.setVerticalGroup(
                layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                .add(layout.createSequentialGroup()
                    .addContainerGap()
                    .add(jLabel1)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(jSeparator1, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 14, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                        .add(jLabel2)
                        .add(textIdE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(rButton1)
                        .add(tIdCompu, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                        .add(jLabel3))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                        .add(layout.createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(bOk)
                            .add(bExit))
                        .add(bConnect)
                        .add(rButton2))
                    .add(23, 23, 23)
                    .add(tJSPt, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE, 151, org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(bSave)
                    .addContainerGap(27, Short.MAX_VALUE))
            pack();
        }// </editor-fold>                       
        private void bSaveMouseClicked(java.awt.event.MouseEvent evt) {                                  
    // TODO add your handling code here:
            tempDep.removeAllElements();
            tempCat.removeAllElements();
            tempSit.removeAllElements();
            actualizarDatos();
        private void bConnectMouseClicked(java.awt.event.MouseEvent evt) {                                     
            try {
    // TODO add your handling code here:
                //this.obtnerValue();
                int n = cmdPing();
                //new windowCmd(tIdCompu.getText()).setVisible(true);
                /*windowCmd ventanaPing = new windowCmd();
                ventanaPing.setTemp(tIdCompu.getText());
                ventanaPing.setearAreaTexto();
                ventanaPing.setVisible(true);*/
            } catch (Exception ex) {
                ex.printStackTrace();
        private void bExitMouseClicked(java.awt.event.MouseEvent evt) {                                  
    // TODO add your handling code here:
            limpiarTabla();
        private void bOkMouseClicked(java.awt.event.MouseEvent evt) {                                
    // TODO add your handling code here:
            if(bOk.isEnabled())
                this.bOk.setEnabled(false);
                obtenerEmpleado();
                mostrarDatos();
         * @param args the command line arguments
        public static void main(String args[]) {
            java.awt.EventQueue.invokeLater(new Runnable() {
                public void run() {
                    new Main().setVisible(true);
        public void setUpCategoryColumn(JTable table, TableColumn categoryColumn) {
            JComboBox comboBox = new JComboBox();
            Connection conn = null;
            Conexion ejSQL = new Conexion();
            String consulta="";
            ResultSet rs=null;
            Vector vCombo = new Vector();
            if(ejSQL.conectar())
                try
                    conn = ejSQL.getConexion();//obtiene la conexion
                    consulta = "SELECT CategoriaActivo FROM Categorias_de_activo";
                    rs = ejSQL.ejecutarConsulta(consulta);
                    while(rs.next())
                        vCombo.addElement(rs.getString(1));
                    for(int i=0;i<vCombo.size();i++)
                        comboBox.addItem(vCombo.get(i));
                    categoryColumn.setCellEditor(new DefaultCellEditor(comboBox));
                    //Set up tool tips for the sport cells.
                    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
                    renderer.setToolTipText("Click for combo box");
                    categoryColumn.setCellRenderer(renderer);
                    ejSQL.cerrarConexion();
                catch(SQLException e)
                        System.out.println("SQLException: " + e.getMessage());
                        while((e = e.getNextException()) != null)
                            System.out.println(e.getMessage());
         else
                System.out.println("Ha ocurrido un error con la base de datos");
        public void setUpSituationColumn(JTable table, TableColumn situationColumn) {
            JComboBox comboBox = new JComboBox();
            Connection conn = null;
            Conexion ejSQL = new Conexion();
            String consulta="";
            ResultSet rs=null;
            Vector vCombo = new Vector();
            if(ejSQL.conectar())
                try
                    conn = ejSQL.getConexion();//obtiene la conexion
                    consulta = "SELECT Situacion FROM Situacion";
                    rs = ejSQL.ejecutarConsulta(consulta);
                    while(rs.next())
                        vCombo.addElement(rs.getString(1));
                    for(int i=0;i<vCombo.size();i++)
                        comboBox.addItem(vCombo.get(i));
                    situationColumn.setCellEditor(new DefaultCellEditor(comboBox));
                    //Set up tool tips for the sport cells.
                    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
                    renderer.setToolTipText("Click for combo box");
                    situationColumn.setCellRenderer(renderer);
                    ejSQL.cerrarConexion();
                catch(SQLException e)
                        System.out.println("SQLException: " + e.getMessage());
                        while((e = e.getNextException()) != null)
                            System.out.println(e.getMessage());
         else
                System.out.println("Ha ocurrido un error con la base de datos");
        public void setUpDepartmentColumn(JTable table, TableColumn departmentColumn) {
            JComboBox comboBox = new JComboBox();
            Connection conn = null;
            Conexion ejSQL = new Conexion();
            String consulta="";
            ResultSet rs=null;
            Vector vCombo = new Vector();
            if(ejSQL.conectar())
                try
                    conn = ejSQL.getConexion();//obtiene la conexion
                    consulta = "SELECT NombreDepartamento FROM Departamentos";
                    rs = ejSQL.ejecutarConsulta(consulta);
                    while(rs.next())
                        vCombo.addElement(rs.getString(1));
                    for(int i=0;i<vCombo.size();i++)
                        comboBox.addItem(vCombo.get(i));
                    departmentColumn.setCellEditor(new DefaultCellEditor(comboBox));
                    //Set up tool tips for the sport cells.
                    DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
                    renderer.setToolTipText("Click for combo box");
                    departmentColumn.setCellRenderer(renderer);
                    ejSQL.cerrarConexion();
                catch(SQLException e)
                        System.out.println("SQLException: " + e.getMessage());
                        while((e = e.getNextException()) != null)
                            System.out.println(e.getMessage());
         else
                System.out.println("Ha ocurrido un error con la base de datos");
        public void limpiarTabla(){
            this.bOk.setEnabled(true);
         this.textIdE.setText("");
            this.tIdCompu.setText("");
            int numFilas = this.tResultado.getRowCount();
            int numColumnas = this.tResultado.getColumnCount();
            vDepa.removeAllElements();
            vDescrip.removeAllElements();
            vSitua.removeAllElements();
            for(int i=0;i<numColumnas;i++)
                for(int j=0;j<numFilas;j++)
                    //modeloDef.setValueAt("",j,i);
                    modeloDef.removeRow(i);
            //System.out.println(numFilas + "+" + numColumnas);
            /*for(int i=0;i<numFilas;i++)
                System.out.println("borro " + i);
                modeloDef.removeRow(i);
                modeloDef.fireTableRowsDeleted(1,numFilas+1);
        public void obtenerEmpleado(){
            String nomEmpleado;
            nomEmpleado = textIdE.getText();
            if(rButton2.isSelected())
                obEmpleado.separarNombre(nomEmpleado);
                if (!obEmpleado.obtenerCodEmpleado()){
                    JOptionPane.showMessageDialog(null,"Usuario Incorrecto o No Existe!", "Mensaje!",JOptionPane.ERROR_MESSAGE);
                    textIdE.setText(null);
                    bOk.setEnabled(true);
            if(rButton1.isSelected())
        public int cmdPing() throws Exception
        Process p;
        int intResult;
        String strExec = new String(tIdCompu.getText());
        //p=Runtime.getRuntime().exec(strExec); // start the process
        p=Runtime.getRuntime().exec(strExec); // Modificar
        // now set something up that scans for output (independently)
        MGStreamGobbler mgSGErrors = new MGStreamGobbler(p.getErrorStream(),"error ");
        MGStreamGobbler mgSGOutput = new MGStreamGobbler(p.getInputStream(),"output ");
        // start the somethings
        mgSGErrors.start();
        mgSGOutput.start();
        // now wait for the actual process to end, wait for it's result
        intResult=p.waitFor();
        //String pruebaIP = mgSGOutput.extractIp();
        //tIdCompu.setText(pruebaIP);
        return(intResult);
       /**obtiene y ejecuta el CMD de Windows para poder obtener IP
        * de una computadora atraves del nombre de dicha maquina
        public void obtnerValue(){
                //tIdCompu.setText("ping -t wna-gye-"+obActivo.getIpCod());
            /*    Runtime r=Runtime.getRuntime (  ) ;
            try {
                Process P=r.exec(tIdCompu.getText());
            } catch (IOException ex) {
                ex.printStackTrace();
        public void mostrarDatos(){
        Connection conn = null;
        Conexion ejSQL = new Conexion();
        String consulta;
        int i=0, idEmpleado, cont = 0;
        ResultSet rs=null;
        idEmpleado = obEmpleado.getIdEmpleado();
            if(ejSQL.conectar())
                try
                    conn = ejSQL.getConexion();//obtiene la conexion
                    consulta = "SELECT act.Descripci?nActivo, cat.CategoriaActivo, sit.Situacion, dep.NombreDepartamento, act.N?mModelo, act.N?mSerie, act.C?digoDeBarras, act.Empresa, act.Comentarios_, act.Capital_Apropiation, act.Wd, act.Offi FROM Activos act, Categorias_de_Activo cat, Situacion sit, Departamentos dep WHERE act.IdEmpleado = "+idEmpleado+" And act.IdCategoriaActivo=cat.IdCategoriaActivo And act.IdSituacion = sit.IdSituacion And act.IdDepartamento=dep.IdDepartamento ORDER BY act.IdSituacion, act.IdCategoriaActivo";
                    //consulta = "SELECT DescripcionActivo FROM Activos";
                    rs = ejSQL.ejecutarConsulta(consulta);
                    while(rs.next())
                        vDescrip.addElement(rs.getString(1));
                        obActivo.setIdCategoria(rs.getString(2));
                        vSitua.addElement(rs.getString(3));
                        vDepa.addElement(rs.getString(4));
                        obActivo.setNumModelo(rs.getString(5));
                        obActivo.setNumSerie(rs.getString(6));
                        obActivo.setIdCodBarra(rs.getString(7));
                        obActivo.setEmpresa(rs.getString(8));
                        obActivo.setComentario(rs.getString(9));
                        obActivo.setArSerie(rs.getString(10));
                        obActivo.setOperativo(rs.getString(11));
                        obActivo.setOffice(rs.getString(12));
                        Object[] newRow={obActivo.getIdCodBarra(), vDescrip.get(i), obActivo.getIdCategoria(),
                        vSitua.get(i), vDepa.get(i), obActivo.getNumModelo(), obActivo.getNumSerie(),
                        obActivo.getEmpresa(), obActivo.getComentario(), obActivo.getArSerie(),
                        obActivo.getOperativo(), obActivo.getOffice()};
                        modeloDef.addRow(newRow);
                        i++;
                        cont++;
                    tResultado.updateUI();
                    ejSQL.cerrarConexion();
                catch(SQLException e)
                        System.out.println("SQLException: " + e.getMessage());
                        while((e = e.getNextException()) != null)
                            System.out.println(e.getMessage());
         else
                System.out.println("Ha ocurrido un error con la base de datos");
        public void actualizarDatos(){
            Connection conn = null;
            Conexion ejSQL = new Conexion();
            String consulta;
            //int i=0, idEmpleado, cont = 0;////////////
            ResultSet rs=null;
            //idEmpleado = obEmpleado.getIdEmpleado();//////////
            Vector tempCod = new Vector();
            Vector tempDes = new Vector();
            Vector tempMod = new Vector();
            Vector tempSer = new Vector();
            Vector tempEmp = new Vector();
            Vector tempCom = new Vector();
            Vector tempAR = new Vector();
            Vector tempOpe = new Vector();
            Vector tempOff = new Vector();
            int numFilas = this.tResultado.getRowCount();
            int numColumnas = this.tResultado.getColumnCount();
            for(int j=0;j<numFilas;j++)
                //System.out.println(numFilas +"+"+numColumnas);
                for(int k=0;k<numColumnas;k++)
                    //modeloDef.removeRow(j);
                    //System.out.println(modeloDef.getValueAt(j,k));
                    if(modeloDef.getValueAt(j,k)==null)
                        modeloDef.setValueAt("  ",j,k);
                    switch(k)
                        case 0:
                            tempCod.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempCod.lastElement());
                            break;
                        case 1:
                            tempDes.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempDes.lastElement());
                            break;
                        case 2:
                            tempCat.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempCat.lastElement());
                            break;
                        case 3:
                            tempSit.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempSit.lastElement());
                            break;
                        case 4:
                            tempDep.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempDep.lastElement());
                            break;
                        case 5:
                            tempMod.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempMod.lastElement());
                            break;
                        case 6:
                            tempSer.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempSer.lastElement());
                            break;
                        case 7:
                            tempEmp.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempEmp.lastElement());
                            break;
                        case 8:
                            tempCom.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempCom.lastElement());
                            break;
                        case 9:
                            tempAR.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempAR.lastElement());
                            break;
                        case 10:
                            tempOpe.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempOpe.lastElement());
                            break;
                        case 11:
                            tempOff.addElement(modeloDef.getValueAt(j,k));
                            //System.out.println(tempOff.lastElement());
                            break;
            actualizarDepartamento();
            actualizarCategoria();
            actualizarSituacion();
            if(ejSQL.conectar())
                try
                    conn = ejSQL.getConexion();//obtiene la conexion
                    for(int i=0;i<tempDep.size();i++ )
                        System.out.println(tempOff.get(i));
                        consulta = "UPDATE Activos SET Descripci?nActivo='"+tempDes.get(i)+"'  WHERE C?digoDeBarras = '"+tempCod.get(i)+"'";
                        rs = ejSQL.ejecutarConsulta(consulta);
                    for(int i=0;i<tempMod.size();i++ )
                        consulta = "UPDATE Activos SET N?mModelo='"+tempMod.get(i)+"' WHERE C?digoDeBarras = '"+tempCod.get(i)+"'";                  
                        rs = ejSQL.ejecutarConsulta(consulta);
                    for(int i=0;i<tempSer.size();i++ )
                        consulta = "UPDATE Activos SET N?mSerie='"+tempSer.get(i)+"' WHERE C?digoDeBarras = '"+tempCod.get(i)+"'";                  
                        rs = ejSQL.ejecutarConsulta(consulta);
                    for(int i=0;i<tempEmp.size();i++ )
                        consulta = "UPDATE Activos SET Empresa='"+tempEmp.get(i)+"' WHERE C?digoDeBarras = '"+tempCod.get(i)+"'";                  
                        rs = ejSQL.ejecutarConsulta(consulta);
                    for(int i=0;i<tempCom.size();i++ )
                        consulta = "UPDATE Activos SET Comentarios_='"+tempCom.get(i)+"' WHERE C?digoDeBarras = '"+tempCod.get(i)+"'";                  
                        rs = ejSQL.ejecutarConsulta(consulta);
                    for(int i=0;i<tempAR.size();i++ )
                        consulta = "UPDATE Activos SET Capital_Apropiation='"+tempAR.get(i)+"' WHERE C?digoDeBarras = '"+tempCod.get(i)+"'";                  
                        rs = ejSQL.ejecutarConsulta(consulta);
                    for(int i=0;i<tempOpe.size();i++ )
                        consulta = "UPDATE Activos SET Wd='"+tempOpe.get(i)+"' WHERE C?digoDeBarras = '"+tempCod.get(i)+"'";                  
                        rs = ejSQL.ejecutarConsulta(consulta);
                    for(int i=0;i<tempOff.size();i++ )
                        consulta = "UPDATE Activos SET Offi='"+tempOff.get(i)+"' WHERE C?digoDeBarras = '"+tempCod.get(i)+"'";                  
                        rs = ejSQL.ejecutarConsulta(consulta);
                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                                     

    Hi
    Not sure what the use case is here but what I would do is to make sure when you create the employee or whatever the salary gets initialised to 0, db trigger, default etc.
    instead of null (null values can be a PITA when you have to search on them)
    Then all you have to do is to force a numeric input, the user can type 0 for all unassigned salaries.
    This removes the problem you have of leaving the box blank and having to accept the word NULL as an input value.
    HTH
    Paul

  • The PR of my CO runs 2 times

    Hi Gurus,
    I gotta a problem here, my processRequest runs twice, everytime, how can I fix this problem? because I many validations fails due to this problem.
    oops, I almoust forgot, the PR runs once after I invoke a method of the PFR and then runs another two times, and I don't know what can I do to fix this.
    Best Regards,
    Mentor
    PS.
    Please let me know if you want me to post the code
    Edited by: mentor on Nov 2, 2010 9:15 PM

    Hi guys, here's my CO code.
    Regards,
    Mentor
    import java.io.Serializable;
    import java.util.ArrayList;
    import java.util.Hashtable;
    import java.util.List;
    import oracle.apps.fnd.common.VersionInfo;
    import oracle.apps.fnd.framework.OAException;
    import oracle.apps.fnd.framework.OAViewObject;
    import oracle.apps.fnd.framework.webui.OABoundValueEmbedURL;
    import oracle.apps.fnd.framework.webui.OAControllerImpl;
    import oracle.apps.fnd.framework.webui.OADataBoundValueFireActionURL;
    import oracle.apps.fnd.framework.webui.OAPageContext;
    import oracle.apps.fnd.framework.webui.OAWebBeanConstants;
    import oracle.apps.fnd.framework.webui.beans.OAImageBean;
    import oracle.apps.fnd.framework.webui.beans.OAWebBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OABulletedListBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAHeaderBean;
    import oracle.apps.fnd.framework.webui.beans.layout.OAPageLayoutBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageChoiceBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageStyledTextBean;
    import oracle.apps.fnd.framework.webui.beans.message.OAMessageTextInputBean;
    import oracle.apps.fnd.framework.webui.beans.nav.OALinkBean;
    import oracle.apps.fnd.framework.webui.beans.nav.OASideNavBean;
    import oracle.cabo.style.CSSStyle;
    import oracle.jbo.Row;
    import client.oracle.apps.ap.activo.administracion.activos.server.ActivoAtributoVORowImpl;
    import client.oracle.apps.ap.activo.administracion.activos.server.ActivosAMImpl;
    import client.oracle.apps.ap.activo.administracion.activos.server.AtributoGenericoVORowImpl;
    import client.oracle.apps.ap.activo.administracion.activos.server.ComparaActivoAtributoVORowImpl;
    import client.oracle.apps.ap.activo.administracion.activos.server.FullActivoAtributoVORowImpl;
    import client.oracle.apps.ap.activo.administracion.activos.server.FullAtributosFamiliaVORowImpl;
    import client.oracle.apps.ap.activo.administracion.activos.server.GenericoFamiliaVORowImpl;
    * Controller for ...
    public class addCampoActivoCO extends OAControllerImpl
    public static final String RCS_ID="$Header: /ActivoFijo/OAActivoFijo/client/oracle/apps/ap/activo/administracion/activos/webui/addCampoActivoCO.java,v 1.2 2010/09/01 15:04:41 mtijerina Exp $";
    public static final boolean RCS_ID_RECORDED =
    VersionInfo.recordClassVersion(RCS_ID, "%packagename%");
    private List<String> lstFam = null;
    private List<String> lstIdFam = null;
    private String oldName = null;
    private String newName = null;
    * Layout and page setup logic for a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processRequest(pageContext, webBean);
    ActivosAMImpl am = (ActivosAMImpl)pageContext.getApplicationModule(webBean);
    if(am.getUsuarioLog() != 0)
    am.setUsuarioLog(pageContext.getUserId());
    am.invokeMethod("cargarFamilias");
    /* Inicio insertar estilo al texto con el nombre de la familia seleccionada */
    OAMessageStyledTextBean msg = (OAMessageStyledTextBean)webBean.findChildRecursive("tituloFamTX");
    CSSStyle style = new CSSStyle();
    style.setProperty("font-weight", "bold");
    msg.setInlineStyle(style);
    msg.setText(am.getNombFamilia());
    /* Fin insertar estilo al texto con el nombre de la familia seleccionada */
    /* Inicio insertar estilo al texto 'Activos' */
    OAMessageStyledTextBean lbl = (OAMessageStyledTextBean)webBean.findChildRecursive("lblActivo");
    lbl.setText("Activos");
    CSSStyle style2 = new CSSStyle();
    style2.setProperty("font", "13");
    style2.setProperty("font-weight", "bold");
    lbl.setInlineStyle(style2);
    /* Fin insertar estilo al texto 'Activos' */
    if(am.getEdoPantalla() != 1){
    webBean.findChildRecursive("footerRG").setRendered(true);
    OAMessageTextInputBean atrEdit = (OAMessageTextInputBean)webBean.findChildRecursive("modCampoTX");
    if(am.nomAtr != ""){
    atrEdit.setPrompt("Modificar Campo "+am.getNomAtr());
    atrEdit.setText(am.getNomAtr());
    this.setOldName(am.getNomAtr());
    }else{
    atrEdit.setPrompt("Modificar Campo "+am.getDescOracle());
    atrEdit.setText(am.getDescOracle());
    pageContext.putTransactionValue("descOra","true");
    this.setOldName(am.getNomAtr());
    webBean.findChildRecursive("saveChangesLNK").setRendered(false);
    webBean.findChildRecursive("guardarLNK").setRendered(false);
    }else if(am.transAt != false){
    webBean.findChildRecursive("footerRG").setRendered(false);
    am.invokeMethod("cargarCampos", new Serializable[]{am.activo});
    webBean.findChildRecursive("saveChangesLNK").setRendered(true);
    webBean.findChildRecursive("guardarLNK").setRendered(true);
    throw new OAException("Se ha modificado el nombre del campo '" + oldName + "' a '" + newName + "'.", OAException.INFORMATION);
    }else{
    webBean.findChildRecursive("footerRG").setRendered(false);
    webBean.findChildRecursive("saveChangesLNK").setRendered(true);
    webBean.findChildRecursive("guardarLNK").setRendered(true);
    /** SECCION LINK PARA POPUP CREAR NUEVO CAMPO */
    OALinkBean linkCampo = (OALinkBean) webBean.findChildRecursive("nvoCampoLNK");
    OAImageBean imgCampo = (OAImageBean)webBean.findChildRecursive("item9");
    //url de la pagina
    String url = "/client/oracle/apps/ap/activo/administracion/activos/webui/popupCampo";
    //confirmando AM
    String amMode ="true";
    //campo para agregar parametros (opcional)
    //String params="";
    //procesando URL de pagina
    String page =
    url + "&retainAM=" + amMode + "&fndOAJSPinEmbeddedMode=y"; // + "&" + params;
    //procesando el URL final
    String destURL = OAWebBeanConstants.APPS_HTML_DIRECTORY +
    OAWebBeanConstants.APPLICATION_JSP + "?" +
    OAWebBeanConstants.JRAD_PAGE_URL_CONSTANT +
    "=" + page;
    //Asegurando funcion JS de la validacion llave MAC
    OABoundValueEmbedURL jsBound = new OABoundValueEmbedURL(linkCampo, "openWindow(self, '",
    destURL, "' , 'longTipWin', {width:680, height:280, " +
    "left:370, top:200}, true); return false;");
    //attachando bound en la funcionalidad on_click del boton.
    linkCampo.setAttributeValue(OAWebBeanConstants.ON_CLICK_ATTR, jsBound);
    imgCampo.setAttributeValue(OAWebBeanConstants.ON_CLICK_ATTR, jsBound);
    /**METODO PARA LLENAR POP-LIST (Dropdown select)
    if(am.getFamilia() != null && am.isTrans() != false){
    OAMessageStyledTextBean mje = (OAMessageStyledTextBean)webBean.findChildRecursive("tituloFamTX");
    String m = pageContext.getParameter("NombreDeFamilia").toString();
    am.setNombFamilia(m);
    mje.setText(am.getNombFamilia());
    am.invokeMethod("cargarActivos", new Serializable[]{am.getFamilia()});
    //crearRowTodos(pageContext, webBean);
    OAMessageChoiceBean choice = (OAMessageChoiceBean)webBean.findChildRecursive("popList");
    choice.setPickListCacheEnabled(false);
    choice.setPickListViewUsageName("ActivosPopListVO1");
    choice.setListDisplayAttribute("Descripcion");
    choice.setListValueAttribute("ClaveActivo");
    choice.setAllowBlankValue(false);
    // Tabla menu de busqueda y lista de familias.
    OASideNavBean sideNav = (OASideNavBean)createWebBean(pageContext,
    OAWebBeanConstants.SIDE_NAV_BEAN, null, "hpSideNav");
    OAHeaderBean search = (OAHeaderBean)createWebBean(pageContext,
    "client/oracle/apps/ap/activo/administracion/familia/webui/sideNavRN",
    "SearchRN", true);
    sideNav.addIndexedChild(search);
    search.setSize(2);
    // Creacion de contenedor de la lista
    OABulletedListBean bullets = (OABulletedListBean)createWebBean(pageContext,
    OAWebBeanConstants.BULLETED_LIST_BEAN, null, "bulletList");
    bullets.setRows(100);
    lstFam = new ArrayList<String>();
    lstFam = am.lstFamilias;
    lstIdFam = new ArrayList<String>();
    lstIdFam = am.lstIdFamilias;
    String pageName = pageContext.getRootRegionCode();
    Hashtable params = new Hashtable (1);
    Hashtable paramsWithBinds = new Hashtable(1);
    for(int i = 0; i < lstFam.size(); i++){  
    // Crear Link de cada elemento de la lista
    try{
    OALinkBean link = (OALinkBean)createWebBean(pageContext,
    OAWebBeanConstants.LINK_BEAN, null, "linkEx");
    link.setText(lstFam.get(i).toString());
    String param = lstIdFam.get(i);
    String paramN = lstFam.get(i);
    params.put ("param1", pageName);
    paramsWithBinds.put ("IdCatalogoFamilias",new OADataBoundValueFireActionURL(link, param));
    paramsWithBinds.put ("NombreDeFamilia",new OADataBoundValueFireActionURL(link, paramN));
    link.setFireActionForSubmit("familia", params, paramsWithBinds, true, false);
    bullets.addIndexedChild(link);
    }catch(Exception e){
    System.out.println(e);
    System.out.println("mensaje: " + e.getMessage());
    //Adjuntar elementos en barra de navegacion
    sideNav.addIndexedChild(bullets);
    OAPageLayoutBean pageLayout = pageContext.getPageLayoutBean();
    pageLayout.prepareForRendering(pageContext);
    pageLayout.setStart(sideNav);
    /**INSTRUCCIONES DE LLENADO DE ViewObject
    * PARA MOSTRAR INFORMACION EN LA TABLA DE CAMPOS
    if(pageContext.getTransactionValue("cargarCampos") == "true"){
    if(pageContext.getTransactionValue("todos1") == "true"){
    tablaTodos(pageContext, webBean);
    pageContext.removeTransactionValue("todos1");
    }else{
    modificarTabla(pageContext, webBean);
    pageContext.removeTransactionValue("cargarCampos");
    //LLENADO DE PANTALLA DESPUES DE VENTANA POP-UP
    if(am.getRefresh() != null && am.getFamilia() != null){
    tablaTodos(pageContext, webBean);
    am.setTodos("1");
    am.setRefresh(null);
    am.setIteracion(false);
    am.setPopup(false);
    * Procedure to handle form submissions for form elements in
    * a region.
    * @param pageContext the current OA page context
    * @param webBean the web bean corresponding to the region
    public void processFormRequest(OAPageContext pageContext, OAWebBean webBean)
    super.processFormRequest(pageContext, webBean);
    ActivosAMImpl am = (ActivosAMImpl)pageContext.getApplicationModule(webBean);
    //EVENTO DE LINK MENU PARA CARGAR ACTIVOS DE FAMILIA EN POPLIST
    if(pageContext.getParameter(EVENT_PARAM).equals("familia")){
    String cveFam = pageContext.getParameter("IdCatalogoFamilias").toString().trim();
    am.setTrans(true);
    am.setFamilia(cveFam);
    tablaTodos(pageContext, webBean);
    am.setTodos("1");
    am.setEdoPantalla(1);
    //EVENTO CAMBIO OnChange DE POPLIST PARA CARGAR ATRIBUTOS EN TABLA
    if(pageContext.getParameter(EVENT_PARAM).equals("onChange")){
    String cveAct = pageContext.getParameter("popList").toString().trim();
    if(!cveAct.equals("")){
    if(!cveAct.equals("000")){
    am.setTodos("0");
    am.invokeMethod("cargarCampos", new Serializable[]{cveAct});
    }else{
    am.setActivo("");
    am.setTodos("1");
    am.invokeMethod("atributoTodos");
    pageContext.putTransactionValue("todos","true");
    pageContext.putTransactionValue("todos1","true");
    pageContext.putTransactionValue("cargarCampos","true");
    //EVENTO PARA EDITAR NOMBRE ATRIBUTO Y DESPLEGAR REGION footerRG
    if(pageContext.getParameter(EVENT_PARAM).equals("editarAtributo")){
    String atributo = pageContext.getParameter("editarIdAtributo").toString().trim();
    String nomAtr = pageContext.getParameter("editarNomAtr").toString().trim();
    String descOracle = pageContext.getParameter("editarDescOracle").toString().trim();
    am.setAtributo(atributo);
    am.setNomAtr(nomAtr);
    am.setDescOracle(descOracle);
    am.setEdoPantalla(2);
    if(nomAtr != "")
    am.setRelacion(1);
    pageContext.putTransactionValue("cargarCampos","true");
    //EVENTO PARA GUARDAR NUEVO NOMBRE ATRIBUTO Y OCULTAR REGION footerRG
    if(pageContext.getParameter(EVENT_PARAM).equals("guardarNomAtr")){
    String nvoNom = pageContext.getParameter("modCampoTX");
    int idAtri = Integer.parseInt(am.getAtributo());
    if(!nvoNom.equals("") && !nvoNom.equals(this.oldName)){
    this.setNewName(nvoNom);
    if(pageContext.getTransactionValue("todos") == "true"){
    am.setTodos("1");
    //VALIDACION DE IDs PARA ATRIBUTOS GENERICOS
    if(idAtri >= 24 && idAtri <= 33){
    am.setAccion(2);
    am.setSeqIdAtributo(idAtri);
    am.invokeMethod("guardarNvoAtributo", new Serializable[]{nvoNom});
    }else{
    am.invokeMethod("nuevoNombreAtributo", new Serializable[]{nvoNom, String.valueOf(idAtri)});
    pageContext.removeTransactionValue("todos");
    }else{
    am.setTodos("0");
    if(pageContext.getTransactionValue("descOra") == "true"){
    //VALIDAR SI EXISTE NOMBRE
    boolean existe = am.validaAtributoGenerico(nvoNom);
    if(am.validaAtributoGenerico(nvoNom)){
    //INSERTA NUEVO ATRIBUTO PARA ATRIBUTO GENERICO
    am.setAccion(1);
    }else{
    //ACTUALIZA RELACION ATRIBUTO PARA ATRIBUTO GENERICO
    am.setAccion(2);
    am.setSeqIdAtributo(idAtri);
    am.invokeMethod("guardarNvoAtributo", new Serializable[]{nvoNom});
    }else{
    am.invokeMethod("nuevoNombreAtributo", new Serializable[]{nvoNom, String.valueOf(idAtri)});
    }else{
    throw new OAException("Ingresar nombre de Atributo.", OAException.INFORMATION);
    pageContext.putTransactionValue("cargarCampos","true");
    pageContext.removeTransactionValue("descOra");
    am.setEdoPantalla(1);
    //LINK "GUARDAR CAMBIOS" PARA ACTUALIZAR/MODIFICAR NOMBRE DE ATRIBUTO
    if(pageContext.getParameter(EVENT_PARAM).equals("guardarCambios")){
    am.invokeMethod("guardarCambios");
    pageContext.putTransactionValue("cargarCampos","true");
    if(am.getTodos().equals("1"))
    pageContext.putTransactionValue("todos1","true");
    //BOTON BORRAR ATRIBUTO
    if(pageContext.getParameter(EVENT_PARAM).equals("borrarIMG")){
    String id = pageContext.getParameter("borrarIdAtributo").toString().trim();
    am.invokeMethod("borrarAtributo", new Serializable[]{id});
    pageContext.setForwardURLToCurrentPage(null, true, ADD_BREAD_CRUMB_NO, IGNORE_MESSAGES);
    /**METODO PARA MODIFICAR LA TABLA QUE SE MOSTRARA EN PANTALLA
    * @param pageContext
    * @param webBean
    private void modificarTabla(OAPageContext pageContext, OAWebBean webBean) {
    //Aplication Module
    ActivosAMImpl am = (ActivosAMImpl)pageContext.getApplicationModule(webBean);
    OAViewObject v = (OAViewObject)am.findViewObject("ActivoAtributoVO1");
    am.setNullVO();
    //int global = 0;
    Row[] fullVO = am.getVOFull();
    Row[] compVO = am.getVOCompara();
    int full = fullVO.length;
    for(int i = 0; i < full; i++){
    FullActivoAtributoVORowImpl f = (FullActivoAtributoVORowImpl)fullVO;
    ActivoAtributoVORowImpl row = (ActivoAtributoVORowImpl)v.last();
    v.setCurrentRow(row);
    v.next();
    ComparaActivoAtributoVORowImpl c = (ComparaActivoAtributoVORowImpl)compVO[i];
    ActivoAtributoVORowImpl o = (ActivoAtributoVORowImpl)v.createRow();
    int bdaf = Integer.parseInt(f.getBdaf().toString());
    int id = Integer.parseInt(f.getIdCatalogoAtributos().toString());
    if(bdaf == 0){
    //VALIDACION DE IDs PARA ATRIBUTOS GENERICOS
    if(id >= 24 && id <= 33){
    o.setEditar(true);
    }else{
    o.setEditar(false);
    o.setFlag(false);
    o.setIdCatalogoAtributos(f.getIdCatalogoAtributos());
    o.setDescOracle(f.getAtributo());
    o.setAtributo(f.getDescHandheld());
    o.setHandheld(f.getHandheld().toString());
    o.setMandatorio(f.getMandatorio());
    //COMPARA VO
    c.setIdCatalogoAtributos(f.getIdCatalogoAtributos());
    c.setDescOracle(f.getAtributo());
    c.setAtributo(f.getDescHandheld());
    c.setHandheld(f.getHandheld());
    c.setMandatorio(f.getMandatorio());
    }else{
    o.setFlag(true);
    o.setEditar(true);
    o.setDescOracle("");
    o.setAtributo(f.getAtributo());
    o.setIdCatalogoAtributos(f.getIdCatalogoAtributos());
    o.setHandheld(f.getHandheld().toString());
    o.setMandatorio(f.getMandatorio());
    //COMPARA VO
    c.setDescOracle("");
    c.setAtributo(f.getAtributo());
    c.setIdCatalogoAtributos(f.getIdCatalogoAtributos());
    c.setHandheld(f.getHandheld());
    c.setMandatorio(f.getMandatorio());
    v.insertRow(o);
    /**METODO PARA EDITAR LA TABLA QUE SE MOSTRARA EN PANTALLA PARA
    * CUANDO EL USUARIO SELECCIONA LA OPCION 'TODOS'
    * @param pageContext
    * @param webBean
    private void tablaTodos(OAPageContext pageContext, OAWebBean webBean) {
    ActivosAMImpl am = (ActivosAMImpl)pageContext.getApplicationModule(webBean);
    am.setNullVO();
    OAViewObject v = (OAViewObject)am.findViewObject("ActivoAtributoVO1");
    OAViewObject v1 = (OAViewObject)am.findViewObject("ComparaActivoAtributoVO1");
    ActivoAtributoVORowImpl row = (ActivoAtributoVORowImpl)v.last();
    v.setCurrentRow(row);
    v.next();
    ComparaActivoAtributoVORowImpl row1 = (ComparaActivoAtributoVORowImpl)v1.last();
    v1.setCurrentRow(row1);
    v1.next();
    Row[] todos = am.getVOTodos();
    int tod = todos.length;
    for(int i = 0; i < tod; i++){
    FullAtributosFamiliaVORowImpl f = (FullAtributosFamiliaVORowImpl)todos[i];
    int bdaf = Integer.parseInt(f.getBdaf().toString());
    int id = Integer.parseInt(f.getIdCatalogoAtributos().toString());
    if(bdaf == 0){
    ActivoAtributoVORowImpl o = (ActivoAtributoVORowImpl)v.createRow();
    ComparaActivoAtributoVORowImpl o1 = (ComparaActivoAtributoVORowImpl)v1.createRow();
    //VALIDACION DE IDs PARA ATRIBUTOS GENERICOS
    if(id >= 24 && id <= 33){
    o.setEditar(true);
    }else{
    o.setEditar(false);
    o.setFlag(false);
    o.setIdCatalogoAtributos(f.getIdCatalogoAtributos());
    o.setDescOracle(f.getAtributo());
    o.setAtributo(f.getDescHandheld());
    o.setHandheld(f.getHandheld().toString());
    o.setMandatorio(f.getMandatorio());
    o1.setIdCatalogoAtributos(f.getIdCatalogoAtributos());
    o1.setDescOracle(f.getAtributo());
    o1.setAtributo(f.getDescHandheld());
    o1.setHandheld(f.getHandheld());
    o1.setMandatorio(f.getMandatorio());
    v.insertRow(o);
    v1.insertRow(o1);
    }else{
    ActivoAtributoVORowImpl o = (ActivoAtributoVORowImpl)v.createRow();
    ComparaActivoAtributoVORowImpl o1 = (ComparaActivoAtributoVORowImpl)v1.createRow();
    o.setFlag(true);
    o.setEditar(true);
    o.setDescOracle("");
    o.setAtributo(f.getAtributo());
    o.setIdCatalogoAtributos(f.getIdCatalogoAtributos());
    o.setHandheld(f.getHandheld().toString());
    o.setMandatorio(f.getMandatorio());
    o1.setDescOracle("");
    o1.setAtributo(f.getAtributo());
    o1.setIdCatalogoAtributos(f.getIdCatalogoAtributos());
    o1.setHandheld(f.getHandheld());
    o1.setMandatorio(f.getMandatorio());
    v.insertRow(o);
    v1.insertRow(o1);
    public void setOldName(String oldName) {
    this.oldName = oldName;
    public String getOldName() {
    return oldName;
    public void setNewName(String newName) {
    this.newName = newName;
    public String getNewName() {
    return newName;
    Edited by: mentor on Nov 3, 2010 8:54 AM
    Edited by: mentor on Nov 3, 2010 8:55 AM

  • Error uid: U11027 textframe, me aparece este mensaje cuando intento guardar los cambios en un archivo o intento guardar el mismo y se cierra el programa.

    me aparece este mensaje cuando intento guardar los cambios en un archivo o intento guardar el mismo y se cierra el programa.
    no puedo editar mis archivos, no me deja hacer nada por que se cierra, al intentar modificar cualquier elemento.

    Could you please send us the .muse file at [email protected] along with a link to this thread? If the file is larger than 20Mb you can use a service like Adobe SendNow, Dropbox, WeTransfer, etc. Thanks.

  • Problema al guardar imágenes en photoshop

    Saludos a todos, vengo con un problema leve, que me suele suceder cuando trabajo con Indesign y Photoshop (CS4).
    Esto nunca pasó en las versiones anteriores, describo el paso a paso:
    1. Estoy en ID, tengo una imágen TIF en mi libro
    2. Le doy clic en "editar original"
    3. Se abre PS (observación: uso Spaces, y en CS3 al hacer esto, el finder se movía al espacio que tengo asignado para PS. En CS4 no lo hace, a menos que tenga abierta algun archivo en PS... Estoy consciente de la incompatibilidad entre CS4 y Spaces, pero vale señalarlo...)
    4. Modifico mi imagen
    5. Le doy a guardar, pero... me aparece una ventana de diálogo (imagen adjunta) que me dice "No se ha podido guardar 'archivo.tif' porque el archivo está en uso o se ha dejado abierto."
    6. Notas: no tengo ninguna ventana del Finder abierta. No tengo el archivo seleccionado de ninguna forma. No está bloqueado o sin permisos, es más, esto pasa con el 90% de los archivos (ya sean tif, psd, jpg, etc).
    7. Para poder guardar el archivo, la única solución que encontré es: cerrar el documento abierto de ID (en donde está el vínculo), volver a PS y guardar (esta vez sin problemas), volver a abrir ID y actualizar el vínculo. Voila.

    Lo del antivirus no me quedó muy claro, la verdad es que como uso Mac, no tengo el antivirus corriendo siempre, casi nunca en verdad, y no creo que tenga que ver con eso.
    Sobre los archivos compartidos, no es el caso, estos archivos no lo están.
    Cuando me pasa esto, si le pongo a guardar por segunda vez... pues es lo mismo, igual una tercera, cuarta, etc.. Las dos únicas soluciones que he encontrado son: 1. cerrar el documento abierto de Indesign y, 2. guardar el archivo tif bajo otro nombre (save as...), pero esto último no es lo más práctico que hay...
    Pienso que el problema es que Photoshop cree que el archivo está abierto, lógicamente. ¿Por qué pasa esto? Solamente está abierto un archivo Indesign que contiene vinculado el archivo en cuestión. Insisto que es un problema de CS4. Sin ir más lejos, cuando efectivamente lograba guardar correctamente el archivo en PS y volvía a ID, el archivo se actualizaba sin problemas. Pero si vuelvo a hacer un cambio en PS, guardo y vuelvo a ID, el archivo no se vuelve a actualizar automáticamente (como lo hacía en CS3 y versiones anteriores), esta vez es necesario actualizarlo manualmente a cada vez... Según me han respondido en Adobe, esto se debe a que han reconstruido completamente el panel de vínculos, y al parecer quedaron cosas inconclusas... varias cosas.
    Bueno el dato de Snow Leopard! me actualizaré apenas pueda, al menos hay solución para ese otro problema!
    Sl2

  • PS CC 2014 para mac no me permite guardar en formato PDF

    He trabajado varias veces y he podido guardar archivos en otros formatos pero los últimos dos no me permite hacerlo. que habrá sucedido?

    Hola, Banyour.
    Me atrevería a conjeturar que aquellos PCs en que el formulario rellenado no se puede guardar cuentan solamente con el programa gratuito Reader. Efectivamente, este programa no permite modificar PDFs, por lo que los datos de relleno de un formulario no pueden ser guardados. Aquellos PCs en que sí se pueden guardar los cambios deben contar con alguna de las versiones del programa Acrobat (pagado).

  • No permite guardar en algunos pc´s

    Saludos.
    Tengo hecho un pdf para que sea rellenado a través de una página web y poder imprimirlo y/o mandarlo por correo.
    El caso es que en algunos ordenadores funciona todo y en otros no me deja guardar una copia ni enviarlo por correo, sólo imprimirlo.
    Alguien me puede ayudar al respecto?.
    Gracias y un saludo

    Hola, Banyour.
    Me atrevería a conjeturar que aquellos PCs en que el formulario rellenado no se puede guardar cuentan solamente con el programa gratuito Reader. Efectivamente, este programa no permite modificar PDFs, por lo que los datos de relleno de un formulario no pueden ser guardados. Aquellos PCs en que sí se pueden guardar los cambios deben contar con alguna de las versiones del programa Acrobat (pagado).

  • Illustrator CS5 se cierra cuando intento guardar

    Voy a archivo, apreto guardar o guardar como, y de la nada, se cierra. Solo eso, no se pega, no aparece ningún mensaje, nada. Se cierra y no se guarda. Ojalá alguien sepa la solución, gracias.

    Podrías indicar por favor si esto te ha empezado a ocurrir ahora, no te pasaba antes, si has hecho algun cambio en el ordenador o algun software,...
    Es en Windows o en Mac?
    Qué versión exacta de Illustrator es? Pulsa en Acerca de (menú Ayuda en PC)
    Tienes instalada o configurada alguna impresora?

  • Photoshop no guarda los cambios

    Hola,
    Tengo un problema con Photoshop CS6, abro una imagen, realizo los cambios que necesito hacer y la guardo y parece que todo perfecto, pero me voy al archivo y no se han guardado los cambios. He probado por si el archivo estaba protegido y no es así, además no me ocurre con una imagen en concreto sino con todas las que intento abrir. ¿Alguien sabe qué puede ser?
    Trabajo con un imac versión 10.6.8.
    Gracias de antemano.
    Saludos.

    Buenas tardes,
    Después de probar lo que me comentaba y ver que sí lo hacía bien, he estado
    probando y creo que el fallo estaba en el comando "guardar" de una acción
    que tenía establecida en Photoshop.
    Gracias por su rápida respuesta.
    Un saludo.
    2013/12/6 Federico Platon <[email protected]>
        Re: photoshop no guarda los cambios  created by Federico Platon<http://forums.adobe.com/people/federico+platon>in *Foros
    de usuario a usuario* - View the full discussion<http://forums.adobe.com/message/5907736#5907736

  • Photoshop CC no guarda cambios

    Tengo un problema siempre trabajo en canales para separación de colores, cuando guardo todo parece perfecto pero al volver abrir el archivo no aparecen los cambios realizados, o guarda algunos cambios y otros no, lo extraño es que no pasa siempre a veces puede guardar con toda normalidad incluso el mismo archivo que hace un momento no me guardo cambios vuelvo a trabajar en el y ahora si me guarda o pueda ser que no me guarde el trabajo mi trabajo es muy importante y me quita mucho tiempo volver hacerlo todo de nuevo agradecería mucho de su ayuda, datos adicionales, siempre guardo en psd, siempre trabajo en canales, guardo directamente en mi pc no en red, gracias

    Nobody can tell you anything without proper system info or other technical details like what version of PS, document modes, colors used, color management settings.
    Mylenium

  • Photoshop cc 2014 No Responde al 10% de guardar durante 30 segundos a 1 minuto

    Buenos días, al ir a guardar un proyecto, la barra de guardado llega al 10% y el proceso del Photoshop se queda en "No Responde" durante aproximadamente 1 minuto. Cuando "vuelve en si" termina el proceso de guardado correctamente.
    ¿A que se puede deber este problema?
    Mi PC es el siguiente:
    SO: Windows 7 profecional (Original y actualizado)
    Procesador: i3-3220 3.30
    Memoria: 4GB DDR3
    Saludos y Gracias

    The 512 MB are a minimum requirement, not some optional thing. Without it, 3D will never work.
    Mylenium

  • Guardar Formulario ya rellenado

    Espero me puedan ayudar..
    Resulta que tengo un formulario hecho en adobe acrobat 9 professional, hasta alli todo bien.. la puedo guardar y todo.. pero a la hora de que lo utilicen los usuarios finales no pueden guardar.. solo imprimir (ellos trabajan con adobe 8 standar)..
    Por favor si alguien me puede dar algun consejo del porque ese error.. y de que manera solucionarlo..
    Desde ya gracias,
    Saludos
    Ana.

    Entiendo que con Acrobat Standard deberían poder hacerlo. Si lo que están usando es el Reader gratuito, el PDF debe ser habilitado especialmente para ello en Acrobat Pro, y creo que se requiere como mínimo la versión 7 de Reader.

  • ¿Cómo habilitar el botón Guardar en Reader 10?

    Hola buenas.
    Acabo de actualizar a la versión 10.0.1 del Acrobat Reader y ahora el botón Guardar sale en gris deshabilitado. En la versión 9 salía activo, pero ahora no sé porqué sale deshabilitado.
    ¿Cómo se puede volver a habilitar dicho botón?

    A ver, lo de los botones en uno solo, no se si es exactamente esto que te voy a decir, pero yo creo q es una propiedad de windows, de la barra de tareas, boton derecho del mouse sobre la barra y en propiedades ha de existir alguna opcion que sea algo asi como agrupar botones.
    Y lo otro supongo q ha de se alguna propiedad del acrobat, y sera alguna configuracion de preferencias, sino lo puedes buscar en la ayuda del Acrobat. Lo siento no poder ayudarte con esto ultimo!

  • Error lenguaje creando mst en Acrobat Pro 9

    Buenas, tengo que hacer un deploy de este producto, ya he conseguido integrar los certificados y que la aplicacion me los detecte usando el acrodata, pero cuando selecciono el idioma de instalacion, pese a que le ponga "Spanish traditional Sort" ya que el producto que tengo es la version multilenguaje, me lo instala en idioma italiano.Esto lo estoy haciendo con Adobe Customization Wizard 9 y pese a que lo he desinstalado, lo he vuelto a instalar y he copiado en repetidas ocasiones los archivos de instalacion del DVD, me sigue haciendo lo mismo.
    El caso es que aunque cambie el modo de instalacion, me lo sigue dejando en italiano.
    Si en cambio, hago la instalacion normal, equipo por equipo, lo puedo instalar en castellano sin problemas y funciona ok.
    Alguna solucion???
    Gracias

    Buen día,
    ¿Puedo sugerir que usted envíe su pregunta a la "Deployment & Installation" Foro en la Comunidad de Usuarios Acrobat (AUC).
    http://www.acrobatusers.com/forums/aucbb/viewforum.php?id=27
    AUC de Expertos Doug Hanna puede ver y responder.
    Puede que no entienden el español.
    Tal vez usted podría utilizar Google Translate para darte el texto de Inglés de los españoles y abrir un hilo con el Inglés o ambos?
    Estar bien ...

Maybe you are looking for

  • BI Publisher Report not generating the PDF output.

    I have developed the rdf report and concurrent program with xml as output format. Based on xml output I have created pdf template and created Data Definition and Template in XML Publisher Administrator Responsibility. Now I am comming to the concurre

  • PLD for Trial Balance with no Title account balance required

    Dear All, I have made a pld for Trail Balance and when the print out is done it is seen that Titles accounts which have zero balances are also coming. I want to hide all Title accounts which have null value. How this can be achived through PLD in SBO

  • How do you select all when trying to delete mail messages

    How can I select "all" email messages to delete them?  I know with PC you can push control + a, how do you do it on a MAC?

  • IPhoto 09 Picture size

    The photo size slider looks as if it won't move all the way to the right, and even if I click on the icon (for largest size), my photos still are not as large as they were in 08. I get 4 photos across whereas I used to be able to get a single photo i

  • Audio file rename not working

    I like the ability to add audio files to annotate information. My camera does not support audio files at the time the photograph is taken; however it's easy to copy a digital recording file to the folder and as long as it's got the same name as the r