cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
bierstedt1
Frequent Visitor

Data Cards Smashed Together in App, works fine on Computer.

I have an issue loading our apps on IPads and phones. When they are loaded on a computer, there is no problem. Please see the picture attached. I have tabs dividing data cards so they are only seen when a certain button is selected. For each button, OnSelect uses a formula UpdateContext({visible1:true}); UpdateContext({visible2:false}); UpdateContext({visible3:false}). Each button is only true in the visible tab for the data card that should be seen. Wondering if this is the reason that the data is not collected? Need some help determining why the app is not loading and why the computer is. 

 

Error Loading Screen.jpg

 

1 ACCEPTED SOLUTION

Accepted Solutions
KroonOfficeSol
Resident Rockstar
Resident Rockstar

@bierstedt1

 

Do you use one form?
- Option is to create three forms all connected to the same datasource. In this way you don't have to show/hide the datacards. I found that this is not always working fine and sometimes the datacard gets re-arranged.

 

How do you make the datacard visible? Do you use the .height or .Visible? 

 

Is the Height off the datacard related to the height off the both controls?

- If so set the height to a absolute height and try if it then works fine.

 

Also disable the AutoHeight for the label.

 

For controlling visibility you can better use one number variable. So on your Button.OnSelect you get

UpdateContext({MShow:1}) // on the first
UpdateContext({MShow:2}) // on the second
UpdateContext({MShow:3}) // on the third

Then on you galleries.Visible/DataCard.Visible you do

MShow = 1 // to show on one possible value
MShow in [1,3] // to show on multiple possible values

Less variables to mantain and easier syntac on the visibility (instead off Visible1 && Visible2) 

 

Hope this helps.

 

Paul

View solution in original post

3 REPLIES 3
KroonOfficeSol
Resident Rockstar
Resident Rockstar

@bierstedt1

 

Do you use one form?
- Option is to create three forms all connected to the same datasource. In this way you don't have to show/hide the datacards. I found that this is not always working fine and sometimes the datacard gets re-arranged.

 

How do you make the datacard visible? Do you use the .height or .Visible? 

 

Is the Height off the datacard related to the height off the both controls?

- If so set the height to a absolute height and try if it then works fine.

 

Also disable the AutoHeight for the label.

 

For controlling visibility you can better use one number variable. So on your Button.OnSelect you get

UpdateContext({MShow:1}) // on the first
UpdateContext({MShow:2}) // on the second
UpdateContext({MShow:3}) // on the third

Then on you galleries.Visible/DataCard.Visible you do

MShow = 1 // to show on one possible value
MShow in [1,3] // to show on multiple possible values

Less variables to mantain and easier syntac on the visibility (instead off Visible1 && Visible2) 

 

Hope this helps.

 

Paul

View solution in original post

samuelJ
Responsive Resident
Responsive Resident

Are you using Auto Height for these?  Many people see this error with auto height.  Turning off improved rendering has helped us.

I ended up creating multiple screens, as one screen with the visible function just seemed to be too much for the app to handle on apple products. 

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Carousel April Dunnam Updated 768x460.jpg

Urdu Hindi D365 Bootcamp

Dont miss our very own April Dunnam’s The Developer Guide to the Galaxy! Find out what the Power Platform has to offer for the traditional developer.

Users online (2,478)