cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
Community Champion
Community Champion

Re: How to creat copy from exisiting item?

I have tested it at my end and is working ;

 

Patch('Working Hours Tracker Web Application',Defaults('Working Hours Tracker Web Application'),
{Employee:Copy.Employee,
'Service Category': Copy.'Service Category',
Customer:Copy.Customer,
Location:Copy.Location,
Department:Copy.Department,
Description:Copy.Description,
Hours:Copy.Hours})

 

 

If it Helped, give Thumps up, If it solved it Marked as a Solution

copy.JPG

Highlighted
Helper III
Helper III

Re: How to creat copy from exisiting item?

thanks a lot now I have no error in the formula but when I click on the button it do nothing not copy the item

Note is it something related to the collection

Select(Parent);Set(Copy,ThisItem)

Highlighted
Helper III
Helper III

Re: How to creat copy from exisiting item?

@eka24 I did all the steps now I have no errors but when I click on the copy icon it do nothing.

shall I put the: Select(Parent);Set(Copy,ThisItem) in the App on start formula.

 

 

Highlighted
Community Champion
Community Champion

Re: How to creat copy from exisiting item?

Don't put it in Onstart.
Now that there are no errors, as a recap, there are two processes:
1. An Icon or a button inside your gallery with the formula

2. An Icon or a Button Outside the gallery
That is on your Screen with the Patch formula:
Patch('Working Hours Tracker Web Application',Defaults('Working Hours Tracker Web Application'),
{Employee:Copy.Employee,
'Service Category': Copy.'Service Category',
Customer:Copy.Customer,
Location:Copy.Location,
Department:Copy.Department,
Description:Copy.Description,
Hours:Copy.Hours})

When you click the first icon inside the gallery, it copies the record you have clicked into a collection. Then when you click the second icon outside the gallery, that is on your screen with the Patch formula, The record moves into your datasource or database.

Finally check your datasource if the record has been created or sent into your table.
If there are still issues, just as I did, Take a screenshot of the two icons with the formulas each so I can look at it.
Highlighted
Helper III
Helper III

Re: How to creat copy from exisiting item?

Now I moved the Icon of the Patch2020-02-18 11_08_46-Working Hours Tracker (WhT) Web Application Copy Test - Saved (Unpublished) - Po.png2020-02-18 11_09_36-Intelex Reports & Dashboards Training - Meeting.png formula outside the gallery but still have issue please see below screenshots:

 

Highlighted
Community Champion
Community Champion

Re: How to creat copy from exisiting item?

To check whether is working, click on the icon inside the gallery. After that go to file and click on collections. This will display all the collections in your app. So click on copy which should be part of your collection and check whether the record your clicked has appeared in the collection, Copy.

Everything OK but have seen a yellow icon on the first picture, what is the message.
Highlighted
Helper III
Helper III

Re: How to creat copy from exisiting item?

I cannot find Copy collection please see below:2020-02-18 11_34_57-Working Hours Tracker (WhT) Web Application Copy Test - Saved (Unpublished) - Po.png

 

Highlighted
Community Champion
Community Champion

Re: How to creat copy from exisiting item?

Please what is the error indicated in the first picture. If you click on it to Check
Highlighted
Helper III
Helper III

Re: How to creat copy from exisiting item?

here it is:

2020-02-18 11_48_28-Working Hours Tracker (WhT) Web Application Copy Test - Saved (Unpublished) - Po.png

Highlighted
Community Champion
Community Champion

Re: How to creat copy from exisiting item?

Just try, can remove the filter and just use the name of the table as an items property of the Gallery. Just to see whether the error will go. If the error goes away, check if it works.

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Community Highlights

Check out whats happening in Power Apps

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Top Solution Authors
Top Kudoed Authors
Users online (11,066)