cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
ThomasVDS
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
ThomasVDS
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
ThomasVDS
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
PA User Group

Welcome to the User Group Public Preview

Check out new user group experience and if you are a leader please create your group

secondImage

Demo Extravaganza is Back!

We are excited to announce that Demo Extravaganza for 2021 has started!

MBAS on Demand

Microsoft Business Applications Summit sessions

On-demand access to all the great content presented by the product teams and community members! #MSBizAppsSummit #CommunityRocks

Power Apps June 2021

June Power Apps Community Call

Don't miss the call this month on June 16th - 8a PDT

Top Kudoed Authors
Users online (37,340)