cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
user07
Frequent Visitor

Adding data to datasource

Hi,

I am trying to create a comment section box, in which if user updates the comment, i store 3 values in the data: "Current User Full name", "Current Date Time" and the  User comment text input box.

Can a data from Text Input and User().FullName,Text(Now(), "[$-en-US]dddd,mmmm dd,yyyy" ) be saved directly to the datasource?

If yes how? Any other alternatives are welcomed. Please help

 

1 ACCEPTED SOLUTION

Accepted Solutions
Drrickryp
Super User II
Super User II

Hi @user07

Assuming your data source has  three columns named Current User Full name, Current Date Time, and Comments and that the column type of the Date column is date/time, Put a Textinput control on a screen,set the mode to Multiline and size it appropriately for the amount of text you anticipate.   Add a button to the screen with the OnSelect property: Patch(datasource,Defaults(datasource), {Current User Full name: User().FullName, Current Date Time:Text(Now(), "[$-en-US]dddd,mmmm dd,yyyy" ), Comments:Textinput1.Text}). You could add a gallery to display your datasource and verify that the Patch worked.

View solution in original post

1 REPLY 1
Drrickryp
Super User II
Super User II

Hi @user07

Assuming your data source has  three columns named Current User Full name, Current Date Time, and Comments and that the column type of the Date column is date/time, Put a Textinput control on a screen,set the mode to Multiline and size it appropriately for the amount of text you anticipate.   Add a button to the screen with the OnSelect property: Patch(datasource,Defaults(datasource), {Current User Full name: User().FullName, Current Date Time:Text(Now(), "[$-en-US]dddd,mmmm dd,yyyy" ), Comments:Textinput1.Text}). You could add a gallery to display your datasource and verify that the Patch worked.

View solution in original post

Helpful resources

Announcements
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

Power Query PA Forum 768x460.png

Check it out!

Did you know that you can visit the Power Query Forum in Power BI and now Power Apps

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Top Kudoed Authors
Users online (3,473)