cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
mmp974
Frequent Visitor

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
Super User II
Super User II

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)

Sorry I got injured yesterday. Will respond soon.

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

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.

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

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)

@PowerAddict ,

 

Yes it is a multiple values combobox.

 

 

mmp974
Frequent Visitor

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

MBAS Attendee Badge

Claim Your Badge & Digital Swag!

Check out how to claim yours today!

secondImage

Are Your Ready?

Test your skills now with the Cloud Skill Challenge.

Top Solution Authors
Top Kudoed Authors
Users online (34,798)