Announcement

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

    Lisgrid detail datasource filtering

    Hello. How can i specify custom criteria for fetching detail records. By default detail datasource "DVS_DOCS" is filtered by field named "ID".

    Code:
             <criteria xsi:type="xsd:Object">
                <ID xsi:type="xsd:long">1000715389</ID>
             </criteria>
    Is it possible to change field name from ID to ACTION_ID? For example:

    Code:
             <criteria xsi:type="xsd:Object">
                <ACTION_ID xsi:type="xsd:long">1000715389</ID>
             </criteria>

    LISTGRID EXAMPLE:
    Code:
    isc.ListGrid.create({
    	ID:"actionList",
    	autoDraw:false,
    	showRollOver:false,
    	dataSource:"ref:ACTIONS",
    	fields:[
            ..................
    	],
    	canExpandRecords : true,
    	expansionMode: "related",
    	detailDS:"ref:DVS_DOCS",
    	expansionCanEdit : true,
    	expansionRelatedProperties:{
    		fields:[
    			{name:"header"},
    			{name:"data"}
    		]
    			
    	}
    })

    #2
    The chosen criteria are based on the foreignKey relationship between the two DataSources. If you want some other kind of data fetched, you can override getExpansionComponent() to return a ListGrid configured however you would like.

    Comment

    Working...
    X