I need to create a "copy item" on a typical auto-generated three-form data source (list, detail, edit forms) connected to a SP list.
1) User has selected a certain item, and is now on the DetailForm.
NewForm(Form2); FormMode.Edit=FormMode.New; Navigate(Edit, ScreenTransition.None)
but actually it is not coping the item it is just give me a new blank form .
@gme-eg In Details screen for Data Source Property provide your sharepoint list and in Item property <GalleryName>.Selected.
Eg: In your app you have a Gallery with name "GalleryA" which shows list of items from your sharepoint list. then in your details screen Item property should be GalleryA.Selected which shows selected item.
yes copy an item and repeat it
I already did that any idea what is the issue
Please follow this:
Patch('[dbo].[DataSource]',Defaults('[dbo].[ DataSource]'),
{FirstName: CollectionName. FirstName,
ReceipientName: CollectionName.ReceipientName,
FullName: CollectionName.FullName,
EntryDate: CollectionName.EntryDate})
Note; Point 4 above would create the collection1 while point 5 would insert the created items in the collection into your dataSource
Please click "Accept as Solution" if my post answered your question so that others may find it more quickly. If you found this post helpful consider giving it a "Thumbs Up."
set collection gives error and the copy patch formula the same
sorry not working
Select(Parent);Set(Copy,Gallery3.Selected)
also for the patch added to the button
Patch('[dbo].[Working Hours Tracker Application]',Defaults('[dbo].[ Working Hours Tracker Application]'),
{Employee: Copy. Employee,
Service Category: Copy.Service Categor,
Customer: Copy.Customer})
User | Count |
---|---|
256 | |
111 | |
95 | |
48 | |
40 |