
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.
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"}
);