Announcement

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

    FilterBuilder Issue in 9.0 (works in 8.3)

    Hello,

    I am experiencing a strange issue with the filter builder when using SmartClient 9.0p_2014-01-13_LGPL. The issue is not present with SmartClient 8.3p_2013-02-28_LGPL.

    What is happening is that the textboxes for the user to enter filter values are not drawing. So I am ending up with just the field and operator dropdowns, but nowhere to actually enter a filter value.

    Again, this is a new behavior since moving from 8.3 to 9.0.

    Any help would be greatly appreciated!

    Thanks,

    Philip

    #2
    Code for review

    Also, here is the code that I am using:

    var initCri = [{operator:'iContains', fieldName:'LastName', value:''},{operator:'iContains', fieldName:'FirstName', value:''},{operator:'iContains', fieldName:'Email', value:''}];

    isc.DataSource.create({
    ID: "gridDS",
    dataFormat:"json",
    dataURL:"/adminData/getData.ashx?p=users",
    fields:[
    {name:"UserId", hidden:"true", primaryKey:"true"},
    {name:"FirstName", title:"First Name", width:120, validOperators:["iNotEqual","iContains","iEquals","iStartsWith","iEndsWith"]},
    {name:"LastName", title:"Last Name", width:120, validOperators:["iNotEqual","iContains","iEquals","iStartsWith","iEndsWith"]},
    {name:"Username", title:"Username", width:100, validOperators:["iNotEqual","iContains","iEquals","iStartsWith","iEndsWith"]},
    {name:"Email", title:"Email", validOperators:["iNotEqual","iContains","iEquals","iStartsWith","iEndsWith"]},
    {name:"UserType", title:"User Type", width:100, validOperators:["iNotEqual","iContains","iEquals","iStartsWith","iEndsWith"]},
    {name:"CreatedDate", title:"Created Date", type:"date", width:100, align:"left", validOperators:["equals","notEqual","greaterThan","lessThan"]},
    {name:"IsActive", title:"Active", type:"boolean", width:80, validOperators:["equals"]}
    ]
    });

    var advancedCriteria = {
    _constructor:"AdvancedCriteria",
    operator:"and",
    criteria:initCri
    };

    isc.FilterBuilder.create({
    ID:"filterList",
    dataSource:"gridDS",
    showAddButton:false,
    showRemoveButton:false,
    showSubClauseButton:false,
    criteria: advancedCriteria,
    topOperatorAppearance:"radio",
    radioOptions:["and","or"]
    });

    Comment

    Working...
    X