Notifications
Announcements
Here is what I have.
Here is what I want:
Can this be done? I imagine it can. As an added bonus I'd probably want to hide the textbox and button when the button is clicked but I think that might be trivial assuming that the submission always works.
Presumably the data source is Dataverse, or SharePoint.
You can:
The Combo Box's Default value would be the variable, which will help it to set it as the default value. Another tricky thing with Combo Boxes is that they can have single or multiple values. This will work for single values, but will require some additional considerations to work for multiple values.
UpdateContext( { locSelectedValue: Patch( dataSourceName, Defaults(dataSourceName), {column: value} ) } )
I'm building the app in Teams and just selecting the "Create new table" option. Is that CDS or Dataverse?
Where would I be setting the context variable. At the OnSelect of the button? Currently, I only have a Patch function that writes the value to the datasource.
Figured it out. I updated the button like this which seems to work
UpdateContext( { newThird : Patch( 'Third Parties', {'Third Party (cr9c7_thirdparty)':'Add 3rd Party TB'.Value} ) } )
Then set the DefaultSelectedItems to newThird
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.
In our never-ending quest to improve we are simplifying the forum hierarchy…
We are honored to recognize Ajay Kumar Gannamaneni as our Community Spotlight for December…
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 717 Most Valuable Professional
Michael E. Gernaey 329 Super User 2025 Season 2
Power Platform 1919 268