Announcements
Hi all,
iv'e created powerapps from sharepoint online list that contains alot of feilds and i need to do the following
- i added a button on the edit form and i need when i clicked on the button to insers time of this action to textbox and after save the value in sharepoint
your help will be very important
ahramadan
hi @Anonymous
this can be done by somthing like the following:
1) Setting the OnSelect property of the button to:
UpdateContext({CurrentTime: Now()}); Patch(MySharePointList, Defaults(MySharePointList), {MyTimeColumn: CurrentTime})
2) Set the text box's Text property to:
CurrentTime
That's it. Please have a look at the documentation for details on each function
https://powerapps.microsoft.com/en-us/tutorials/formula-reference/
Thank you a lot Meneghion, this s helps me so far, but how i can update the value when i click the button i don't want to add new row in the list. for example:
when i open the item from powerapps i click on the item that i need to update the time for it so i added the button on the DetailScreen1, so the action will be here when i click the button i need to update the time value for this item in the list.
really appreciate your help.
Thanks,
than the OnSelect should be something like this:
UpdateContext({CurrentTime: Now()}); Patch(MySharePointList, GalleryXYZ.Selected, {MyTimeColumn: CurrentTime})
Where GalleryXYZ is the gallery where you click on the item to be updated
Thank you, that was what i need exactly!
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.
Congratulations to our community stars!
Expanding mentorship, skilling, and AI innovation
These are the community rock stars!
Stay up to date on forum activity by subscribing.
WarrenBelz 294 Most Valuable Professional
11manish 210
Valantis 169