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.

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

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.

R2 (Green) 768 x 460px.png

Microsoft Dynamics 365 & Power Platform User Professionals

DynamicsCon is a FREE, 4 half-day virtual learning experience for 11,000+ Microsoft Business Application users and professionals.

Users online (1,416)