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

Writing multiple Cards to SQL DB within Form

Hello Ladies & Gentlemen,

 

I am having difficulty writing to sql basically drawing values from one table then writing these values into another table.

 

My issue is I have a fact table OperatorID in sql, which I have set to a dropdown in the app.

I then created a card that displays the Selected.Result of this dropdown within my form (I did this as the data source is different and need to get these values within the form, if there is a better way plz let me know).

This card then updates this label to the column "OperatorID" in the sql database, however it doesn't seem to work, even though it works for description with the same properties.

 

Then Ideally I would like to do the same thing for PlantItems. However instead of a dropdown box from another table. This would be the value of the combo box selections, linked to a data card to write to the column PlantItem.

 

I have attached my workings in an excel file which is easier to follow then my explanation above.

1 ACCEPTED SOLUTION

Accepted Solutions
Highlighted
Community Support
Community Support

Re: Writing multiple Cards to SQL DB within Form

Hi @Johnnyboy1 ,

Do you want to bind the OperatorID field value with the OperatorName Dropdown box selected value?

 

Based on the screenshot that you mentioned, I think there is something wrong with your formula. If you want to bind the OperatorID field value with the OperatorName Dropdown box selected value, please set the Update property of the OperatorID_DataCard2 to following:

 

DataCardValue30.Selected.Result

 

 

If you want to bind the PlantItem field value with selected options (Multiple selections) within a ComboBox, please consider set the Update property of the PlantItem_DataCard9 to following:

 

Concat(ComboBox1.SelectedItems, DisplayColumnName & ";")

 

Note: The DisplayColumnName represents the column you used as Display column value within the ComboBox. On your side, you should replace it with actual column name

 

Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

1 REPLY 1
Highlighted
Community Support
Community Support

Re: Writing multiple Cards to SQL DB within Form

Hi @Johnnyboy1 ,

Do you want to bind the OperatorID field value with the OperatorName Dropdown box selected value?

 

Based on the screenshot that you mentioned, I think there is something wrong with your formula. If you want to bind the OperatorID field value with the OperatorName Dropdown box selected value, please set the Update property of the OperatorID_DataCard2 to following:

 

DataCardValue30.Selected.Result

 

 

If you want to bind the PlantItem field value with selected options (Multiple selections) within a ComboBox, please consider set the Update property of the PlantItem_DataCard9 to following:

 

Concat(ComboBox1.SelectedItems, DisplayColumnName & ";")

 

Note: The DisplayColumnName represents the column you used as Display column value within the ComboBox. On your side, you should replace it with actual column name

 

Best regards, 

Community Support Team _ Kris Dai
If this post helps, then please consider Accept it as the solution to help the other members find it more quickly.

View solution in original post

Helpful resources

Announcements
secondImage

Demo-Extravaganza 2020

Check out these cool Power Apps & vote on your favorite!

secondImage

Robotic Process Automation

Let's talk about the solution provided by Microsoft for Robotic Process Automation (RPA)

secondImage

Community Highlights

Check out whats happening in Power Apps

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

Top Solution Authors
Top Kudoed Authors
Users online (10,989)