cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ThomasVDS
Level: Powered On

Set default value for combo box lookup field using CDS

Hi,

 

I am creating an app to manage the trainings of consultants.

I start selecting the consultant and want to add a new training (step 1).

In the screen to add the training, I want to see the ID of the consultant which is shown in step 1 (gallery 2).

I have been reading multiple posts, but no luck.

What is the best way?

I understood that you need to use the 'DefaultSelectedItems' property.

Do I use:

- lookup? (for ex LookUp('Consultants','Escent ID'=Gallery2.Selected.cref2_escentid,'Escent ID') -> NOK

- Choices & lookup  (LookUp('Consultants','Escent ID'=Gallery2.Selected.cref2_escentid,'Escent ID') -> NOK

- id & value ({id: Gallery2.Selected.cref2_escentid, value: Text(Gallery2.Selected.cref2_escentid)} -> NOK

 

Add training step1.PNGAdd training step2.PNG

 

Would be great if someone can help me out! 🙂

Kr

1 ACCEPTED SOLUTION

Accepted Solutions
ThomasVDS
Level: Powered On

Re: Set default value for combo box lookup field using CDS

It was just too easy --> 'DefaultSelectedItems' property: Gallery2.Selected

Keep it simple it seems 🙂

View solution in original post

1 REPLY 1
ThomasVDS
Level: Powered On

Re: Set default value for combo box lookup field using CDS

It was just too easy --> 'DefaultSelectedItems' property: Gallery2.Selected

Keep it simple it seems 🙂

View solution in original post

Helpful resources

Announcements
thirdimage

Power Apps Community User Group Member Badge

Fill out a quick form to claim your user group badge now!

sixthImage

Power Platform World Tour

Find out where you can attend!

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

SecondImage

Difinity Conference

The largest Power BI, Power Platform, and Data conference in New Zealand

Top Kudoed Authors (Last 30 Days)
Users online (3,934)