Page 1 of 2

Visibility of component

Posted: Wed Oct 01, 2014 6:50 pm
by Joe Sharples

Hi Guys,

I have a label mapped to field in a database. If the field is empty then by default the label doesn't appear. (it used to return 'undefined' but since the builder update it returns "" instead), which is great.

How do I make a grid invisible if the same field mapped to a label is empty.

The label is in the grid so when there is no value returned I want the labal and the grid to not be visible.

Regards,
Joe


Visibility of component

Posted: Thu Oct 02, 2014 2:26 am
by Yurii Orishchuk

Hi Joe,

To manage visibility of label you should link from value to "Visible" attribute of the label.

See details: http://prntscr.com/4s9b32/direct

Also you can add "JS" like following:

pre

//return value == "";
return value != undefined;

/pre

Regards.


Visibility of component

Posted: Thu Oct 02, 2014 11:04 am
by Joe Sharples

Hi Yurii,

I tried exactly as you said but it did not work, the grid is still visible when there is no value.


Visibility of component

Posted: Thu Oct 02, 2014 9:50 pm
by Yurii Orishchuk

Hi Joe,

May be your rest service does not returns this field(not empty value)?

If so - please make link from parent object to "visible" label attribute and use following code:

pre

//Where "yourField" is your goal field.
return value.yourField != undefined;

/pre

Anyway if you can not to manage this problem please give us your app public link and describe steps reproduce this problem.

Regards


Visibility of component

Posted: Fri Oct 10, 2014 1:44 pm
by Joe Sharples

Hi Yurii,

i'm not sure that i understand you.

I have mapped it like this:
Image

The grid contains 2 labels. with the text 'Venue tel:' and the other label is mapped to the 'VenueContact" field in the database".

my aim is so that if there is no 'VenueContact' number in the field then the grid wont be visible, hence the labels inside wont be visible too.

I tired the two codes and a combination of both but I can't see to get it to work.

I would prefer not to post a public link on here, shall i send it to you another way?


Visibility of component

Posted: Fri Oct 10, 2014 9:07 pm
by Illya Stepanov

Hi Joe,

Yes, you can share your app with a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a (http://devcenter.appery.io/documentat...) and send us the app name.


Visibility of component

Posted: Thu Oct 16, 2014 5:19 pm
by Joe Sharples

I have shared the app and emailed a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a.
Thank you


Visibility of component

Posted: Fri Oct 17, 2014 1:31 am
by Yurii Orishchuk

Hi Joe,

Please describe steps to reproduce your problem in your app.

Regards.


Visibility of component

Posted: Mon Oct 20, 2014 1:06 pm
by Joe Sharples

Hi Yurii,

I sent an email explaining the problem to a href="mailto:support@appery.io" rel="nofollow"support@appery.io/a

did you receive this email?


Visibility of component

Posted: Mon Oct 20, 2014 3:20 pm
by Kateryna Grynko

Hi Joe,

Thank you, we received the email. Our developers are working on it.