cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Bojjaiah
Regular Visitor

Unable to bind the combobox using collection

Hello All,

 

I am learning PowerApps, in the process I just tried to populate Combobox from Collection as below, but not binding the all values. When I ran the first row showing i.e "Casual". remainings are not showing

 

App OnStart event declared the collection as below

 

ClearCollect(
leaveType,
{casual: "Casual",comments:"Casual Leave", id:1},
{sick: "Sick",comments:"Sick Leave", id:2},
{earn: "Earn",comments:"Earn Leave", id:3},
{emergency: "Emergency",comments:"Emergency Leave", id:4}
)

 

And in the screen ComboBox Items event assigned the leaveType. When I ran the values are not populated.

 

Please suggest me right direction.

 

1 ACCEPTED SOLUTION

Accepted Solutions
Bojjaiah
Regular Visitor

Sorry, Got it. Solved my self by updating the result as below.

 

ClearCollect(
leaveType,
{leaveType: "Casual",comments:"Casual Leave"},
{leaveType: "Sick",comments:"Sick Leave"},
{leaveType: "Earn",comments:"Earn Leave"},
{leaveType: "Emergency",comments:"Emergency Leave"}
);

 

View solution in original post

1 REPLY 1
Bojjaiah
Regular Visitor

Sorry, Got it. Solved my self by updating the result as below.

 

ClearCollect(
leaveType,
{leaveType: "Casual",comments:"Casual Leave"},
{leaveType: "Sick",comments:"Sick Leave"},
{leaveType: "Earn",comments:"Earn Leave"},
{leaveType: "Emergency",comments:"Emergency Leave"}
);

 

View solution in original post

Helpful resources

Announcements
PA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

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.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Users online (995)