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
Highlighted
Contributor
Posts: 27
Registered: ‎05-11-2018
Accepted Solution

Can I hide a ListCell

Hi,

 

Is it possible to hide a ListCell within a list.

I would like to hide the ID ListCell below.

 

<List.ShellActions>
       
</List.ShellActions>
<List.SelectionScript>
		var PLAYGROUND = '';

		Context.setSessionKey('PLAYGROUND', Context.getValue('ID'));
	
</List.SelectionScript>
 
<ListCell Name="PLAYGROUND" Title="Playground" />   
<ListCell Name="PARK" Title="Park" />
<ListCell Name="ID" Title="ID"/> 

In a form I can hide an element by use something like Context.hide('ID'); within the StartupScript - I cannot seem to do the same in a list?

 

Thank you

Ciaran

Highlighted
Staff
Posts: 1,094
Registered: ‎10-18-2015

Re: Can I hide a ListCell

hi Ciaran,

 

is there a particular reason to show it and then hide it? You are not required to put it in the list, you can simply omit it.

 

Stefano

Stefano Turcato
Presale Engineer
Hexagon Geospatial
Highlighted
Contributor
Posts: 27
Registered: ‎05-11-2018

Re: Can I hide a ListCell

Hi Stefano,

 

I am looking to pass the ID into a form and I don't want the user to see it.

 

Thanks

Ciaran

Highlighted
Staff
Posts: 105
Registered: ‎10-25-2016

Re: Can I hide a ListCell

Hi Ciaran,

 

you can use all values in your script, even if you don't show them with a list cell.

 

Regards

Christian

Highlighted
Contributor
Posts: 27
Registered: ‎05-11-2018

Re: Can I hide a ListCell

Hi Christian,

 

Ah! yes you can.

 

Thanks

Ciaran