M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Contributor
Posts: 21
Registered: ‎05-11-2018
Accepted Solution

Filtered list in mobile

Hi,

 

I am trying to filter a list by user in the Mobile app.

In my shell.xaml I have the following filter:

 

<Entity.Filters>
	<Filter Id="ASSIGNED_TO" Sql="ASSIGNED_TO = @{System.UserId}" IsDefault="True" />
</Entity.Filters>

How in my list.xaml can I implement the filter?

 

<List.ShellActions>
        
</List.ShellActions>
    <ListCell Name="STREET_NAME" Title="Street" />  
    <ListCell Name="ASSIGNED_TO" Title="User"/>	

 

Thank You

Ciaran

Technical Evangelist
Posts: 640
Registered: ‎11-12-2015

Re: Filtered list in mobile

Hi Ciaran,

 

You can use a Search against the list as a Filter here.

 

Using your 'ASSIGNED_TO' Filter example it would look something like:

<List.ShellActions>
   <SearchShellAction Filter="ASSIGNED_TO" />
</List.ShellActions>

HTH

Staff
Posts: 103
Registered: ‎10-25-2016

Re: Filtered list in mobile

Hi Ciaran,

 

you can also have a look at Lab 5b (https://community.hexagongeospatial.com/t5/M-App-Enterprise-Tutorials/How-to-setup-a-Mobile-App-Part...) how to apply a filter to a specific list.

 

If you specify IsDefault="True" to your entity filter, it will be applied at synchronization level. If you set it to IsDefault="False", you can use it as default filter on a list or e.g.: to filter items of a picker.

 

Regards

Christian

 

 

Contributor
Posts: 21
Registered: ‎05-11-2018

Re: Filtered list in mobile

Hi Christian,

 

That works perfect

 

Thank you

Ciaran