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 :-)

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 :-)

Helpful resources

Announcements
firstImage

Watch Sessions On Demand!

Continue your learning in our online communities.

Power Platform 2019 release wave 2 plan

Power Platform 2019 release wave 2 plan

Features releasing from October 2019 through March 2020

FirstImage

Power Platform World Tour

Coming to a city near you

thirdimage

PowerApps Community User Group Member Badge

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

FourthImage

Join PowerApps User Group!!

Connect, share, and learn with your peers year-round

SecondImage

Power Platform Summit North America

Register by September 5 to save $200

Users Online
Currently online: 194 members 4,775 guests
Please welcome our newest community members: