web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

News and Announcements icon
Community site session details

Community site session details

Session Id :
Power Platform Community / Forums / Power Apps / Auto populate combo box
Power Apps
Unanswered

Auto populate combo box

(0) ShareShare
ReportReport
Posted on by 15

Hello everyone,

I am making an app that has an inventory and a part for work orders. Right now i am stuck on a part that is important for my work orders.  I made it so that when i open a work order you check the checkboxes of the equipment you are carrying with you on the field and that is saved in a Sharepoint table. How do i get the values from the table in another combo box which will be used for closing the work order.

Lets say i have a gallery and i click on an active work order, a new screen opens for closing the work order, the work order number is listed automaticly, how do i get the values from the checkboxes i checked previously to show in my combo box so i can select/deselect them so i can know which piece of equipment is returned and which isnt?

Categories:
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @ABrckovic - You have not provided any detail on how you're saving the selected checkbox items in your SharePoint list. 

     

    1. Are you using an Edit Form control?
    2. How are you collecting each selected CheckBox item? There are many methods. For example, you could create separate Checkbox controls, or you could create a Gallery with an embedded Checkbox control inside it. Please clarify this.
    3. Are you saving each selected CheckBox item as a concatenated value into a single record?
  • ABrckovic Profile Picture
    15 on at

    No im not using Edit Form control. I made separate Chekboxes for each part of equipment and i am saving it all into a single record, dividing them with ", ".

     

    UpdateContext();
    Set(
        varZATR,
        Defaults(Oprema)
    );
    Patch(
        Oprema,
        varZATR,
        {
            'Broj RN_Z': Value(RN_check_ET2_1.Text),
            'Zadužena oprema': [
                If(
                    Checkbox2_19.Value,
                    Checkbox2_19.Text
                ),
                If(
                    Checkbox2_20.Value,
                    Checkbox2_20.Text
                ),
                If(
                    Checkbox2_21.Value,
                    Checkbox2_21.Text
                ),
                If(
                    Checkbox2_22.Value,
                    Checkbox2_22.Text
                ),
                If(
                    Checkbox2_23.Value,
                    Checkbox2_23.Text
                ),
                If(
                    Checkbox2_25.Value,
                    Checkbox2_25.Text
                ),
                If(
                    Checkbox2_24.Value,
                    Checkbox2_24.Text
                ),
                If(
                    Checkbox2_26.Value,
                    Checkbox2_26.Text
                ),
                If(
                    Checkbox2_27.Value,
                    Checkbox2_27.Text
                ),
                If(
                    Checkbox2_28.Value,
                    Checkbox2_28.Text
                ),
                If(
                    Checkbox2_29.Value,
                    Checkbox2_29.Text
                ),
                If(
                    Checkbox2_30.Value,
                    Checkbox2_30.Text
                ),
                If(
                    Checkbox2_31.Value,
                    Checkbox2_31.Text
                )
            ]
        }
    );
    UpdateContext({varMessageET2: "Spremljeno"});
    UpdateContext({locReset: true});
    UpdateContext({locReset: false});
  • Ami K Profile Picture
    15,689 Super User 2024 Season 1 on at

    @ABrckovic -

     

    As I understand it, you have multiple Checkbox controls in your app. The Checkbox.Text property of each selected Checkbox is patched to a Single Line Text field in your SharePoint list as a single record, delimited by ",".

     

    You now want to populate a ComboBox to displaying each saved value as a distinct item.

     

    Is that correct?

     

    How are you saving each Checkbox.Text value as a concatenated record? It is not clear in your code.

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

Season of Sharing Community Challenge Winners!

Congratulations to our community stars!

Kudos to our 2025 Community Spotlight Honorees

Expanding mentorship, skilling, and AI innovation

Leaderboard > Power Apps

#1
11manish Profile Picture

11manish 234 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 207 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 169

Last 30 days Overall leaderboard