web
You’re offline. This is a read only version of the page.
close
Skip to main content

Notifications

Announcements

Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / How do I reset a combo...
Power Apps
Unanswered

How do I reset a combobox after a patch to the comboboxes dataverse table?

(0) ShareShare
ReportReport
Posted on by 634

I have a combobox with a DSI of:

 

If(Self.DisplayMode=DisplayMode.Edit, If(IsBlank(newThird),{crfeb_thirdparty: Parent.Default},newThird), Blank())

 

This combobox used to automatically refresh every time I patched a new value to the Dataverse table from a text input field.  No it does nothing. If I look at newThird there is a record value which I can print to screen using a label. The new value can also be seen in the combobox dropdown so I know the data got patched correctly. I tried refeshing the combobox after the patch but that doesn't appear to do anything. what is interesting is if I fiddle with that combobox formula, event if it is an error, it refreshes and the newThird appears. I just can't figure out why it doesn't do it normally.

I have the same question (0)
  • Future_Vision Profile Picture
    634 on at

    @v-xiaochen-msft 

    Below is what is on the submit button.

     

    If(
     !IsBlank(AddThirdParty_TB.Value) && IsBlank(
     LookUp(
     'Third Parties',
     crfeb_thirdparty = AddThirdParty_TB.Value
     )
     ),
     Patch(
     'Third Parties',
     Defaults('Third Parties'),
     {crfeb_thirdparty: AddThirdParty_TB.Value}
     );
     UpdateContext({newThird: {crfeb_thirdparty: AddThirdParty_TB.Value}});
     Set(
     add3rdPtyGRP,
     false
     );
     Set(
     add3rdPtyBTN,
     true
     );
     Set(
     add3rdPtyERR,
     false
     );
     MicrosoftTeams.PostMessageToChannelV3(
     Gallery1.Selected.id, Gallery1_1.Selected.id,
     {
     content: "Third Party Added: <br><b><span style=""color:#e67e22"">" & AddThirdParty_TB.Value & "</span></b> ",
     contentType: "html"
     }
     ),
     Notify(
     If(
     !IsBlank(AddThirdParty_TB.Value),
     AddThirdParty_TB.Value & " Already Exists",
     "Add Third Party Field is Blank"
     ),
     NotificationType.Error,
     2500
     );
     Set(
     add3rdPtyERR,
     true
     );
     
    );

     The datatype for the crfeb_thirdparty column is text.

     

    I'm not sure what you are looking for the newThird's formula. Are you talking about the formula used on the combobox for the DSI?

     

     

  • v-xiaochen-msft Profile Picture
    on at

    Hi @Future_Vision ,

     

    Could you provide a formula for submitting data?

    What's data type of  crfeb_thirdparty column?

    What' newThird's formula?

     

    Best Regards,
    Wearsky

     

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Forum hierarchy changes are complete!

In our never-ending quest to improve we are simplifying the forum hierarchy…

Ajay Kumar Gannamaneni – Community Spotlight

We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…

Leaderboard > Power Apps

#1
Kalathiya Profile Picture

Kalathiya 403

#2
WarrenBelz Profile Picture

WarrenBelz 338 Most Valuable Professional

#3
MS.Ragavendar Profile Picture

MS.Ragavendar 320 Super User 2025 Season 2

Last 30 days Overall leaderboard