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 / Gallery to copy line i...
Power Apps
Answered

Gallery to copy line items from one screen and paste the same in other screen

(0) ShareShare
ReportReport
Posted on by 294

Hello All,

I have gallery in screen wherein the data is coming from table1(1st datasource), its just a template wherein the user looks at the code in  the gallery and clicks on the edit button.

I want the line item of the data which is been selected by the user to copy and paste in screen 2, so that i can add other fields in the screen 2 to finally save the screen2 form to onedrive.

 

Please advise how to copy from screen1 of the selected item and paste in the screen 2 and disable the line item selected in the 1st screen so that they wont update duplicate values. 

I have attached screensnip of the gallery 1 (screen1) template wherein the user selects the required line item to add other details in the screen 2 like quantity,value and others.screencopy.png

Categories:
  • Verified answer
    v-siky-msft Profile Picture
    Microsoft Employee on at

    Hi @nagaraj007 ,

     

    You can save the selected item from gallery to variable when clicking the item (Copy), then apply the value of variable to the fields in screen2 (Paste). Please try the following steps.

    set the Gallery.OnSelect property:

     Set(varSelectedItem, ThisItem); NewForm(FormName)

    set Default property of Datacardvalue in screen2 form: 

    If(FormName.Mode=FormMode.New, varSelectedItem.ColumnName, Parent.Default)

    Let me know if this works for your case.

    Sik

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

#2
Mohsin Ali Profile Picture

Mohsin Ali 354

#3
WarrenBelz Profile Picture

WarrenBelz 232 Most Valuable Professional

Last 30 days Overall leaderboard