cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Anonymous
Not applicable

Combine Table for ComboBox

Hi All, 

I have problem Combine 2 table as List in combo box, what i want is to add Pcode1 itemlist and Pcode2 item list to one Combobox, can anyone help me? thanks

 

combineDrop.JPG

 

1 ACCEPTED SOLUTION

Accepted Solutions

Hi @Anonymous ,

That is not the Items of the combo box - you need to run that code off a trigger (screen OnVisible will do) and then the Items of the drop-down will be colItems

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

 

View solution in original post

6 REPLIES 6
WarrenBelz
Super User
Super User

Hi @Anonymous ,

Do this

ClearCollect(
   colItems,
   ShowColumns(
      AddColumns(
         PCode1,
         "New",
         'Project Code'
      ),
      "New"
   ),
   ShowColumns(
      AddColumns(
         PCode2,
         "New",
         'Project Code'
      ),
      "New"
   )
)

then the Items of the combo box will be colItems

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

Anonymous
Not applicable

hi @WarrenBelz  i try code what u give but i get this error notif

Zero03_0-1627624769763.png

 

Hi @Anonymous ,

That is not the Items of the combo box - you need to run that code off a trigger (screen OnVisible will do) and then the Items of the drop-down will be colItems

 

Please click Accept as solution if my post helped you solve your issue. This will help others find it more readily. It also closes the item. If the content was useful in other ways, please consider giving it Thumbs Up.

 

 

Anonymous
Not applicable

hi @WarrenBelz  its work but what i want not like this

Zero03_0-1627635352636.png

what i want out put in combo box is List Joint Betwen PCode1 and PCode2, not combine betwen PCode1 and PCode2

Anonymous
Not applicable

Hi @WarrenBelz  thanks for your help done with little modif ClearCollect(colItems,AddColumns(PCode1,"New",'Project Code'),AddColumns(PCode1,"New",'Project Code')

Zero03_1-1627636073461.png

 

 

@Anonymous ,

Not something easily done, but I have a blog on the process that may assist.

Helpful resources

Announcements
Power Apps News & Annoucements carousel

Power Apps News & Announcements

Keep up to date with current events and community announcements in the Power Apps community.

Community Call Conversations

Introducing the Community Calls Conversations

A great place where you can stay up to date with community calls and interact with the speakers.

Power Apps Community Blog Carousel

Power Apps Community Blog

Check out the latest Community Blog from the community!

Top Solution Authors
Top Kudoed Authors
Users online (5,337)