cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
New Member

PenInput can be posted on pc, not on mobile phone

Hello!

 

At first, I'm quite new to powerapps and hopefully I do explain my problem good enough.

 

At the moment I want our customer to sign when a job is done. When I click on the button to save the data into a MYSQL column, I do set a couple of variables/parameters.

 

I do want to make sure one of two the signature fields is empty, to compare if there is a signature.

Therefore I do reset one of the fields on click to make sure its empty. Then I do set 2 variables, one with an empty JSON Base64 string, one with the actual signature JSON base64 string.

 

First I had troubles with storing SignatureInput.Image. Therefore I put it in a variable and now its pointing to a hidden label where I post it as Text(sigImage) to make 100% sure i'm posting text into the VARCHAR(65535) field in the db.

 

After putting it into the database, I am validating the actual signature versus the entry in the db, and at this point it gets interesting. Im doing this because I was not sure when it actually stored the signature, and when not.

 

If i do run the application in the browser, I can store whatever I want, without any problems. Everything gets saved the way it should.

 

When I do push the app toward the phones, I am not able to store signatures anymore. Some kinda way it doesnt post it at all..

If there is more info nessecary, let me know!

 

 

 

 

Reset(signatureEmpty);;
Set(
    sigImage;
    JSON(
        signatureInput.Image;
        JSONFormat.IncludeBinaryData
    )
);;
Set(
    sigEmpty;
    JSON(
        signatureEmpty.Image;
        JSONFormat.IncludeBinaryData
    )
);;
If(
    sigImage = sigEmpty;
    Notify("Er is geen handtekening gezet!");
    Patch(
        '[***].[malfunctionform]';
        LookUp(
            '[***].[malfunctionform]';
            id = Value(DataCardValue29.Text)
        );
        {signature: SignatureInputString.Text}
    )
);;
If(
    LookUp(
        '[***].[malfunctionform]';
        id = Value(DataCardValue29.Text);
        signature
    ) = Text(sigImage);
    Patch(
        '[***].[malfunctionform]';
        LookUp(
            '[***].[malfunctionform]';
            id = Value(DataCardValue29.Text)
        );
        {closed: 1}
    );;
    Navigate(
        browseMalfunctions;
        ScreenTransition.Fade
    );
    Notify(
        "Er is een fout opgetreden. Probeer opnieuw";
        NotificationType.Error
    ) && Navigate(
        browseMalfunctions;
        ScreenTransition.Fade
    )
)

 

 

 

0 REPLIES 0

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 (15,637)