cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
GeekAlf_Pro
Resolver I
Resolver I

smartphone performance

Hi,

 

i've built an application and i face weird behaviours on smartphones

my app is plugged to a sql server database.

i  have a view that brings me back about 2500 rows (so with delegation, il seems not to be a problem)

First of all

i've a filter and a clearcollect that gives me 2 values : 

ClearCollect(
    TwoDistinctValue;
    Distinct(
        Filter(
            '[dbo].[QSE_DistinctLigneArr]';
            Value(cb_LgArret.Selected.ligne) = Value(ligne)
        );
        Text(SensA)
    )
    ;
    Distinct(
        Filter(
            '[dbo].[QSE_DistinctLigneArr]';
            Value(cb_LgArret.Selected.ligne) = Value(ligne)
        );
        Text(SensB)
    )
)

i grab this collection and display it in another comboBox.

On my computer it works fine, but on my smartphones, it doesn't !

the TwoDistinctValue is empty on my smartphones, i don't understand why.

 

at last

i've another issue with camera

i've set up an udpdatecontext on a "on select" icon that switch between front and rear camera.

UpdateContext({DeviceObturateur: If(DeviceObturateur = 0;1;0)})

on my iphone it works fine

on my samsung it fails and stay on the front one..... (a teammate face the same)

 

any idea or workaround ?

1 ACCEPTED SOLUTION

Accepted Solutions
HarjitSamra
Advocate I
Advocate I

I can help with your camera issue.  I use Samsung and Iphones.

 

The Camera control has a Camera property which is a number from 0 to 2 (I've found in my App).

 

I set this value to a variable, and then have a 'Switch Camera' button which increments this variable.

 

Also, I store this variable value using SaveData and restore it so saves the camera the user is on.

View solution in original post

3 REPLIES 3
HarjitSamra
Advocate I
Advocate I

I can help with your camera issue.  I use Samsung and Iphones.

 

The Camera control has a Camera property which is a number from 0 to 2 (I've found in my App).

 

I set this value to a variable, and then have a 'Switch Camera' button which increments this variable.

 

Also, I store this variable value using SaveData and restore it so saves the camera the user is on.

View solution in original post

Hi @HarjitSamra ,

 

thanks for your solution regarding the camera it works fine.

here is my code, which manages and iOS and Android : 

UpdateContext({DeviceObturateur: Switch(DeviceObturateur;0;1;1;2;2;0;0)})

 

it remains my issue with my collections.

I split this topic here

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Top Solution Authors
Top Kudoed Authors
Users online (2,310)