Hi,
I've got some issues with listgrid criteria failing to match incoming records. I suspect SC is behaving as intended, but just wondering what the best approach to the problem is.
Data Record:
Criteria
A. On a GET, if the server returns the above record, then the ListGrid renders the record.
B. On a PUT or a POST, if the server returns the above record, the the ListGrid does not render the record.
I assume in situation A that SC doesn't attempt to apply the filter because it expects the server to return a correct set of records.
In situation B, I assume SC does apply the filter, because the update may return a record that no longer matches the filter.
So I guess I've got two questions -
1. Is it expected behaviour? i.e. do I need to match *all* values for a multivalued property?
2. Given that the logic I actually want is - 'Match all records that contain this value in this field' - how do I go about structuring that?
Thanks,
Colin
I've got some issues with listgrid criteria failing to match incoming records. I suspect SC is behaving as intended, but just wondering what the best approach to the problem is.
Data Record:
Code:
<response> <status>0</status> <data> <rec> <multiVal>1</multiVal> <multiVal>2</multiVal> </rec> </data> </response>
Code:
{multiVal:1}
B. On a PUT or a POST, if the server returns the above record, the the ListGrid does not render the record.
I assume in situation A that SC doesn't attempt to apply the filter because it expects the server to return a correct set of records.
In situation B, I assume SC does apply the filter, because the update may return a record that no longer matches the filter.
So I guess I've got two questions -
1. Is it expected behaviour? i.e. do I need to match *all* values for a multivalued property?
2. Given that the logic I actually want is - 'Match all records that contain this value in this field' - how do I go about structuring that?
Thanks,
Colin
Comment