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

ComboBox Selected Gallery Item

I'm developing an app where I'm pulling Department and User Names from O365.  I have it setup to populate comboboxes with the O365 list which works fine.  I populate the form from a gallery.  The issue is when I select a gallery item every other field populates properly but the 3 comboboxes remain blank.  I have tries ThisItem, Parent.Default, Lookups and have not had any luck getting the existing data in.  Can someone guide me in the right direction?

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Frequent Visitor

Re: ComboBox Selected Gallery Item

I was not returning the DepartmentID in the Gallery, Once I added that to the Gallery and added

{
Value: ThisItem.'FieldNAme'
}

 

it now works.

 

Thanks

View solution in original post

11 REPLIES 11
Highlighted
Super User
Super User

Re: ComboBox Selected Gallery Item

Can you please post screenshots so we can better understand your problem?  Then we'll be able to guide you better.

Highlighted
Helper II
Helper II

Re: ComboBox Selected Gallery Item

Could you provide an example of what one of the ComboBoxes has in its DefaultSelected and Items properties? Are the fields that are populating correctly not comboboxes?

Highlighted
Super User
Super User

Re: ComboBox Selected Gallery Item

Can you please try in the DefaultSelected Item property of combo box

{
Value: ThisItem.'FieldNAme'
}

So where ever you are populating the gallery from. You can use that column and assign the thisitem.FieldName as its default

in my example below my field name is Full Name hence i am using that variable

 

default combo.PNG

 

Highlighted
Frequent Visitor

Re: ComboBox Selected Gallery Item

Thanks for the quick replies.  Below is the rough app.  The Combo Boxes in question are "Department", "Assigned To" and "Initiated By"
2020-06-25 11_44_33-.png

In this shot I'm in Edit mode and it pulls the list of O365 Departments but it does not return the value selected in the Gallery

2020-06-25 11_46_27-.png

 

2020-06-25 11_48_19-Action Tracker Entry - Saved (Unpublished) - Power Apps.png2020-06-25 11_48_53-Action Tracker Entry - Saved (Unpublished) - Power Apps.png

Let me know if this helps or if I need to provide more.

Highlighted
Frequent Visitor

Re: ComboBox Selected Gallery Item

2020-06-25 11_55_49-Action Tracker Entry - Saved (Unpublished) - Power Apps.png

 When I try 

{
Value: ThisItem.'FieldNAme'
}

I get the above error

Highlighted
Super User
Super User

Re: ComboBox Selected Gallery Item

When you submit this form, what is the name of the column the result of this drop down is saved in.

Secondly is ActionTrackerDetails a collection or what is the datasource type?
Highlighted
Frequent Visitor

Re: ComboBox Selected Gallery Item

The datasource is CDS

Column Name is "DepartmentID"

Highlighted
Helper II
Helper II

Re: ComboBox Selected Gallery Item

Best thing to do is filter the collection in your "items" property with your search term. Is the department ID returned in your Gallery? If so, In your DefaultSelected property try something like:

Filter(Office365Users.SearchUser().Department, Department = Gallery_Issues.Selected.DepartmentID)

Highlighted
Frequent Visitor

Re: ComboBox Selected Gallery Item

I was not returning the DepartmentID in the Gallery, Once I added that to the Gallery and added

{
Value: ThisItem.'FieldNAme'
}

 

it now works.

 

Thanks

View solution in original post

Helpful resources

Announcements
Ignite

Microsoft Ignite

This will be a conference that you do not want to miss!

secondImage

New Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

August 2020 CYST Challenge

Check out the winners of the recent 'Can You Solve These?' community challenge!

Experience what’s next for Power Apps

Join us for an in-depth look at the new Power Apps features and capabilities at the free Microsoft Business Applications Launch Event.

Check this Out

Helpful information

Featuring samples like Return to the Workplace and Emergency Response Applications

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (6,086)