Hi all;
I have a mobile list view bound to a server filtered datasource. The filter, though, is going to be based on an attribute of the Users.currentUser() return. For example, the list is bound to a set of customer quality names filtered by the customer ID for the currently logged in user. I have it working by changing the filter on the data-show event of my view and doing a .read() on the data source, but that causes an extra round trip since the list is initially bound to an empty view.
What I'm taking a long time to ask is....can anybody share the "proper" way to dynamically change the filters for a data source based on the current state of something in the UI? I realize I haven't posted an example, but hopefully my description of what I'm trying to accomplish is relatively straightfoward.
Thanks,
Jason
I have a mobile list view bound to a server filtered datasource. The filter, though, is going to be based on an attribute of the Users.currentUser() return. For example, the list is bound to a set of customer quality names filtered by the customer ID for the currently logged in user. I have it working by changing the filter on the data-show event of my view and doing a .read() on the data source, but that causes an extra round trip since the list is initially bound to an empty view.
What I'm taking a long time to ask is....can anybody share the "proper" way to dynamically change the filters for a data source based on the current state of something in the UI? I realize I haven't posted an example, but hopefully my description of what I'm trying to accomplish is relatively straightfoward.
Thanks,
Jason