cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Helper III
Helper III

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
Highlighted
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
Highlighted
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

Highlighted

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.

Highlighted

I split this topic here

Helpful resources

Announcements
Community Conference

Power Platform Community Conference

Check out the on demand sessions that are available now!

News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Community Highlights

Community Highlights

Check out the Power Platform Community Highlights

Top Solution Authors
Top Kudoed Authors
Users online (10,417)