Announcement

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

    Problem with a DS field with optionDataSource defined diplayed in a ListGrid

    SmartClient_v83p_2013-03-20

    A definiton of a field in a DataSource is like this...
    Code:
    //PART_BRAS_ID                                       NUMBER(4)
    	    {name:"PART_BRAS_ID", type:"integer", title:"Branchenschlüssel", length:4, detail:true,
    	    	editorType:"ComboBoxItem", 
    	        addUnknownValues:false,
    	        optionDataSource:"dsBras",
    	        valueField:"BRAS_ID",
    	        displayField:"BRAS_DISPLAY",
    	        filterFields:["BRAS_BRANCHENSCHLUESSEL", "BRAS_BEZ"],
    	        //pickListWidth:300,
    	        pickListFields:[
    	            {name:"BRAS_DISPLAY"}
    	        ]
    		},
    When used in a ListGrid only a single fetch seems to be performed on the OptionDataSource w/o any filter criteria!? This is a good strategy if the records in the ListGrid references most of the OptionDataSource records but bad if this is not the case. Especially, if the field isn't displayed at all ("detail:true").

    #2
    See the docs for listGridField.optionDataSource - what it's doing is exactly what you've configured it to do, but other strategies are available.

    Comment

    Working...
    X