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

Using multiple combobox to fill form using multiple data (CDS)

Hi,

 

I'm using cascading forms to populate my CDS Entity Missions, this method is working but is very fastidious for the user.

 

Capture d’écran 2019-11-08 à 22.24.58.png

 

The form is using Missions Entity.

 

The Type Actions field is using : 

Distinct(Sort(Actions;idActions);'Types actions')

 

The Reference : 

Sort(Filter(Actions; 'Types actions' = DataCardValue18.Selected.Result);Références)

 

I tried to create a custom combobox for the Reference field, visually it works but there is no insertion in my CDS Entity.

 

Could you please help me or give me some advice on how to achieve it please ?

 

Kind regards,

 

Mohammad

 

8 REPLIES 8
PowerAddict
Level 10

Re: Using multiple combobox to fill form using multiple data (CDS)

Hi Mohammad,

A few questions:
1. Are you saying that the reference value isnt getting updated/populated in your Missions entity?
2. If so, how are you trying to submit the values? 3. Do you have a form that you are submitting using Patch or SubmitForm?

If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)
PowerAddict
Level 10

Re: Using multiple combobox to fill form using multiple data (CDS)

Sorry I got injured yesterday. Will respond soon.
mmp974
Level: Powered On

Re: Using multiple combobox to fill form using multiple data (CDS)

Hi @PowerAddict ,

 

Yes, the reference value is not getting populated in the Mission entity.

 

I'm trying to submit the value through a custom data card and adding a combobox allowing multiple values fed by Actions Data Source.

 

I do use a form to submit the data. When I submit the form all the fields are populated except the reference field.

 

Kind regards,

 

Mohammad

Community Support Team
Community Support Team

Re: Using multiple combobox to fill form using multiple data (CDS)

Hi @mmp974 ,

Do you mean that you can not update Reference successfully?

Could you tell me

1)the data type of  Reference field?

2)the formula of Reference field datacard's Update?

Using what formula to update is decided by the field's data type.

 

 

Best regards,

Community Support Team _ Phoebe Liu
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.
mmp974
Level: Powered On

Re: Using multiple combobox to fill form using multiple data (CDS)

Hi @v-yutliu-msft ,

 

I am not sure how to get it done, I tried to use the patch() function but got many errors and I am not sure how to use it with CDS database.

 

1 => the reference field is a text field data type

2 => DataCardValue29.SelectedText.Value

 

Kind regards,

 

Mohammad

PowerAddict
Level 10

Re: Using multiple combobox to fill form using multiple data (CDS)

And are you saying you are allowing multiple values to be selected in the Reference field combo box?

 

---
If you like this reply, please give kudos. And if this solves your problem, please accept this reply as the solution. Thanks!

Hardit(Haman)

mmp974
Level: Powered On

Re: Using multiple combobox to fill form using multiple data (CDS)

@PowerAddict ,

 

Yes it is a multiple values combobox.

 

 

mmp974
Level: Powered On

Re: Using multiple combobox to fill form using multiple data (CDS)

Hi,

 

I am able now to get this result:

 

idMissions      Contrat            References                  Type Action
10049           10000022           DP003, DP001, DP002,        NOMINATION ET MISSIONS DPO

 

I used the following code for it :

 

Concat(ComboBox1.SelectedItems; Références & ", ")

 

Now I'm trying to normalise my Reference field ie :

 

idMissions      Contrat            References                  Type Action
10049           10000022           DP003                       NOMINATION ET MISSIONS DPO
10050           10000022           DP001                       NOMINATION ET MISSIONS DPO
10051           10000022           DP002                       NOMINATION ET MISSIONS DPO

 

Any hint to get this done ?

 

Kind regards,

 

Mohammad

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 (5,515)