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

When moving from TextInput to Button, OnChange is not triggered

We have an app with some input controls and a Button to go to the next screen.

 

When entering Text in a TextInput control, the data is stored from the OnChange event.

This event is triggered when going to another control, i.e. by using tab.

When clicking on the button directly after entering text, the OnChange event is not fired, so the data is not stored.

 

Is this a bug?

3 REPLIES 3
v-monli-msft
Community Support
Community Support

Hi @JeroenL,

 

How is the code of OnChange function of your txetinput control configured?

 

Regards,

Mona

Community Support Team _ Mona Li
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

This is the code of the OnChange:

 

If(IsEmpty(Filter('PIM Product Attributes'; ProductNumber = Record100.ExternalProductNumber; AttributeId = "Commerciële beschrijving")); Collect('PIM Product Attributes'; {ProductNumber: Record100.ExternalProductNumber; AttributeId: "Commerciële beschrijving"; AttributeValueId: Commercieel}); Patch('PIM Product Attributes';Last(Filter('PIM Product Attributes'; ProductNumber = Record100.ExternalProductNumber; AttributeId = "Commerciële beschrijving")); {AttributeValueId: Commercieel}));;

 

So we either create or update a record in a table in the CDS. The control is not bound to a datasource.

Hi JeroenL, 

 

Have you found any solution for this issue. We are facing similar issue in one of canvas app.

 

Any solution/workaround would help us.

 

thanks in advance.

 

Regards,

Deepak

Helpful resources

Announcements
Power Platform Call June 2022 768x460.png

Power Platform Community Call

Join us for the next call on August 17, 2022 at 8am PDT.

Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

Users online (1,632)