Announcement

Collapse
No announcement yet.
X
  • Filter
  • Time
Clear All
new posts

    DataSourceField from type image

    Hello,

    I have defined a DataSourceField from type "image" and set the attributes "imageHeight" and "imageWidth" to two other fields which contains the Height and Width,.

    Code:
            <field name="thumbnail" type="image" title="-" imageHeight="thumbnailHeight" imageWidth="thumbnailWidth"/>
            <field name="thumbnailWidth" type="integer" title="-"  hidden="true"/>
            <field name="thumbnailHeight" type="integer" title="-"  hidden="true"/>
    In SmartGWT 3.0 it's works fine. In Version 3.1p from today I get the error that the fields have to be of type integer.

    Is there another solution in version 3.1.?

    Peter

    #2
    Please post the actual error message you're receiving and indicate whether the feature is working or not.

    Comment


      #3
      It's only a warning on the server:
      Code:
       
      === 2013-02-25 14:33:11,118 [l0-4] DEBUG XML - Parsed XML from D:\webapps\workspace_agenda\Agenda\war\ds\ContentAssignmentDataSource.ds.xml: 9ms
      === 2013-02-25 14:33:11,184 [l0-4] DEBUG ValidationContext - Adding validation errors at path '/DataSource[@ID=ContentAssignmentDataSource]/fields/8/field[@name=thumbnail]/imageHeight': {errorMessage=Must be a whole number.}
      === 2013-02-25 14:33:11,184 [l0-4] DEBUG ValidationContext - Adding validation errors at path '/DataSource[@ID=ContentAssignmentDataSource]/fields/8/field[@name=thumbnail]/imageWidth': {errorMessage=Must be a whole number.}
      === 2013-02-25 14:33:11,188 [l0-4] WARN  Validation - Validation errors validating a 'DataSource':
      {
          "/DataSource[@ID=ContentAssignmentDataSource]/fields/8/field[@name=thumbnail]":{
              recordPath:"/DataSource[@ID=ContentAssignmentDataSource]/fields/8/field[@name=thumbnail]",
              imageHeight:{
                  errorMessage:"Must be a whole number."
              },
              imageWidth:{
                  errorMessage:"Must be a whole number."
              }
          }
      }
      But it's works. I have assigned another problem to this warning.

      Comment


        #4
        This warning is removed in tomorrow's nightly build of 4.0d.

        Comment

        Working...
        X