cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Highlighted
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
Highlighted
Helper III
Helper III

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

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
August 2020 Community Challenge: Can You Solve These?

August 2020 Community Challenge: Can You Solve These?

We're excited to announce our first cross-community 'Can You Solve These?' challenge!

secondImage

Return to Workplace

Reopen responsibly, monitor intelligently, and protect continuously with solutions for a safer work environment.

secondImage

Super Users Coming in August

We are excited for the next Super User season.

secondImage

Community User Group Member Badges

FIll out a quick form to claim your community user group member badge today!

secondImage

Power Platform 2020 release wave 2 plan

Features releasing from October 2020 through March 2021

Users online (7,711)