Page 1 of 1

Hide Button by DB field string

Posted: Mon Feb 20, 2017 8:48 pm
by Oldestman57

I have a button that is used to navigate to a page to register new users.
I would like to have the button's visibility property to be controlled by a column in the user database named admin.
if the admin column for the logged in user has the string "admin" in it, set the button's visibility to true.
A null field would set it to false.
The button is not mapped to anything.
I do have a getuser service for the verify page.
What is the best approach to making this work.
Thanks for any info.


Hide Button by DB field string

Posted: Mon Feb 20, 2017 9:33 pm
by Serhii Kulibaba

Hello,

Please use show/hide methods to show/hide elements: https://docs.appery.io/v2.2.0/referen...