Uploaded image for project: 'ODF Toolkit'
  1. ODF Toolkit
  2. ODFTOOLKIT-360

comparison of tablnames on setting data to the dataset is wrong and fails

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Major
    • Resolution: Unresolved
    • 0.7-incubating
    • None
    • simple api
    • None

    Description

      I'm using a cell range address like this: 'TableName'.A1:'TableName.EN4'
      This is a valid format and matches the regex in the class CellRangeAddress.class.

      In DataSet:618 you are going through a NodeList to find the table by a given name. The given table name has been extracted from the cell range address.

      The problem: the extracted table name contains the quotes chars and no table will be found in this case, because: 'Tablename' != TableName

      possible solution:

      private boolean matchingTable(String extractedName, String tableName){
      if(extractedName != null && extractedName.startsWith("'")&& extractedName.endsWith("'"))

      { extractedName = extractedName.substring(1, extractedName.length()-1); }

      if(tableName != null && tableName.startsWith("'")&& tableName.endsWith("'"))

      { tableName = tableName.substring(1, tableName.length()-1); }

      return extractedName.equals(tableName);
      }

      Attachments

        Activity

          People

            Unassigned Unassigned
            kabdebo Michael Kabdebo
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: