cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Helper III
Helper III

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
Helper III
Helper III

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

Keep it simple it seems 🙂

View solution in original post

1 REPLY 1
Helper III
Helper III

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

Keep it simple it seems 🙂

View solution in original post

Helpful resources

Announcements
News & Announcements

Community Blog

Stay up tp date on the latest blogs and activities in the community News & Announcements.

Power Apps Community Call

Power Apps Community Call- January

Mark your calendars and join us for the next Power Apps Community Call on January 20th, 8a PST

PP Bootcamp Carousel

Global Power Platform Bootcamp

Dive into the Power Platform stack with hands-on sessions and labs, virtually delivered to you by experts and community leaders.

secondImage

Power Platform Community Conference On Demand

Watch Nick Doelman's session from the 2020 Power Platform Community Conference on demand!

Users online (3,382)