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

Determine ID of value selected in a Combobox

Hi there.

I am working with April Dunnam's Time Tracking app, I need to replace the DropDown with a combo box so that users can start typing and see a filtered list of items in the combobox.

 

previously the patch was set to use the ID of the items selected:

BillTo: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: cbBillTo.Selected.ID,
Value: cbBillTo.Selected.Title

 

However, there doesn't seem to be an ID for comboboxes?

I can get the patch to work if I hard code a number, but it's always the first entry in the list

BillTo: {
'@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
Id: 1,
Value: cbBIllTo.Selected.Title
},

 

Any help would be greatly appreciated!

 

Wade

4 REPLIES 4
StalinPonnusamy
Community Champion
Community Champion

Hi @WadeG 

 

        BillTo: ForAll(
            cbBillTo.SelectedItems,
            {
                '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
                Id: ID,
                Value: Title
            }
        )

 

In my example (Based on my data source)

    {
        Title: DataCardValue9.Text,
        Event: ForAll(
            DataCardValue16.SelectedItems,
            {
                '@odata.type': "#Microsoft.Azure.Connectors.SharePoint.SPListExpandedReference",
                Id: Id,
                Value: Value
            }
        )
    }

 

 

StalinPonnusamy
Community Champion
Community Champion

Hi @WadeG 

 

I was not able to attach a gif image then I created a blog to show this. Please refer to if any details are needed.

 

WadeG
New Member

Thanks @StalinPonnusamy I wasn't able to get that to work, kept getting issues with the formatting and I'm too much of a powerApps newb to be able to figure it out just yet. I might just have to hire someone to handle it for me in the meantime.

 

Cheers

StalinPonnusamy
Community Champion
Community Champion

Hi @WadeG 

 

You can send the screenshot to my private message if you don't want to share it with all. You can use Messages in the top right corner, find the person on Send to, and send a message. 

 

To enable the private notification, so that someone can respond to you which sometimes can't be shared with all.

StalinPonnusamy_1-1634175499645.png

 

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

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.

Users online (2,409)