Go Back   SmartClient Forums > Smart GWT Technical Q&A
Wiki Register Search Today's Posts Mark Forums Read

Reply
 
Thread Tools Search this Thread
  #1  
Old 29th Mar 2012, 10:05
ecruz ecruz is offline
Registered Developer
 
Join Date: May 2010
Posts: 67
Default Filter criteria value fields disabled in recent release

We recently update to the SC_SNAPHOT-2012-03-15_v8.2/Power Edition, and are using Firefox 10.

What we've noticed is that in grid filters, the values field for data fields with custom select expressions are (by default) disabled. So values cannot be specified for filter criteria for those fields.

After doing some experimentation, it seems that it is being governed by the canEdit attribute on the DS field. If set to "true", then the value can be entered for the filter criteria. We don't have this attribute set on these fields, and don't want to set them this way, since they are otherwise not supposed to be editable.

It seems to be a change with this specific release, so I assume a regression?

Thanks.
Reply With Quote
  #2  
Old 6th Apr 2012, 03:51
jay.l.fisher jay.l.fisher is offline
Registered Developer
 
Join Date: Oct 2009
Posts: 982
Default

Any update on this? Just to clarify it is the FilterBuilder component in which the fields are disabled.
Reply With Quote
  #3  
Old 6th Apr 2012, 05:33
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,599
Default

We'll check on this, however, can you clarify - is it correct for these fields to be canEdit:false in your application (hence read-only in a DynamicForm) so long as they are still canFilter:true?

Also, why do you have a lot of such fields (as the previous post seems to imply).
Reply With Quote
  #4  
Old 6th Apr 2012, 06:49
jay.l.fisher jay.l.fisher is offline
Registered Developer
 
Join Date: Oct 2009
Posts: 982
Default

The read-only fields are not directly editable by the user. They contain transactional data that is updated by other background processes, but the user needs to see them and be able to filter on them, just not update them.
Reply With Quote
  #5  
Old 9th Apr 2012, 00:55
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,599
Default

From a first look, we aren't seeing this behavior. Could you post a DataSource definition that gives you this problem?
Reply With Quote
  #6  
Old 1st May 2012, 11:21
bbruyn bbruyn is offline
Registered Developer
 
Join Date: Feb 2011
Posts: 266
Default

Quote:
Originally Posted by Isomorphic
From a first look, we aren't seeing this behavior. Could you post a DataSource definition that gives you this problem?
Here's one, based on the samples database (tested w/ the 2012-05-01 3.0p build).

Code:
<!-- <%@ taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> -->

<DataSource xmlns:fmt="urn:jsptld:http://java.sun.com/jsp/jstl/fmt"
    ID="OrderItem"
    serverType="sql"
    autoDeriveSchema="true"
    tableName="MASTERDETAIL_ORDERITEM">
    
    <fields>
        
        <fmt:setBundle basename="com.islandpacific.fieldpicker.shared.datasources.OrderItem"/>
        
        <!-- Hidden fields are excluded from the Tree -->
        <field name="PK" type="sequence" primaryKey="true" hidden="true">
            <title><fmt:message key="itemId.title"/></title>
            <prompt><fmt:message key="itemId.prompt"/></prompt>
        </field>
        
        <field name="DERIVED" customSQL="true"/>
        
        <!--  -->
        <field name="ORDERID" required="true" foreignKey="Order.ORDERID">
            <title><fmt:message key="orderId.title"/></title>
            <prompt><fmt:message key="orderId.prompt"/></prompt>
        </field>

        <fmt:setBundle basename="com.islandpacific.fieldpicker.shared.datasources.Order"/>
        <field name="CUSTOMERNAME" includeFrom="Order.CUSTOMERNAME">
            <title><fmt:message key="customerName.title"/></title>
            <prompt><fmt:message key="customerName.prompt"/></prompt>
        </field>
        
        <field name="TRACKINGNUMBER" includeFrom="Order.TRACKINGNUMBER">
            <title><fmt:message key="trackingNumber.title"/></title>
            <prompt><fmt:message key="trackingNumber.prompt"/></prompt>
        </field>
        <field name="ORDERDATE" includeFrom="Order.ORDERDATE">
            <title><fmt:message key="orderDate.title"/></title>
            <prompt><fmt:message key="orderDate.prompt"/></prompt>
        </field>


        <fmt:setBundle basename="com.islandpacific.fieldpicker.shared.datasources.OrderItem"/>
        <field name="ITEMDESCRIPTION" required="true">
            <title><fmt:message key="itemDescription.title"/></title>
            <prompt><fmt:message key="itemDescription.prompt"/></prompt>
        </field>
        <field name="QUANTITY" required="true">
            <title><fmt:message key="quantity.title"/></title>
            <prompt><fmt:message key="quantity.prompt"/></prompt>
        </field>
        <field name="UNITPRICE" required="true" canEdit="false" canFilter="true">
            <title><fmt:message key="unitPrice.title"/></title>
            <prompt><fmt:message key="unitPrice.prompt"/></prompt>
        </field>
        
    </fields>
    
</DataSource>

Last edited by bbruyn; 1st May 2012 at 11:38..
Reply With Quote
  #7  
Old 4th May 2012, 07:34
bbruyn bbruyn is offline
Registered Developer
 
Join Date: Feb 2011
Posts: 266
Default

Just a follow-up to ask whether anyone's had a chance to look at this?
Reply With Quote
  #8  
Old 4th May 2012, 13:55
Isomorphic Isomorphic is offline
Administrator
 
Join Date: May 2006
Posts: 30,599
Default

This was already resolved in 3.1d. A fix has been ported across to 3.0p - please try the next nightly build and let us know if it persists for you

Regards
Isomorphic Software
Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search


Similar Threads
Thread Thread Starter Forum Replies Last Post
SC_SNAPSHOT-2012-01-07_v82p missing files and not working RickBollinger Installation 23 13th Jan 2012 08:42
Need a way to set a Criteria in order to filter the filterbuilder fields d.cavestro Smart GWT Technical Q&A 0 27th Dec 2011 08:28
Opera CSS Errors rafa1970 Technical Q&A 1 10th Dec 2009 06:51
Changing advenced to simple criteria when changing from advanced to simple filter borutr Technical Q&A 3 13th Nov 2009 16:59
Assign Value of a ListGrid Cell to a TextItem during onRecordClick Event of the Grid ADA Smart GWT Technical Q&A 4 4th Mar 2009 20:21

© 2010,2011 Isomorphic Software. All Rights Reserved