cancel
Showing results for 
Search instead for 
Did you mean: 

group the xsodata results

Former Member
0 Kudos

Hi All

From XSODATA I am getting json results like

0: {

ADDRESS: "LAKE DR"

CITY: "ISSAQUAH"

IS_ENABLED:0

},

1: {

ADDRESS: "LAKE DR"

CITY: "ISSAQUAH"

IS_ENABLED:1

}

In results each object having flag called IS_ENABLED, based on this flag I should bind the results in two different table. Is there any way to group and bind the results ?

Thanks in Advance.

Suja Arjunan

Accepted Solutions (0)

Answers (1)

Answers (1)

saivellanki
Active Contributor
0 Kudos

Hi Suja,

Consider, you want to bind values only when IS_ENABLED=0. Then you can make use of filter while binding like this -


<Table

    id="locationTable"

    items="{

      path:'/modelData',

   filters: [{ path: 'IS_ENABLED', operator: 'EQ', value1: 0}]

    }" >

Check this sample - Plunker - TableBindingFilter

Regards,

Sai Vellanki.

Former Member
0 Kudos

Thank you sai...

Is that possible to do without filter. Because I have to compare both the table model values after binding, for doing some other functionality.

Thanks

Suja Arjunan