JTable checkboxes doesn't retain their selection when a new row is added!!

HI,
My gui has the JTable component which has 5 columns. out of which 4 columns are checkboxes. whenever i select an item from the Jlist and click on the add button it will add a new row in JTable.
but the problem is whenever a new row is added to the table. the previously selected checkboxes of previous rows are being deselected. But i want to retain the selection of my previous rows even when a new row is added. please help me how to achieve this..i am posting my JTable code here:
class FunctionTableModel extends AbstractTableModel{
       /** The instances who's attribute structure we are reporting */
    //protected InitModel m_init;
    protected String func_element;
    protected int counter;
    //protected String[] func_array;
    protected Vector func_vector;
    /** The flag for whether the instance will be included */
    protected boolean [] m_Sum;
    protected boolean [] m_Min;
    protected boolean [] m_Avg;
    protected boolean [] m_Max;
    protected boolean [] m_SD;
     * Creates the tablemodel with the given set of instances.
     * @param instances the initial set of Instances
    public FunctionTableModel() {
      counter =0;
         func_vector = new Vector();
     public FunctionTableModel(Vector vec) {
        func_vector = vec;
    public Vector getDataVector(){
        return func_vector;
     * Sets the tablemodel to look at a new set of instances.
     * @param instances the new set of Instances.
    public void setElement(Vector vec) {
           for(int i=0;i<vec.size();i++){
        func_vector.add(vec.elementAt(i));
        counter++;
      fireTableDataChanged();   
      m_Sum = new boolean [counter];
      m_Min = new boolean[counter];
      m_Avg = new boolean[counter];
      m_Max = new boolean[counter];
      m_SD = new boolean[counter];
     * Gets the number of attributes.
     * @return the number of attributes.
    public int getRowCount() {
           return func_vector.size();
     * Gets the number of columns: 3
     * @return 3
    public int getColumnCount() {
      return 6;
     * Gets a table cell
     * @param row the row index
     * @param column the column index
     * @return the value at row, column
    public Object getValueAt(int row, int column) {
      switch (column) {
      case 0:
        return func_vector.elementAt(row);
      case 1:
        return new Boolean(m_Sum[row]);
      case 2:
        return new Boolean(m_Min[row]);
      case 3:
        return new Boolean(m_Avg[row]);
      case 4:
        return new Boolean(m_Max[row]);
      case 5:
        return new Boolean(m_SD[row]); 
      default:
        return null;
    public void removeAll(){
        func_vector.removeAllElements();
        fireTableDataChanged();
     * Gets the name for a column.
     * @param column the column index.
     * @return the name of the column.
    public String getColumnName(int column) {
      switch (column) {
      case 0:
        return new String("Function Selected");
      case 1:
        return new String("Sum");
      case 2:
        return new String("Min");
      case 3:
        return new String("Avg");
      case 4:
        return new String("Max");
      case 5:
        return new String("SD");   
      default:
     return null;
     * Sets the value at a cell.
     * @param value the new value.
     * @param row the row index.
     * @param col the column index.
    public void setValueAt(Object value, int row, int col) {
      if(col == 0){
        counter++;
        func_vector.add(counter,value.toString());
      if (col == 1)
        m_Sum[row] = ((Boolean) value).booleanValue();
      if (col == 2)
        m_Min[row] = ((Boolean) value).booleanValue();
      if (col == 3)
        m_Avg[row] = ((Boolean) value).booleanValue();
      if (col == 4)
        m_Max[row] = ((Boolean) value).booleanValue();
      if (col == 5)
        m_SD[row] = ((Boolean) value).booleanValue();       
     * Gets the class of elements in a column.
     * @param col the column index.
     * @return the class of elements in the column.
    public Class getColumnClass(int col) {
         return getValueAt(0, col).getClass();
     * Returns true if the column is the "selected" column.
     * @param row ignored
     * @param col the column index.
     * @return true if col == 1.
    public boolean isCellEditable(int row, int col) {
      if (col >= 1) {
         return true;
      return false;
    public void removeRow(int row){
        if(row<=func_vector.size()){
                      func_vector.removeElementAt(row);
            counter--;
        fireTableDataChanged();
    }

hi parvathi,
i have made changes to my previous code and here's the code:
  class FunctionTableModel extends DefaultTableModel{
       /** The instances who's attribute structure we are reporting */
    //protected InitModel m_init;
    protected String func_element;
    protected int counter;
    protected int counter1;
    //protected String[] func_array;
    protected Vector func_vector;
    /** The flag for whether the instance will be included */
    protected boolean [] m_Sum;
    protected boolean [] m_Min;
    protected boolean [] m_Avg;
    protected boolean [] m_Max;
    protected boolean [] m_SD;
    //protected Vector m_Sum1;
    //protected Vector m_Min1;
    //protected Vector m_Avg1;
    //protected Vector m_Max1;
    //protected Vector m_SD1;
     * Creates the tablemodel with the given set of instances.
     * @param instances the initial set of Instances
    public FunctionTableModel() {
        System.out.println("entered the constr");
      counter =0;
      //counter1=0;
      //m_Sum1 = new Vector();
      //m_Min1 = new Vector();
      //m_Avg1 = new Vector();
      //m_Max1 = new Vector();
      //m_SD1 = new Vector();
      //func_array = new String[];
      func_vector = new Vector();
     public FunctionTableModel(Vector vec) {
        func_vector = vec;
        //setElement(func_vector);
    public Vector getDataVector(){
        return func_vector;
     * Sets the tablemodel to look at a new set of instances.
     * @param instances the new set of Instances.
    public void addRow(Vector vec) {
      //counter++; 
      //func_element = ele;
      //System.out.println("FunctionTableModel- setElement() method");
      for(int i=0;i<vec.size();i++){
        func_vector.add(vec.elementAt(i));
        counter++;  
       //System.out.println("counter ="+counter+new boolean[counter]); 
        //m_Sum1 = m_Sum;
        //m_Min1 = m_Min;
        //m_Avg1 = m_Avg;
        //m_Max1 = m_Max;
        //m_SD1 = m_SD;
        //m_Sum = new boolean[counter];
        //System.out.println("at setElement");
        m_Sum = new boolean[counter];
        //System.out.println(counter);
        m_Min = new boolean[counter];
        //m_Min;
        m_Avg = new boolean[counter];
        //m_Avg1 = m_Avg;
        m_Max = new boolean[counter];
        //m_Max1 = m_Max;
        m_SD = new boolean[counter];
        //m_SD1 = m_SD;
        //counter1++;
      //func_array[counter]=ele;
      //func_vector.add(counter,ele);
      fireTableDataChanged();  
     * Gets the number of attributes.
     * @return the number of attributes.
    //public int getRowCount() {
      //System.out.println("FunctionTableModel- getRowCount() method");
      //return func_vector.size();
     * Gets the number of columns: 3
     * @return 3
    public int getColumnCount() {
      return 6;
     * Gets a table cell
     * @param row the row index
     * @param column the column index
     * @return the value at row, column
    public Object getValueAt(int row, int column) {
      switch (column) {
      case 0:
        return func_vector.elementAt(row);
      case 1:{
        //System.out.println("in case 1");
        //Boolean m_Sum_Value = new Boolean(m_Sum[row]);
        //System.out.println("m_Sum_Value:"+m_Sum_Value.booleanValue());
        return new Boolean(m_Sum[row]);
        //m_Sum1.add(m_Sum_Value);
        //return m_Sum_Value;
      case 2:
        return new Boolean(m_Min[row]);
      case 3:
        return new Boolean(m_Avg[row]);
      case 4:
        return new Boolean(m_Max[row]);
      case 5:
        return new Boolean(m_SD[row]); 
      default:
        return null;
    public void removeAll(){
        func_vector.removeAllElements();
        //m_Sum1.removeAllElements();
        fireTableDataChanged();
     * Gets the name for a column.
     * @param column the column index.
     * @return the name of the column.
    public String getColumnName(int column) {
      switch (column) {
      case 0:
        return new String("Function Selected");
      case 1:
        return new String("Sum");
      case 2:
        return new String("Min");
      case 3:
        return new String("Avg");
      case 4:
        return new String("Max");
      case 5:
        return new String("SD");   
      default:
     return null;
     * Sets the value at a cell.
     * @param value the new value.
     * @param row the row index.
     * @param col the column index.
    public void setValueAt(Object value, int row, int col) {
      if(col == 0){
        counter++;
        func_vector.add(counter,value.toString());
      if (col == 1) {
        m_Sum[row] = ((Boolean) value).booleanValue();
        //System.out.println("m_Sum length "+m_Sum.length);
        //for(int i=0;i<=row;i++)
        //    System.out.println("m_Sum1 "+i+((Boolean)m_Sum1.elementAt(i)).booleanValue());
        //System.out.println("m_Sum1["+row+"] "+ ((Boolean)m_Sum1.elementAt(row)).booleanValue());
        //    System.out.println("m_Sum["+i+"] "+ m_Sum);
if (col == 2)
m_Min[row] = ((Boolean) value).booleanValue();
if (col == 3)
m_Avg[row] = ((Boolean) value).booleanValue();
if (col == 4)
m_Max[row] = ((Boolean) value).booleanValue();
if (col == 5)
m_SD[row] = ((Boolean) value).booleanValue();
* Gets the class of elements in a column.
* @param col the column index.
* @return the class of elements in the column.
public Class getColumnClass(int col) {
return getValueAt(0, col).getClass();
* Returns true if the column is the "selected" column.
* @param row ignored
* @param col the column index.
* @return true if col == 1.
public boolean isCellEditable(int row, int col) {
if (col >= 1) {
     return true;
return false;
public void removeRow(int row){
if(row<=func_vector.size()){
func_vector.removeElementAt(row);
counter--;
fireTableDataChanged();
previouslu i was using the setElement method. now i have replaced with the addRow method...
but anyways...the control is not going to any of these overridden methods...and none of the elements are added to the table. But i comment of all the addRow, getValueAt, getColumnClass methods...then it's adding rows to the table but with only the first column all the remaiing columns are just empty...
i am fed up with this...if you observe i have commented out somany lines...becoz i am trying to save my boolean array values into a vector..but that was also in vain...
i appreciate for ur help...
thanks
sri

Similar Messages

  • Scrolling to next range in advanced table when new rows are added.

    I programatically implemented Add New Row in an advanced table.
    "Records Displayed" attribute of advanced table =10, so as log as I add upto 10 new rows the table displays 10 rows,if I add 11th record the new record is appended @ 11th position but I've to choose "Next" link on the advanced table to see the 11th row.Is it possible to show the last rowset in the advanced table when new rows are added?
    The underlaying VO executes the following code when "Add New Row" button is pressed:
    int rCount = this.getFetchedRowCount();
    int rangeSize = this.getRangeSize();
    int rangeStart = this.getRangeStart();
    if (rCount < rangeSize) {
    this.insertRowAtRangeIndex(rCount, newRow);
    } else {
    this.setRangeSize(rCount+1);
    this.insertRowAtRangeIndex(rCount, newRow);
    this.setCurrentRow(newRow);
    To scroll to the 11-20 rows (when added more than 10 rows),I tried with following options, but none of them helped:
    1) int newRangeStart = ( rCount / 10 ) * 10 ;
    this.setRangeStart(newRangeStart);
    2) this.scrollRange(newRangeStart);
    3) this.scrollRange(rCount);
    4) int newRangePage = rCount / 10;
    this.scrollToRangePage(newRangePage+1);
    5) this.getNextRangeSet();
    Please let me if it is possible to achieve.

    What happens if you just add the new row without specifying where to add it ? doesn't it add the new row on the same page as the last row ?
    Thanks
    Tapash

  • Run workflow when a new item is added and set a fields value

    we require a workflow which should run when a new item is added to the form library(infopath)  and should update the value of a field "title" with the filename(eg:111.xml).
    Please let us know, how we can accomplish it.
    Thanks,
    Zedprog
    My blog: http://sharepointr.com - ZedProg Profile

    Hello,
    You need to use "Update List Item" action to update any item in list/library. Refer this link for sample:
    http://3sharp.com/blog/updating-list-items-with-sharepoint-designer/
    Hope it could help
    Hemendra:Yesterday is just a memory,Tomorrow we may never see<br/> Please remember to mark the replies as answers if they help and unmark them if they provide no help

  • Exporting voice memos from iphone doesn't retain their names

    Hi,
    I'm using an iphone 4 on Vista running the latest itunes (newest update, the whole firmware, itunes etc just updated right before I decided to post this).
    I'm trying to save voice memo files from my iphone to my computer, but although they save and play back okay, they have been assigned a bunch of numbers (taken from the recording date and time perhaps) instead of keeping the name I gave them on the phone itself. There are far too many of them to drag off one at a time and rename manually.
    So how can I save them all in one go whilst retaining the names I gave them on the iphone?
    I've previously managed this - when I initially got the phone and started saving memos I once dragged and dropped a load of them from my iphone through itunes and they did retain their original names, but after trying numerous times since I cannot see how, although it must be possible?
    Thanks!

    You can transfer voice memos from iPhone to Mac by emailing:
    Open the voice memo app and select the recording you want to transfer, then tap on the Share icon in the left corner under the Play button. Now you have the option to send it as a Mail.
    Choose Mail then fill in the relevant details and hit send. This is fine for the occasional memo, but if you have several that you want to do at once - or have long recordings whose files sizes are not inbox friendly - then the best solution is to use iPhone Transfer for Mac.

  • The latest version of Firefox loads with the Ask page and doesn't retain the selected home page. How do I change this?

    I downloaded the latest Firefox version. Upon loading it it doesn't retain the previous Home Page setting and always reverts to the Ask page, which is always indicated as the Home Page. This is annoying. How do I overcome this problem?

    #Remove Ask Toolbar (if you have it installed):
    #*http://support.mozilla.org/en-US/kb/Uninstalling+add-ons
    #*http://support.mozilla.org/en-US/kb/Cannot%20uninstall%20an%20add-on
    #*http://kb.mozillazine.org/Uninstalling_toolbars
    #Reset your home page (if the Ask search page is displayed when starting Firefox): http://support.mozilla.org/en-US/kb/How+to+set+the+home+page
    #*You can reset to the default by clicking "Restore to default" on Options > General > Startup > Home page. Be sure to set "When Firefox starts" to "Show my home page" on that same panel.
    #Reset your Location Bar search engine (if typing a few words in the URL/Location Bar takes you to Ask search):
    #*type '''''about:config''''' in your Location Bar, like typing a web site address, and press the Enter key
    #*ignore warning and choose to continue
    #*in Filter, type '''''keyword.URL'''''
    #*in lower part of screen, if it is '''bold''' and shows "'''user set'''", right-click keyword.URL and choose "Reset"
    #*in Filter, type '''''Ask'''''
    #*any items in lower part of screen in '''bold''' and showing "'''user set'''", right-click and choose "Reset"
    #*close about:config tab
    #*See:
    #**http://kb.mozillazine.org/About:config
    #**http://kb.mozillazine.org/Location_Bar_search#Location_Bar_search_.28external_-_search_engine.29
    #**http://kb.mozillazine.org/Keyword.url
    #**http://www.techrena.net/computers/address-bar-search-provider-firefox/
    #If Ask is shown in your Search Bar and you want to remove it:
    #*https://support.mozilla.org/en-US/kb/Search%20bar
    '''If this reply solves your problem, please click "Solved It" next to this reply when <u>signed-in</u> to the forum.'''
    Not related to your question, but...
    You may need to update some plug-ins. Check your plug-ins and update as necessary:
    *Plug-in check --> http://www.mozilla.org/en-US/plugincheck/
    *Adobe Shockwave for Director Netscape plug-in: [https://support.mozilla.org/en-US/kb/Using%20the%20Shockwave%20plugin%20with%20Firefox#w_installing-shockwave Installing ('''''or Updating''''') the Shockwave plugin with Firefox]
    *'''''Adobe PDF Plug-In For Firefox and Netscape''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Adobe%20Reader%20plugin%20with%20Firefox#w_installing-and-updating-adobe-reader Installing/Updating Adobe Reader in Firefox]
    *Shockwave Flash (Adobe Flash or Flash): [https://support.mozilla.org/en-US/kb/Managing%20the%20Flash%20plugin#w_updating-flash Updating Flash in Firefox]
    *'''''Next Generation Java Plug-in for Mozilla browsers''''': [https://support.mozilla.org/en-US/kb/Using%20the%20Java%20plugin%20with%20Firefox#w_installing-or-updating-java Installing or Updating Java in Firefox]

  • Terminate Select when 1 dependant row is found

    Hi,
    I need to know that at least 1 dependant row exists for the parent.
    Is is possible to terminate the Select when the 1 dependant row is found instead of counting all the dependants, and how is that done?
    I'm using LEFT OUTER JOIN to determine that no dependants exist.
    Thank You in Advance for Your Help,
    Lou

    Really there is no difference between Andreas example and my one. Andreas has given you absolutely correct answer too. No matter you write in a selection list of the correlated subquery 1 or *. Oracle just checks the existance of a row and doesn't retrieve anything. In that sense all examples below work similar:
    SQL> select deptno from dept
      2  where exists (select * from emp where emp.deptno = dept.deptno)
      3  /
        DEPTNO
            20
            30
            10
    SQL>
    SQL> select deptno from dept
      2  where exists (select 1 from emp where emp.deptno = dept.deptno)
      3  /
        DEPTNO
            20
            30
            10
    SQL>
    SQL> select deptno from dept
      2  where exists (select null from emp where emp.deptno = dept.deptno)
      3  /
        DEPTNO
            20
            30
            10
    SQL>
    SQL> select deptno from dept
      2  where exists (select 'ABC' from emp where emp.deptno = dept.deptno)
      3  /
        DEPTNO
            20
            30
            10Rgds.

  • What do I need to do to default some values when a new row is created in a tabular form?

    Hello all -
    I have a tabular form which requires a few columns to be entered by the user when s/he creates a new row, but other fields in the column can just default to certain values.  How do I set those default values so that the user doesn't have to be bothered with entering any data except those that MUST be entered?
    An example:
    Form1
    REGION        COUNTRY       CITY
    APAC            JAPAN            TOKYO
    APAC            AUSTRALIA    SIDNEY
    APAC            KOREA           SEOUL
    REGION is nearly always APAC, so I want to default to that.  The user can still adjust it if necessary, but I want to set it for the user, just to save having to enter a value.  When the user clicks the the Add Row button, I want to load that value right away and leave the next two fields blank so the user can enter whatever they want.
    Thanks!
    John

    Hi,
    Go edit that column.
    Under Tabular Form Attributes you can find options to set default value
    Regards,
    Jari

  • How to obtain row number when a new row is created (without commit)?

    I have this:
    <NamedData NDName="LineaNro"
    NDValue="#{bindings.VOIpmDistribucionManualEBS1.currentRowIndex}"
    NDType="oracle.jbo.domain.Number"/>
    When I push the New button, the value shows -1. If I push again, the value shows 0... but for third time an error occur:
    Too many objects match the primary key oracle.jbo.Key[0 0 2011-12-01 ID del comprobante 0 ]
    The problem is the last 0, it's the same 0 returned for the second button push.
    The commit must be do it at the end.
    Any suggestions?
    Thanks in advance.

    Can you elaborate a bit on what you are trying to do?
    And which jdev version you are using?
    If you try to use the current row index a a primary key for a new row this won't work. The first time you hit the new button you get -1 as the current row is not set. Then the new row get the current row and get the index 0. So, then you hit new again you get 0 back.
    It's never a good idea to use a row index as primary key as this won't work in multi user environments (which adf web apps are).
    You should use a db sequence as PK as this will work in all scenarios and guarantees that one number is only use once.
    Timo

  • Desktop doesn't retain pic selected in iphoto

    Hey all, searched for this but didn't find anything.
    When I select a pic in iphoto for my desktop image, it shows up for a second then reverts back to the previous image. Doesn't matter if I select the pic in iphoto or from the preferences pane, it only sticks for a second, then changes back.
    iphoto 5.0.4

    I tried the NVL and MAX ideas, and that did not work for me. I am using a custom business folder that is summing the transaction qty's from MTL_MATERIAL_TRANSACTIONS and doing a full outer join with WIPFG_MFG_TRANSACTIONS. (I didn't create it) The columns are numeric. I am just using the built in TOTAL function within discoverer desktop. The sort window is showing sorting by the resource code, Inventory item and transaction date. Even when i remove the transaction date and resource code and just sort by inventory item, it still will not total. John, you mentioned Oracle Support having and advantage. Can you elaborate on that? How can i find out if I have Oracle Support for Discoverer?
    I just modified the report and only pulled data from the custom business folder and tried totaling. It won't even total when using just that folder. I'm guessing at this point that the problem may be with the sql code for the folder.
    Thanks
    Jim

  • Why does ios7 ip retain old ip when joining new wifi - thus knocking servers off the air

    We had an issue this morning that took some time to find.
    One of the VMWare hosts was knocked off the network due to a duplicate IP address.
    We got the offending MAC and finally traced it to a iphone 4s with ios7. - Not an easy task with no MAC address in the phone to locate.
    That user had been connected to their home network using that same IP and when then arrived at work and it connected to the Wifi, it obtained the server address before getting a DHCP assigned address.
    We tried replicating it using static addresses over wifi which led to some interesting results, but could not kill another host using this method, looks like I'll need to wait till tomorrow to verify, but have every confidence that it will.
    Any clues how to replicated inhouse?

    Among the alternatives not mentioned... Using a TiVo DVR, rather than the X1; a Roamio Plus or Pro would solve both the concern over the quality of the DVR, as well as providing the MoCA bridge capability the poster so desperately wanted the X1 DVR to provide. (Although the TiVo's support only MoCA 1.1.) Just get a third-party MoCA adapter for the distant location. Why the hang-up on having a device provided by Comcast? This seems especially ironic given the opinions expressed regarding payments over time to Comcast. If a MoCA 2.0 bridge was the requirement, they don't exist outside providers. So couldn't the poster have simply requested a replacement XB3 from the local office and configured it down to only providing MoCA bridging -- and perhaps as a wireless access point? Comcast would bill him the monthly rate for the extra device, but such is the state of MoCA 2.0. Much of the OP sounds like frustration over devices providing capabilities the poster *thinks* they should have.

  • IMovie wont recognise the selection when making new movie

    Hi!
    I just got my MacBook recently and decided to plug my DV camera in. I opened the iMovie app and the pane came up to choose the input movie type. I chose DV Widescreen. Pressed OK. The iMovie opened up and it was normal 4x3 ratio. I did this several times and still DV 4x3. I even tried formats that I didn't have and everytime it came back to 4x3 DV.
    Can someone tell me how to fix this?
    Thanks

    This is from David Pogue:
    "Wide-screen video gets letterboxed
    Some camcorders offer a special shooting mode called 16:9 video (that is, wide-screen format). When you import this 16:9 video into a DV Widescreen project, iMovie HD sometimes wants to letterbox it, adding horizontal black bands above and below. Since the video is already 16:9, that’s probably not what you want iMovie HD to do.
    The letterboxing begins as soon as you switch from Camera mode to Edit mode and click on a clip. The workaround is to not switch modes after you’ve imported your video. Instead of switching to Edit mode, stay in Camera mode. Save the project, quit iMovie, and turn off the camera. When you reopen the project, the video will stay 16:9."
    http://www.macworld.com/2005/09/secrets/octobercreate/index.php
    Sue

  • How to extend the mapping table when a new field is added to the data model?

    Hi Experts,
    I have added a new field to the entity PCTR and run the structures.. My new field was created in structure /MDG?_SX_0G_PCTR.
    My understanding is that I have to map it in the service mapping for USMDZ6_0G_PCTR.
    How do I get it in structure MDGF_PRFT_CTR_RPLCTN_REQ_PRFT to be able to map it?
    Thanks
    Riaan

    Hi Abdullah,
    Thanks for the document. I have managed to successfully map the field in USMD_IDOC_0G_PRCMAS.
    The field that I am using is PHINR(Profit Center area)  because we don't want the Profit center Area to be created with the default for the standard area. Instead we want to be able to send a different field value and also be able to change the field value in the profit center.
    It still defaults to the Standard group and does not use my entry when I replicate using the idoc.
    Any suggestions
    Thanks
    Riaan

  • JBO-27021 error when a new attribute is added

    I am getting this error:"oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 14 with java object of type oracle.jbo.domain.Raw due to java.sql.SQLException."
    I added a new attribute "violation_guid" to sql query in VO
    Query:
    select rule_name, target_name, severity, recommendation, target_type, ROOT_CS_GUID,
    event_instance_id,
    event_seq_id, keywords, lifecycle_status , target_guid, rule_name_nlsid, recommendation_nlsid, violation_guid
    from
    table(EM_COMPLIANCE_EVAL.get_cs_viols(:rootCsGuid, :targetName, :targetType, :plang, :pcountry))
    Before addition of the attribute, things were working fine.
    I also checked the attribute order is correct in attribute list. AFAIK, violation_guid should come in the same position as defined in VO query.
    Its in 14th position both according to query and attribute list.
    I did "Set source order" in the Attributes section of VO. I also regenerated the java classes related to the VO but no luck.
    What else do need to do?
    Thanks
    Parul

    the stack trace:
    oracle.jbo.AttributeLoadException: JBO-27021: Failed to load custom data type value at index 14 with java object of type oracle.jbo.domain.Raw due to java.sql.SQLException.
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1380)
    at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2570)
    at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3929)
    at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2580)
    at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSetDoNotAddToCache(ViewObjectImpl.java:5851)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1394)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:994)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7188)
    at oracle.sysman.core.gccompliance.model.central.standard.view.CSViolationsVOImpl.executeQueryForCollection(CSViolationsVOImpl.java:47.
    Caused by: java.sql.SQLException: Invalid column index
    at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
    at oracle.sysman.jdbc.wrapper.OracleResultSetWrapper.getBytes(OracleResultSetWrapper.java:545)
    at oracle.jbo.domain.Raw$1facClass.createDatum(Raw.java:129)
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1331)
    ... 95 more
    ## Detail 0 ##
    java.sql.SQLException: Invalid column index
    at oracle.jdbc.driver.OracleResultSetImpl.getBytes(OracleResultSetImpl.java:1494)
    at oracle.sysman.jdbc.wrapper.OracleResultSetWrapper.getBytes(OracleResultSetWrapper.java:545)
    at oracle.jbo.domain.Raw$1facClass.createDatum(Raw.java:129)
    at oracle.jbo.server.OracleSQLBuilderImpl.doLoadFromResultSet(OracleSQLBuilderImpl.java:1331)
    at oracle.jbo.server.AttributeDefImpl.loadFromResultSet(AttributeDefImpl.java:2570)
    at oracle.jbo.server.ViewRowImpl.populate(ViewRowImpl.java:3929)
    at oracle.jbo.server.ViewDefImpl.createInstanceFromResultSet(ViewDefImpl.java:2580)
    at oracle.jbo.server.ViewObjectImpl.createInstanceFromResultSetDoNotAddToCache(ViewObjectImpl.java:5851)
    at oracle.jbo.server.QueryCollection.buildResultSet(QueryCollection.java:1394)
    at oracle.jbo.server.QueryCollection.executeQuery(QueryCollection.java:994)
    at oracle.jbo.server.ViewObjectImpl.executeQueryForCollection(ViewObjectImpl.java:7188)
    at oracle.sysman.core.gccompliance.model.central.standard.view.CSViolationsVOImpl.executeQueryForCollection(CSViolationsVOImpl.java:47)
    at oracle.jbo.server.ViewRowSetImpl.execute(ViewRowSetImpl.java:1239)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMasters(ViewRowSetImpl.java:1419)
    at oracle.jbo.server.ViewRowSetImpl.executeQueryForMode(ViewRowSetImpl.java:1325)
    at oracle.jbo.server.ViewRowSetImpl.executeQuery(ViewRowSetImpl.java:1310)
    at oracle.jbo.server.ViewObjectImpl.executeQuery(ViewObjectImpl.java:7083)
    at oracle.sysman.core.gccompliance.model.central.standard.applicationModule.CentralStandardAMImpl.executeCSViolsVO(CentralStandardAMImpl.java:1431)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
    jdev version is: Build JDEVADF_11.1.1.6.2_GENERIC_120329.1447.6268.1

  • Count not updating when counting table rows (after adding one)

    following this code from this link:
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/479cbc96-6ec2-4d9f-b2f8-a2b43a09111e/html-client-dynamically-count-records-in-a-collection-on-browse-screen?forum=lightswitch
    I have got my screen to count how many rows are present when the screen first loads. In my scenario I have a add button located on the bottom navigation bar. this opens up a dialog window where the user can add the relevant information. However when the
    user hits save, and is navigated back to the browse screen, the count still displays the previous value. If i was to refresh the page it updates but this is not what i am after, when i navigate back i want the value to add by one, am i missing something in
    this code?
                screen.ExpanderLines.addChangeListener("state", function() {
                        screen.countExp = screen.ExpanderLines.data.length;
    thanks for any help

    Try this:
    screen.ExpanderLines.addChangeListener("count", function () {
    screen.countExp = screen.ExpanderLines.count;
    Dave
    Dave Baker | AIDE for LightSwitch | Xpert360 blog | twitter : @xpert360 | Xpert360 website | Opinions are my own. For better forums, remember to mark posts as helpful/answer.

  • Receive push notification when a new item is added to a shared list in Reminders.app?

    I want to use the Reminders app on my iPhone to share a list with my wife. The sharing is set up easily, but I want to receive an alert when she adds something to the list. Does anyone know if this is possible. We weren't able to figure it out and have since switched to AnyList which does offer this feature on shared lists. But I'd rather use Reminders because of it's integration with Mac OS.

    Hi,
    Why workflow? If you just need to send email then you can use "Alert Me" feature. If you want to approve the item via workflow then just create OOTB workflow from list settings page.
    Finally if you need designer workflow then follow below link:
    http://office.microsoft.com/en-001/sharepoint-designer-help/send-e-mail-in-a-workflow-HA010239042.aspx
    Hope it could help
    Hemendra: "Yesterday is just a memory,Tomorrow we may never see"
    Whenever you see a reply and if you think is helpful, click "Vote As Helpful"! And whenever
    you see a reply being an answer to the question of the thread, click "Mark As Answer

Maybe you are looking for

  • View containing custom column works in SharePoint 2010 but crashes webpart in SharePoint 2013

    First off.. I am using SP FOUNDATION.  Secondly, I'm linking a contact library from a parent site to a view on a sub site. This works in SP 2010 but when I tried to duplicate it in our new SP 2013 site, it doesn't. Reproduce steps to add Parent Conta

  • How can i remove unwanted e-mail address from my list?

    how can i remove unwanted e-mail address from my list?

  • IMac boot hangs/takes a while

    So I've had my iMac for almost a year (and opted for Apple care which I'm glad about!) and within the past month approximately 3 times the boot sequence has hung. It either hangs at the gray screen (with or without the apple logo) or it gets past tha

  • Photos are lost after renaming iPhoto Library

    I changed the name of my iPhoto Library from the Finder, and now I can no longer find the photos in those libraries.  There are no "Modified" or "Original" directories with sub-directories of the photos any more.  I've also tried an application calle

  • Flexrio FPGA dma and dram simulation

    I have a pair of Flex RIO 7966r boards where I am trying to perform DRAM to DMA transfers.  Each FPGA uses both banks of DRAM.  One bank for capturing Camera Link frames, the other bank for capturing sub-frames from within each frame (And performing