SapUI5: Filter Value to databound value in Row Repeater -


i created row repeater. row repeater template consists of panel consists table.

i have set model row repeater , tables uses same model, different path.

the model rows of row repeater property level. want show in tables rows values same level. tried tried filter value that:

otemplatetable.bindrows({         path: "/root_component",         sorter: new sap.ui.model.sorter("name"),         filters: [new sap.ui.model.filter(             "level",             sap.ui.model.filteroperator.eq, "{level}")] }); 

but did not work. need way level value row in table in. has idea?

both root_component , root_statistics objects (i.e., {{data},{data}}) containing objects instead of arrays (i.e., [{data}, {data}]) containing objects, doubt able render rowrepeater correctly

furthermore, think {level} argument in filter resolves root_component (since that's you're binding table to) , not root_statistics.

i think save lot of trouble if rework json response more hierarchic one, won't need filter anyway:

[{     name      : "abc",     tabledata : [     {         amount : 20     }] }, {     name      : "def",     tabledata : [     {         amount : 1     }] }] 

this way bind rowrepeater root node, , table relative child tabledata


Comments

Popular posts from this blog

javascript - Jquery show_hide, what to add in order to make the page scroll to the bottom of the hidden field once button is clicked -

javascript - Highcharts multi-color line -

javascript - Enter key does not work in search box -