Visibility of component

This forum contains topics that were moved from Get Satisfaction
Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Visibility of component

Post 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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Visibility of component

Post 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.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Visibility of component

Post 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.

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Visibility of component

Post 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

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Visibility of component

Post 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?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

Visibility of component

Post 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.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Visibility of component

Post by Joe Sharples »

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

Visibility of component

Post by Yurii Orishchuk »

Hi Joe,

Please describe steps to reproduce your problem in your app.

Regards.

Joe Sharples
Posts: 0
Joined: Mon Aug 18, 2014 1:31 pm

Visibility of component

Post 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?

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

Visibility of component

Post by Kateryna Grynko »

Hi Joe,

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

Post Reply