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 / Programming a button
Power Apps
Unanswered

Programming a button

(0) ShareShare
ReportReport
Posted on by

Hello, 

 

im trying to have a button check what item has been chosen in dropdownselector1, what date that has been chosen in datepicker1 and what value has been written in inputfield1 and to print all these into the dataset called SalgReg1. Can someone please help? 

 

Categories:
  • Kirkby Profile Picture
    659 Moderator on at

    Hi @MarkiMark 

     

    confidential_dataset.png

     
    //Option.1 : Put SalReg1 into Table or Collection as an items to use
       

    ClearCollect(    
        SalgReg1,
       { SelectedValueFromDropDownList:DropdownSelector1.SelectedText.Value,
         ValueInInputTextField:TextInput1.Text,
         SelectedDate:DatePicker1.SelectedDate}
        );


    //Option.2 : Put  SalgReg1 into Table or Collection as an items to use
     
    Set(
        SalgReg1,   
        Table(
         {
         SelectedValueFromDropDownList:DropdownSelector1.SelectedText.Value,
         ValueInInputTextField:TextInput1.Text,
         SelectedDate:DatePicker1.SelectedDate
        }
             
             )
    );

    //Option.3: refer to the values stored in the SalgReg1 context variable such as SalgReg1.SelectedValueFromDropDownList

    UpdateContext(    
        {
            SalgReg1: {
                SelectedValueFromDropDownList: DropdownSelector1.SelectedText.Value,
                ValueInInputTextField: TextInput1.Text,
                SelectedDate: DatePicker1.SelectedDate
            }
        }
    );

     
    Kirkby
       

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 232 Super User 2026 Season 2

#2
WarrenBelz Profile Picture

WarrenBelz 202 Most Valuable Professional

#3
Mohsin Ali Profile Picture

Mohsin Ali 122

Last 30 days Overall leaderboard