Announcement

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

    using formItem.readOnlyDisplay:"static", some items value don't show

    SmartClient Version: v9.0p_2013-12-14/PowerEdition Development Only (built 2013-12-14)

    please try this code in the showcase
    Code:
    isc.ValuesManager.create({
        ID:"vm",    
        dataSource: countryDS
    })
    isc.DynamicForm.create({
        ID: "countryList",
        valuesManager:vm,
        width:550, height:224, 
        // use server-side dataSource so edits are retained across page transitions
    //    dataSource: countryDS,
        // display a subset of fields from the datasource
        fields:[
            {name:"countryCode", title:"Flag", width:40, type:"text", readOnlyDisplay:"static"},
            {name:"countryName", readOnlyDisplay:"static"},
            {name:"continent", readOnlyDisplay:"static"},
            {name:"member_g8", readOnlyDisplay:"static"},
            {name:"population", formatCellValue:"isc.NumberUtil.toUSString(value);"},
            {name:"independence"}
        ],
        canEdit: false
    })
    vm.fetchData({countryCode:"US"})
    countryCode and countryName values will not show. Is it related to the fact that are marked as required in the dataSource?

    #2
    We've made a change to address this - please retest with a build dated December 22 or later

    Comment

    Working...
    X