web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id : B5secf0zWa17V8YR+sEAmk
Power Apps - Building Power Apps
Answered

Passing a value from a View Form to a New Form

Like (0) ShareShare
ReportReport
Posted on 17 Feb 2021 16:53:40 by 716

Hello Power Apps Community,

Can you help please?

 

In a nutshell, I want to pass a GUID value from one form (Transaction) to another form (Transaction Line Item) only when the form Transaction Line Item is in FormMode.New. Any ideas please? Below is a more detailed explanation.

 

I have two Dataverse for Teams tables:

Transaction (which is the parent)

Transaction Line Item (which is the child)

So one Transaction can have many Transaction Line Items.

 

I have a screen Screen Edit Transaction

On this screen is a form frmEditTransaction this shows a Transaction record

Beneath the form I have another gallery galTransactionTransLineItem this shows all the Transaction Line Item records for the Transaction record in the form.

 

I can click on one of the Transaction Line Item records in the gallery galTransactionTransLineItem

This navigates to another screen Screen Edit Trans Line Item

And displays the clicked Transaction Line Item record in the form frmEditTransLineItem

The OnSelect property is

 

Set(
      gblTransLineItem,
      ThisItem
);
Navigate('Screen Edit Trans Line Item');
ViewForm(frmEditTransLineItem)

 

This works perfectly. 

 

My request:

Now for my question please. On my screen Screen Edit Transaction (which has the Transaction form on it)

I have an icon. It's OnSelect property has the below formula on it.

 

Navigate('Screen Edit Trans Line Item');
NewForm(frmEditTransLineItem);

 

On the form frmEditTransLineItem where I'm creating a new Transaction Line Item, I have a lookup column called TransactionId to the Transaction table. How do I populate that column with the GUID from the Transaction table?

 

Thanks very much, and sorry for such a long description.

Garry

  • CU01081947-0 Profile Picture
    716 on 19 Feb 2021 at 06:05:17
    Re: Passing a value from a View Form to a New Form

    @Drrickryp Thanks!

  • Verified answer
    Drrickryp Profile Picture
    Super User 2024 Season 1 on 17 Feb 2021 at 18:07:19
    Re: Passing a value from a View Form to a New Form

    @GarryPope 

    Reference the Default property for the TransactionID back to the gallery where the transaction is selected.  

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

Telen Wang – Community Spotlight

We are honored to recognize Telen Wang as our August 2025 Community…

Announcing our 2025 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for…

Congratulations to the July Top 10 Community Leaders!

These are the community rock stars!

Leaderboard > Power Apps

#1
WarrenBelz Profile Picture

WarrenBelz 637 Most Valuable Professional

#2
stampcoin Profile Picture

stampcoin 570 Super User 2025 Season 2

#3
Power Apps 1919 Profile Picture

Power Apps 1919 473

Loading complete