Page 1 of 1

Strange button behavior

Posted: Thu Dec 10, 2015 4:37 pm
by TonyS

I have a label and a button. The visibility of both of them is controlled by values in my DB. If the label is visible the button isn't and visa versa.

The button is meant to navigate to another page. However, before it goes to the other page it makes the label visible. Which is overriding the DB control in some way.

Any ideas why this strange behavior is happening?


Strange button behavior

Posted: Thu Dec 10, 2015 4:57 pm
by TonyS

Another strange thing if I don't do a full page refresh it takes 2 clicks to go to other page


Strange button behavior

Posted: Thu Dec 10, 2015 7:48 pm
by Illya Stepanov

Hi Tony -

Could you please send us screen shots of your implementation so we can better understand what is happening.


Strange button behavior

Posted: Thu Dec 10, 2015 11:25 pm
by TonyS

What do you mean by implementation?


Strange button behavior

Posted: Fri Dec 11, 2015 10:35 am
by TonyS

The screens would show the visibility of the label and the button mapped to a yes/no value (1 or 0). Both the components are set with visibility off by default.

When I click on the button it should navigate to another page. It does, but not before showing the label,

I'll try and do some screen shots, but that is essentially what happens.


Strange button behavior

Posted: Fri Dec 11, 2015 12:11 pm
by TonyS

I think this might be a bug. I've removed all actions from the button so it just has to navigate to the new page, but it still changes the visibility of the label. Why would it override the data passed from the database?


Strange button behavior

Posted: Fri Dec 11, 2015 8:31 pm
by Serhii Kulibaba

Hello Tony,

Do you use service's mapping to these controls? Can you provide more details, screenshots or exact steps to reproduce this problem?


Strange button behavior

Posted: Fri Dec 11, 2015 11:13 pm
by TonyS

Yep that's how the database sets the visibility.

I couldn't get it to work so I removed the label. Shame cos it would have been a better UX.