cancel
Showing results for 
Search instead for 
Did you mean: 

Filter Associations at XML View

philipp_steidl
Explorer
0 Kudos
688

i have items from an association bound to a Table.

if i do it in this way it works:

<Table id="tbl1" items="{layerCompAss}" headerText="header" growing="true" >

but i need to add a Filter to this table and i tried it in this way:

<Table id="tbl1"

  items="{

    path: '/layerCompAss',

    filters: [{

        Comptyp: 'H'

    }]

}"

  headerText="header" growing="true" >

but this does not work.

Any idea how that works?

Thanks

View Entire Topic
philipp_steidl
Explorer
0 Kudos

thanks, but it is still not working.

for me the problem seems to be that items="{layerCompAss}" is not the same than

items="{ path:'/layerCompAss' }"

any idea?

Former Member
0 Kudos

How could both be the same ? In the second one, you have the slash in the path which means that its'an absolute binding whereas the first one is a relative binding path. So your binding path should be without slash.

items="{ path:'layerCompAss' }"
philipp_steidl
Explorer
0 Kudos

Thanks, it works now with this syntax:

<Table items="{path:'layerCompAss',filters: [{ path: 'Comptyp', operator: 'Contains', value1: 'H'}] } growing="true" >