Skip to main content

Notifications

Community site session details

Community site session details

Session Id : 2lTmORotJfJgNHOtJqzTjq
Power Apps - Building Power Apps
Answered

Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

Like (0) ShareShare
ReportReport
Posted on 5 Jul 2023 19:22:52 by 44

I have a gallery control where combo box is placed and source is sharepoint collection and when i change the combo box inside and try using combobox.selecteditems then it shows blank even though combo box is selected value is present 

Mani1205_0-1688584755111.png

combo box inside gallery default selected item

Mani1205_1-1688584784774.png

I am trying to put that in text input ( SP data type ) to patch it to SP  but shows blank even though combo box selected inside gallery .. SP : Sharepoint

Mani1205_2-1688584943497.png

 



Any help highly appreciated. 

  • Mani1205 Profile Picture
    44 on 06 Jul 2023 at 06:42:14
    Re: Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

    @WarrenBelz ,  I have mentioned now IP_Design_cc.selecteditems .. but other fields works with thisrecord.fieldname.

     

    Anyhow my issue is solved . Thank you so much

  • Verified answer
    WarrenBelz Profile Picture
    146,771 Most Valuable Professional on 06 Jul 2023 at 05:27:27
    Re: Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

    @Mani1205 ,

    Where are you writing back the contents of IP_Design_cc ?

  • Mani1205 Profile Picture
    44 on 06 Jul 2023 at 04:03:02
    Re: Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

    @WarrenBelz 

    I am using below code and gallery has collection which is collected from SharePoint  ( only combo box changes are not reflecting back to sharepoint

    ForAll(Gallery2_1.AllItems,Patch(SP_list,ThisRecord,{
    Col1:IP_Packaging_engineer_1.Selected,
    Col2:IP_Manager_1.Selected,
    Product_code:Concatenate(Text(ThisRecord.Product_code),""),
    design_code_2:ThisRecord.design_code_2,
    Effective_in_date:ThisRecord.Effective_in_date,
    Effective_out_date:ThisRecord.Effective_out_date,
    Plant_name:Concatenate(Text(ThisRecord.Plant_name),""),
    Plant_code:Concatenate(Text(ThisRecord.Plant_code),""),
    Region:Concatenate(Text(ThisRecord.Plant_code),""),
    Comments:IP_comments_1.Text
    }));

  • WarrenBelz Profile Picture
    146,771 Most Valuable Professional on 06 Jul 2023 at 03:56:22
    Re: Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

    @Mani1205 ,

    So how are you writing the data back ?

  • Mani1205 Profile Picture
    44 on 06 Jul 2023 at 03:52:04
    Re: Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

    Hi @WarrenBelz , 

     

    Actually I'm using combo box inside gallery.. this is not having datacard .. please advise if you have any other work arround.. appreciate you for taking time and providing suggestions 

  • WarrenBelz Profile Picture
    146,771 Most Valuable Professional on 06 Jul 2023 at 01:37:35
    Re: Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

    Hi @Mani1205 ,

    That is for the Update - assuming here you are writing back to a Text field. Also you may actually need

    Concat(IP_Design_cc.SelectedItems, Value, ",")

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

  • Mani1205 Profile Picture
    44 on 06 Jul 2023 at 00:55:48
    Re: Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

    Hi @WarrenBelz , 

     

    Thank you for replying.. 

     

    With the above formula it still gives the result as " ,, " ... There are two default selected value and gives empty with commas 

  • WarrenBelz Profile Picture
    146,771 Most Valuable Professional on 05 Jul 2023 at 20:30:45
    Re: Combo box "Selected" empty even if value exists in DefaultSelectedItems inside gallery

    Hi @Mani1205 ,

    Try

    Concat(IP_Design_cc.SelectedItems, Title, ",")

     

    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.

    MVP (Business Applications)   Visit my blog Practical Power Apps

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Understanding Microsoft Agents - Introductory Session

Confused about how agents work across the Microsoft ecosystem? Register today!

Warren Belz – Community Spotlight

We are honored to recognize Warren Belz as our May 2025 Community…

Congratulations to the April Top 10 Community Stars!

Thanks for all your good work in the Community!

Leaderboard

#1
WarrenBelz Profile Picture

WarrenBelz 146,771 Most Valuable Professional

#2
RandyHayes Profile Picture

RandyHayes 76,287 Super User 2024 Season 1

#3
Pstork1 Profile Picture

Pstork1 66,091 Most Valuable Professional

Leaderboard