Problem:Get Referance To CheckBox Element in Table

Hello Forum,
I created a table with a checkbox column,I also enable the multipule dis/selection buttons - the creation was done like in the "Table Component Sample Project" - in http://blogs.sun.com/divas.
Following that, I add a text field to the jsp page.
In this text field the user can set a range of rows (for example 1-5) and when he submit the page the rows,1 to 5, are selected in the table.
Till now every thing is OK except the checkbox element that is not selected and remain the same (without the selection).
I need to now how I can get a referance to each checkbox item in each table row?and how to set it to selected or unselected?
Note: the checkbox & the table are bound to the selected property in the session bean:
selected property:
public Object getSelected() {
RowKey rowKey = tableRowGroup1.getRowKey();
return tablePhaseListener.getSelected(rowKey);
public void setSelected(Object object) {
RowKey rowKey = tableRowGroup1.getRowKey();
if (rowKey != null) {
tablePhaseListener.setSelected(rowKey, object);
public boolean isCurrentRowSelected() {
RowKey rowKey = tableRowGroup1.getRowKey();
return tablePhaseListener.isSelected(rowKey);
public Object getSelectedValue() {
RowKey rowKey = tableRowGroup1.getRowKey();
return (rowKey != null) ? rowKey.getRowId() : null;
Thanks in advance.
EDSD.

Hi All,
Actually, the chck box is in a user defined value node under the RFC node. Since it had no values it was in disabled form. So i looped through the RFC node and created element for this new value node of mine and it got enabled.
Thanks
Yusuf

Similar Messages

  • Problem getting the count of element

    Hi all,
    I am using a webservice which converts excel to string, which i store in an variable. I parse this variable using to parseXML function and assign it to and element type. The element is created from xsd. The xsd is created from the output of the webservice.
    <?xml version="1.0" encoding="UTF-8"?>
    <xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
    xmlns:nxsd="http://xmlns.oracle.com/pcbpel/nxsd"
    targetNamespace="http://TargetNamespace.com/IncomngCS"
    xmlns:tns="http://TargetNamespace.com/IncomngCS"
    elementFormDefault="qualified"
    attributeFormDefault="unqualified" nxsd:encoding="ASCII" nxsd:stream="chars" nxsd:version="NXSD">
         <xsd:element name="SHEET">
              <xsd:complexType>
                   <xsd:sequence>
                        <xsd:element name="ROW" maxOccurs="unbounded">                    <xsd:complexType>
         <xsd:sequence>
                                       <xsd:element name="DATESRV" type="xsd:string"/>
                                       <xsd:element name="TACT" type="xsd:string"/>
                                       <xsd:element name="TCHG" type="xsd:string"/>
                                       <xsd:element name="TAMNT" type="xsd:string"/>
         <xsd:element name="TQTY" type="xsd:string"/>
         </xsd:sequence>
         </xsd:complexType>
         </xsd:element>
         </xsd:sequence>
    <xsd:attribute name="currentrow"/>
         </xsd:complexType>
    </xsd:element>
    </xsd:schema>
    The variable of element type gives output as
    <var_tmp>
    <SHEET>
    <ROW>
    <DATESRV>2/3/2006</DATESRV>
    <TACT>100561141</TACT>
    <TCHG>3403516</TCHG>
    <TAMNT>249.55</TAMNT>
    <TQTY>1</TQTY>
    </ROW>
    <ROW>
    <DATESRV>2/3/2006</DATESRV>
    <TACT>100561141</TACT>
    <TCHG>3400934</TCHG>
    <TAMNT>72.55</TAMNT>
    <TQTY>1</TQTY>
    </ROW>
    <ROW>
    <DATESRV>2/3/2006</DATESRV>
    <TACT>100567114</TACT>
    <TCHG>3406931</TCHG>
    <TAMNT>34.5</TAMNT>
    <TQTY>1</TQTY>
    </ROW>
    </SHEET>
    <var_tmp>
    And now when i try to get the count(getVariableData('var_tmp','/sheet/row')) it always gives me 0. I tried to get particular row using index its still does not seem to work.
    Does anybody have any idea about this problem?

    Can you post your .bpel source so I can see what's going on there?
    Thanks
    Dan

  • I can not get my Adobe Photoshop Elements 8 organize to open. The edit option comes up with no problem, but will crash when I try to access organize. What should I do to fix this problem?I can not get my Adobe Photoshop Elements 8 organize to open. The ed

    I can not get my Adobe Photoshop Elements 8 organize to open. The edit option comes up with no problem, but will crash when I try to access organize. What should I do to fix this problem?

    Hi,
    Which operating system are you running on?
    Try starting the organizer while holding down the shift key.  Hopefully, it should load the Catalog Manager.
    Select your current catalog and click on the Repair button. Once it has finished, click on the Open button to see if the catalog opens.
    Good luck,
    Brian

  • I have recently had problems in getting my Adobe Premiere Elements 10 to run. One of the gentlemen was able to take over control of my computer, and got it working for me, however since that time the program will sometimes open but most times it just free

    I have recently had problems in getting my Adobe Premiere Elements 10 to run. One of the gentlemen was able to take over control of my computer, and got it working for me, however since that time the program will sometimes open but most times it just freezes the computer and I have to shut it down and re open without any success with opening the elements program.
    Can you help

    Sosure
    What computer operating system is your Premiere Elements 10 running on?
    What video card/graphics card does your computer use? NVIDIA GeForce? If so, please read the Announcement about the Premiere Elements 10 NVIDIA GeForce issue which is found at the top of this web site. Does that apply to you? The explanation for the situation and the fix (roll back of the driver version) are all included in that Announcement.
    We need to rule in or out this factor at the onset before we get to other questions
    a. non NIVIDIA video card/graphics card driver
    b. project preset and properties of source media
    c. computer details
    More later.
    We will be watching for your reply.
    Thank you.
    ATR

  • Why does Elements 12 crash as soon as I open Type tool?  Get message "An unexpected and unrecoverable problem has occurred.  Photoshop Elements will now exit.  Using Mac

    Why does Elements 12 crash as soon as I open Type tool?  Get message "An unexpected and unrecoverable problem has occurred.  Photoshop Elements will now exit."  Using Mac.  No imported fonts

    Thank you, Barbara.  All fonts seemed fine, no empty or duplicates.  When I went back to Elements and tried again, it did not crash!  After months of not being able to use type tool,,, not sure why it worked, but it did.  Thanks again!  I appreciate the time you took to answer my question.

  • Bought an app one month ago. Now it demands that I repay the subscription fee for it. Tried to report problems on iTunes and just get referred back to Apple Support website. What do I do?

    Bought an app one month ago. Now it demands that I repay the subscription fee for it. Tried to report problems on iTunes and just get referred back to Apple Support website. What do I do?

    Micromedex Drug Interactions. The app itself is free. A one year subscription costs $9.99. It worked fine for a month. THen an "update" was automatically installed and it now demands a new $9.99 payment. Thank you.

  • Problem getting correct data from MS Access after doing an Update

    Hi all,
    I have a problem getting correct data after doing an update. This is the scenario
    I am selecting some(Eg: All records where Column X = �7� ) records and update a column with a particular value (SET Column X = �c� ) in all these records by going through a while loop. In the while loop I add these records to a vector too, and pass it as the return value.
    After getting this return value I go through a for loop and get each record one by one from the DB and check if my previous update has actually happened. Since No errors were caught while updating DB, I assume all records are updated properly but my record set shows one after another as if it has not been updated. But if I open the DB it is actually updated.
    This does not happen to all records, always it shows like this
    1st record     Mode = �c�
    2nd record     Mode = �7�
    3st record     Mode = �c�
    4nd record     Mode = �7�
    9th record     Mode = �c�
    10th record     Mode = �7�
    I am relatively new to java and this is someone elses code that I have to modify,So I am not sure if there some thing wrong in the code too
    //Here is the method that gets records and call to update and add to vector
    public static Vector getCanceledWorkOrders() throws CSDDBException{
    //Variable declaration
      try {
        objDBConn = DBHandler.getCSDBCon();
        strSQL  = "SELECT bal bla WHERE [Detailed Mode])=?)";
        objStmt = objDBConn.prepareStatement(strSQL);   
        objStmt.setString(1, '7');
        objWOPRs = objStmt.executeQuery();
        while (objWOPRs.next()) {
         //Add elements to a vector by getting from result set
          //updating each record as PROCESSING_CANCELLED_WO(c)
          iRetVal = WorkOrderDetailingPolicy.updateRecordStatus(objPWODP.iWorkOrderNumber, objPWODP.strPersonInformed, EMSConstants.PROCESSING_CANCELLED_WO);
          if (iRetVal == -1) {
            throw new NewException("Updating failed");
      catch (Exception e) {
        vecWONumbers = null;
        throw new CSDDBException(e.getMessage());
      }finally{
        try {
          objWOPRs.close();
          objStmt.close();
          DBHandler.releaseCSDBCon(objDBConn);
        catch (Exception ex) {}
      //return vector
    //here is the code that actually updates the records
    public static int updateRecordStatus(int iWONumber, String strPerInformed , String strStatus) throws CSDDBException{
       PreparedStatement objStmt = null;
       Connection objDBConn  = null;
       String strSQL = null;
       int iRetVal = -1;
       try{
         objDBConn  = DBHandler.getCSDBCon();
         objDBConn.setAutoCommit(false);
         strSQL = "UPDATE Table SET [Detailed Mode] = ? WHERE bla bla";
         objStmt = objDBConn.prepareStatement(strSQL);
         objStmt.setString(1, strStatus);    
         objStmt.execute();
         objDBConn.commit();
         iRetVal = 1;
       }catch(Exception e){
         iRetVal = -1;
       }finally{
         try{
           objStmt.close();
           DBHandler.releaseCSDBCon(objDBConn);
         }catch(Exception ex){}
       return iRetVal;
    //Here is the code that call the records again
      public static WorkOrderDetailingPolicy getWorkOrders(int iWorkOrderNo) throws CSDDBException{
        Connection objDBConn = null;
        PreparedStatement objStmt = null;
        ResultSet objWOPRs = null;
        WorkOrderDetailingPolicy objPWODP = null;
        String strSQL = null;
        try {
          objDBConn = DBHandler.getCSDBCon();    
          strSQL = "SELECT * FROM [Work Order Detailing] WHERE [Work Order No] = ?";
          objStmt = objDBConn.prepareStatement(strSQL);
          objStmt.setInt(1, iWorkOrderNo);
           objWOPRs = objStmt.executeQuery();
          if (objWOPRs.next()) {
            objPWODP = new WorkOrderDetailingPolicy();
            objPWODP.iWorkOrderNumber = objWOPRs.getInt("Work Order No");
            //......Get Record values
        catch (Exception e) {
          objPWODP = null;
          throw new CSDDBException(e.getMessage());
        }finally{
          try {
            objWOPRs.close();
            objStmt.close();
            DBHandler.releaseCSDBCon(objDBConn);
          catch (Exception ex) {}
        return objPWODP;
      }

    Hello,
    Can you put an example of your problem online?
    Are you sure you're not having problems with case sensitive data?
    Thanks,
    Dimitri

  • Problem in Formatting Total Column in Classic Table

    Hi,
    I am using Classic Table.
    I am able to format the column data but i am unable to format the column total value. I searched in forum and tryed something like in the following thread..
    Problem in formatting Total Value in advanced table
    since i am using Classic Tables i am unable to do it.
    I also tried the following
    OATableBean table = ....
    OATotalRowBean totalRowBean = (OATotalRowBean)table.getColumnFooter();
    System.out.println("Formattotal : "+totalRowBean);
    if (totalRowBean != null)
    oracle.cabo.ui.validate.Formatter formatter = new OADecimalValidater("#,##0.00;#,##0.00","#,##0.00;#,##0.00");
    totalRowBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    in this case the total is not formatted.
    I also refered developer guide. There i found how to set value to total column.. but how to get the value its not given..
    Any body pls help in this regards
    Thanks & Regards

    Hi,
    When i am using Classic Table i am able to format column data but i am not able to format the column Total
    Code i using ;
    OATableBean table = (OATableBean) webBean.findChildRecursive("EmpTestVO12");
    table.prepareForRendering(pageContext);
    OAMessageStyledTextBean totalBean = (OAMessageStyledTextBean)table.findChildRecursive("Salary");
    if(totalBean!=null)
    Formatter formatter = new OADecimalValidater("#,##0.00;(#,##0.00)","#,##0.00;(#,##0.00)");
    totalBean.setAttributeValue(ON_SUBMIT_VALIDATER_ATTR, formatter);
    //Properly formatting column data
    Whe i am using OAAdvance Table bean i am able to format the total but i am unabele to format the Column data. Using following code..
    OAAdvancedTableBean tableBean=(OAAdvancedTableBean)webBean.findChildRecursive("region2");
    tableBean.prepareForRendering(pageContext);
    OAColumnBean c1=(OAColumnBean)webBean.findChildRecursive("column12");
    if(c1!=null)
    c1.setAttributeValue(CURRENCY_CODE,"USD");
    Can anybody pls tell me how can i achieve both (column values and totals formatting) using either Classic Table or Advance Table..
    Thanks & Regards,
    Ram

  • BUG: CheckBox colum inside table (ADF 11.1.2.1)

    I find a bug using CheckBox inside table, this are steps to get the bug.
    1.Create a view object from database table.
    2.Create a where clause in view Object
    3.Create a parameter form (using where clause)
    4.Create a editable table with filter enable
    -- AFTER TEST, ALL WORK
    5. Convert inputText to af:selectBooleanCheckbox
    -- AFTER TEST GET THIS ERROR:
    1- FIlter adf tabla and data is ok.
    2- Apply a filter using parameter form and same time adf:table filter. (Data is not well.)
    As I say this happend only when i change my inputText to af:selectBooleanCheckbox.
    With inputText work well, with booleanCheacBox work bad..
    Someone know if this was fix in 11.1.2.2 ??

    My attribute is not boolean but I fix it in viewRowImplementation accesor:
      public String getProgramada() {
            String dbValue= (String) getAttributeInternal(PROGRAMADA);
            if("S".equals(dbValue))
                retreturn  "true";
            else
                return  "false";       
    public void setProgramada(String value) {
            String valorSeleccionado = null;
            if("true".equals(value))
                valorSeleccionado = "S";
            else
                valorSeleccionado = "N";       
            setAttributeInternal(PROGRAMADA, valorSeleccionado);
        }Seems that change was the problem.. this code work bat generate the BUG i post here.
    SOLUTION:
    1. Revert the viewRowImpl to default accesor.
    2. Modify page definition in tis way using idea from Vinay Agarwal
    <tree IterBinding="VSiriusCorreriasUsuView1Iterator" id="VSiriusCorreriasUsuView1">
          <nodeDefinition DefName="modelo.vistas.VSiriusCorreriasUsuView" Name="VSiriusCorreriasUsuView10">
            <AttrNames>
              <Item Value="Correria"/>
              <Item Value="Descripcion"/>
              <Item Value="Instleer"/>
              <Item Value="Descargadas"/>
              <Item Value="Ejecutadas"/>
              <Item Value="Codusuario"/>
              <Item Value="Codterminal"/>
              <Item Value="Placaveh"/>
              <Item Value="Fechaprog"/>
              <Item Value="Programada" Binds="Programada"/>
            </AttrNames>
          </nodeDefinition>
        </tree>
    <button IterBinding="VSiriusCorreriasUsuView1Iterator" id="Programada" DTSupportsMRU="false" StaticList="true">
          <AttrNames>
            <Item Value="Programada"/>
          </AttrNames>
          <ValueList>
            <Item Value="S"/>
            <Item Value="N"/>
          </ValueList>
        </button>And everything Seems to work Well. Seems to be more easy than add code to accesors in viewRowImpl and work better.
    My checkbox value is get from tree component:
    <af:selectBooleanCheckbox value="#{row.bindings.Programada.inputValue}"
                                                 shortDesc="#{bindings.VSiriusCorreriasUsuView1.hints.Programada.tooltip}"
                                                 id="it7" label="#{bindings.Programada.label}" simple="true" autoSubmit="true">
    </af:selectBooleanCheckbox>

  • Problem when expanding Tree - Tree with nested table column

    Hi, i have created the tree using the Tree with nested table column.
    I have created a node called TREE_ROOT in the context.
    This node has few attributes which includes children_loaded, is_leaf, is_expanded.
    I have created the recursive node TREE_SUB for the above node TREE_ROOT.
    In the view, i have created the table with the master column. The above attributes have been mapped accordingly. I have created the action handler for load_children.
    In this action handler method, i receive the context_element correctly. In this method, i determine the children of the selected element and the resulting children are attached to this context_element.
    But the problem is: when i add elements to context_elements in the method load_children, these
    elements get added to the node TREE_ROOT as well.
    Please help.
    thanks and best regards,
    Pramod

    I just use some types defined in this user... Well, I hope you know what is the type definition of d_period_sec,
    don't you ? I didn't ask to provide all types existed now, only types you are
    using.
    Anyhow you have been granted with execute privilege for types you are using:
    SQL> conn tau_tll/tau_tll;
    Connected.
    SQL> create or replace type d_period_sec as object (date# date);
      2  /
    Type created.
    SQL> grant execute on d_period_sec to public with grant option;
    Grant succeeded.
    SQL> conn scott/tiger
    Connected.
    SQL> CREATE OR REPLACE TYPE unit_function AS OBJECT (
      2  xi NUMBER,
      3  yi NUMBER,
      4  xe NUMBER,
      5  ye NUMBER,
      6  xm NUMBER,
      7  ym NUMBER,
      8  v NUMBER,
      9  a NUMBER,
    10  f NUMBER,
    11  descr VARCHAR2 (20)
    12  );
    13  /
    Type created.
    SQL> grant execute on unit_function to master;
    Grant succeeded.
    SQL> CREATE OR REPLACE TYPE unit_moving_point AS OBJECT
      2  (
      3  p tau_tll.d_period_sec, -- from user TAU_TLL
      4 
      5  m unit_function
      6  )
      7  /
    Type created.
    SQL> grant execute on unit_moving_point to master;
    Grant succeeded.
    SQL> CREATE OR REPLACE TYPE moving_point_tab AS TABLE OF unit_moving_point;
      2  /
    Type created.
    SQL> grant execute on moving_point_tab to master;
    Grant succeeded.
    SQL> CREATE OR REPLACE TYPE moving_point AS OBJECT (u_tab moving_point_tab);
      2  /
    Type created.
    SQL> grant execute on moving_point to master;
    Grant succeeded.
    SQL> conn master/master
    Connected.
    SQL> CREATE TABLE MPOINTS (
      2  id NUMBER,
      3  mpoint scott.Moving_Point)
      4  NESTED TABLE mpoint.u_tab store as moving_tab;
    Table created.Rgds.

  • Current selected element of table ( using tree  )

    Hi experts ,
                         I am using a tree by table UI in which master. I want to know text of current selected element of table (which is one of the column of table ) . as table is dynamically expanding or collapsing upon expanding or closing master column.
    so i used follwing code in do modify view to get it
    IWDTable tab =  (IWDTable) view.getElement("Table1");
                        tab.mappingOfOnLeadSelect().addSourceMapping("row", "element");     
    public void onActionOnrowSelect
    (com.sap.tc.webdynpro.progmodel.api.IWDCustomEvent wdEvent, int element )
        //@@begin onActionOnrowSelect(ServerEvent)
        //@@end
    but above code also give me current row (an integer value) .
    but its not solving my problem . as current row elemt is always not going to be same row in which table (data source for table).
    can any body have solution ?
    Regards
    abhay

    Hi Abay,
    IWDTable tab = (IWDTable) view.getElement("Table1");
    tab.mappingOfOnLeadSelect().addSourceMapping(IWDTreeNodeType.IWDOnLoadChildren.NODE_ELEMENT,"element");
    datatype of the <b>element</b> should be <b>IWDNodeElement</b>
    Or
    You can use
    IWDNodeElement IWDNode.getTreeSelection()
    Ex: wdContext.nodeA().getTreeSelection()
    Regards
    Ayyapparaj

  • How to bind dynamic checkbox to a table

    Hi,
    I have a table that holds many fields. I put these fields on the screen dynamically.
    I would like to bind a checkbox to select a field row.
    I tried to bind the checkbox to the table but with no success. I keep getting the binding to the first element.
    Does anyone has an example?
    Thanks,
    Itay

    Hi P,
    here is my code:
      LOOP AT lt_available_items ASSIGNING <item>.
        ADD 1 TO lv_col.
        IF lv_col > lv_cell_per_col.
          lv_col = 1.
          ADD 1 TO lv_row.
          lv_new_line = 'X'.
        ENDIF.
    *   Add dynamic group
        CONCATENATE 'GROUP_' lv_col '_' lv_row INTO lv_str.
        lr_new_group = cl_wd_group=>new_group( id = lv_str view = view design = '02' ).
        IF lv_new_line = 'X'.
          CLEAR lv_new_line.
          cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_new_group ).
        ELSE.
          cl_wd_matrix_data=>new_matrix_data( element = lr_new_group ).
        ENDIF.
        lr_new_group->set_width( '230' ).
        cl_wd_matrix_layout=>new_matrix_layout( container = lr_new_group ).
        lr_group->add_child( lr_new_group ).
    *   Left side container
        CONCATENATE 'CONT_L_' lv_col '_' lv_row INTO lv_str.
        lr_new_container = cl_wd_transparent_container=>new_transparent_container(
              id = lv_str view = view ).
        cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_new_container ).
        cl_wd_matrix_layout=>new_matrix_layout( container = lr_new_container ).
        lr_new_group->add_child( lr_new_container ).
    *   Add checkbox
        CONCATENATE 'CHK_' lv_col '_' lv_row INTO lv_str.
        lr_checkbox = cl_wd_checkbox=>new_checkbox( view   = view
                                                    id     = lv_str ).
        lr_matrix_head = cl_wd_matrix_head_data=>new_matrix_head_data( element = lr_checkbox ).
        lr_checkbox->set_layout_data( lr_matrix_head ).
        lr_checkbox->bind_checked( 'AVAILBLE_ITEMS.SELECTED' ).
        lr_new_container->add_child( lr_checkbox ).
    endloop.
    my node is AVAILABLE_ITEMS and it has the attributes: SELECTED, MATNR, MAKTX...
    thanks,
    Itay

  • Program to get all the query elements with UIDs with EN texts of a BW query

    Hi All,
    Need a program to get all the query elements with UIDs with EN and Other language texts, of a BW query.
    We are doing a global implementation.
    We are implementing Translations in French.
    We need to see, the list of all UID's of a query, their EN texts and the FR texts.
    Tried a bit, we are having the problem in getting the UIDs of the structure elements.
    Thanks in advance,
    Best Regards,
    - Shashi

    Hi ,
    Below is the list of important tables related to query.
    RSZELTDIR Directory of the reporting component elements
    RSZELTTXT Texts of reporting component elements
    RSZELTXREF Directory of query element references
    RSRREPDIR Directory of all reports (Query GENUNIID)
    RSZCOMPDIR Directory of reporting components
    RSZRANGE Selection specification for an element
    RSZSELECT Selection properties of an element
    RSZELTDIR Directory of the reporting component elements
    RSZCOMPIC Assignment reuseable component <-> InfoCube
    RSZELTPRIO Priorities with element collisions
    RSZELTPROP Element properties (settings)
    RSZELTATTR Attribute selection per dimension element
    RSZCALC Definition of a formula element
    RSZCEL Query Designer: Directory of Cells
    RSZGLOBV Global Variables in Reporting
    RSZCHANGES Change history of reporting components
    Hope this will help you...
    Thanks,
    Jitendra

  • WebDynpro Java: how to remove blank element from Table and Dropdown.

    Hi  Folks
    In a webdynpro application,
    I created a table and witten the below code to populate the table
         IPrivateDummyView.IFirst_TableElement First_Table_Element = null;
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("One");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
         First_Table_Element = wdContext.nodeFirst_Table().createFirst_TableElement();
         First_Table_Element.setF_Value("2");
         wdContext.nodeFirst_Table().addElement(First_Table_Element);
    As per the code, i got 2 row in the table.
    But , i have one Empty row on top of the table ,  how to get ride of this.
    i find the same problem happening with dropdown too, where i used DDBI, i populated a the content as mention, but i initial 2 row as blank and then i have my own elements ,as per my code.

    >
    > how to remove blank element from Table and Dropdown
    >
    Change selection property of related node to from 0..1 to 1..1 (mandatory)
    Re: DropdownByIndex and empty line (Thread: DropdownByIndex and empty line )
    Re: Can the empty selection be removed from element dropdownbykey(Thread: Can the empty selection be removed from element dropdownbykey )
    Edited by: Anagha Jawalekar on Nov 18, 2008 10:28 PM

  • Cannot get weblogic to create default dbms tables

     

    I've encountered the same error while deploying my parent-child test
    ejb with mySQL v3.23.38 as the data source:
    [RDBMSPersistenceManager] : createDefaultDBMSTable: processing Bean
    Table: JCWParent
    [RDBMSPersistenceManager] : full DEFAULT TABLE CREATE QUERY: 'CREATE
    TABLE JCWParent (parentId INTEGER, parentName VARCHAR(150), PRIMARY
    KEY (parentId) )'
    [RDBMSPersistenceManager] : RDBMSPersistenceManager.getConnection
    [RDBMSPersistenceManager] : Table 'JCWParent' was not present in
    Database attempt to CREATE TABLE failed. SQL: 'CREATE TABLE JCWParent
    (parentId INTEGER, parent Name VARCHAR(150), PRIMARY KEY (parentId) )'
    got SQLException java.sql.SQLException: General error: All parts of a
    PRIMARY KEY must be NOT NULL; If you need NULL in a key, use UNIQUE
    instead
    The weblogic server version I'm running is v6.1 (sp1). Any fix?
    --- Jeffrey
    "Thomas Christensen" <[email protected]> wrote in message news:<[email protected]>...
    Hi
    Anyone else seen this?
    If WLS 6.1 doesn't support auto table creation on db2, does it only support CloudScape???
    I do not expect Oracle, Sybase or MySQL to allow nulls in the primary keys either...
    Cheers
    Thomas
    "Thomas Christensen" <[email protected]> wrote:
    Hi
    I have discovered that WLS 6.1 tries to create tables it allows primary
    keys to
    be null, which our DB2 installation does not allow. I you turn on the
    trace mentioned
    below by Matthew, then the message appears.
    If I deploy the ejb20_basic_containerManaged.jar from the samples directory
    then
    I get the following error:
    [RDBMSPersistenceManager] : full DEFAULT TABLE CREATE QUERY: 'CREATE
    TABLE ejbA
    ccounts (id VARCHAR(150), bal DOUBLE PRECISION, type VARCHAR(150), PRIMARY
    KEY
    id) )'
    [RDBMSPersistenceManager] : RDBMSPersistenceManager.getConnection
    [RDBMSPersistenceManager] : Table 'ejbAccounts' was not present in Database
    attempt
    to CREATE TABLE failed. SQL: 'CREATE TABLE ejbAccounts (id VARCHAR(150),
    bal
    DOUBLE PRECISION, type VARCHAR(150), PRIMARY KEY (id) )' got SQLException
    COM.i
    bm.db2.jdbc.DB2Exception: [IBM][CLI Driver][DB2/NT] SQL0542N "ID" cannot
    be a
    part of a primary key or unique key since it can contain NULL-values.
    SQLSTATE=42831
    Any fixes for this?
    Cheers
    Thomas
    Matthew Shinn <[email protected]> wrote:
    Hi Gary,
    What database are you using? Also, if you could start your server with
    the
    following arguments -Dweblogic.ejb20.cmp.rdbms.debug=true
    -Dweblogic.ejb20.cmp.rdbms.verbose=true and post the server output for
    the
    deployment in question, that would be great. This will give us some
    valuable
    debugging information and help us track down the problem. Note that
    these flags
    are going to cause a lot of extra information to be printed out.
    - Matt
    Gary Albelli wrote:
    I am using ejb 2.0 but still cannot get the server to create the tables.
    Any
    ideas?
    "Matthew Shinn" <[email protected]> wrote in message
    news:[email protected]...
    Hi Gary,
    There is a bug in 6.1 that can cause the database tables to fail
    to be
    created
    for 1.1 compliant EJBs. For tracking purposes, the bug ID is CR056543.If you
    require a patch, I suggest contacting support. As a possible workaround,try
    changing the ejb-name of your EJB to something more unique. Again,this
    only
    affects 1.1 EJBs. If you are having this problem with a 2.0 EJB,something else
    is wrong.
    - Matt
    Gary Albelli wrote:
    I am deploying entity beans into WebLogic server 6.1. The EJBs
    deploy
    but I
    cannot get the server to create the default tables. The
    weblogic.cmp.rdbms.jar.xml has the element create-default-dbms-tablesset to
    True. I receive the error message "The Entity EJB requires thetable:
    ContentVersion to be accessible. Please ensure that this tableexists
    and is
    accessible". Any Ideas???

Maybe you are looking for

  • How can I tell if I have an ipad 3?

    How can I tell if I have an ipad 3?

  • Program crashes in OCI calls

    All, The program has set of OCI datatype converion calls from C native to Oracle types. The program crashes in OCI calls specifically in OCINumberFromReal. Below is the stack for the core dump created. In call to OCINumberFromReal, when it refences l

  • Windows 8 file types

    Hi I would like to know if there is an option to open office documents (docx, xslx etc) in browser. In windows XP we had this option to select file types and on doc file type in Advanced Settings we can check open in the same browser window which mad

  • What is session variables in BSP

    Hi I am using using IC Webclient. can anyone help me to findout the details about session varibales ? Best Regards Bhavishya

  • Making Application Database (SyBase, Oracle, MySql) Independent

    Hello Experts , I am having an application running on SyBase DB and frontend is VB.NET. I would like to make it somehow databaseindependent. Means, I want somthing like on installation time if I specify Oracle then Oracle db to used else Mysql or els