cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
cyberco01
Post Partisan
Post Partisan

To populate 2 fields based on another field with SQL source

Hi All,

I have a combo box that reads the value from SQL to populate the values.

Once a value is selected, I need another 2 columns to be auto-populated based on the first one.

The LPO number will be selected and the corresponding Project No and Supplier Name needs to be auto-populated.

 

Please help.

cyberco01_0-1632138053591.png

 

1 ACCEPTED SOLUTION

Accepted Solutions
Nogueira1306
Community Champion
Community Champion

Hey!

Use this:

Combobox1.Selected.ProjectNo

AND

 

Comboox1.Selected.SupplierName

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

View solution in original post

14 REPLIES 14
Nogueira1306
Community Champion
Community Champion

Hey!

Use this:

Combobox1.Selected.ProjectNo

AND

 

Comboox1.Selected.SupplierName

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

View solution in original post

cyberco01
Post Partisan
Post Partisan

@Nogueira1306 , so it will refer to the same datasource that the field 1 is referring to?

Yes sir. Test it and it will prove you am I right

 

If you need additional help please tag me in your reply and please like my reply.
If my reply provided you with a solution, pleased mark it as a solution ✔️!

Best regards,
Gonçalo Nogueira

Check my LinkedIn!

Check my User Group (pt-PT)!

@Nogueira1306 Sure I will try.

Please help me where the above code needs to be placed.

On the Default of the TextInputs

@Nogueira1306 , I am unable to see the value after saving the form. Please help.

Give me more info.

@Nogueira1306 While in Form is New when Field 1 is selected, Field 2 data is getting populated correctly.

However, when it is saved and I open the form, the Field 2 data is blank.

It should have a default, maybe

Helpful resources

Announcements
UG GA Amplification 768x460.png

Launching new user group features

Learn how to create your own user groups today!

Community Connections 768x460.jpg

Community & How To Videos

Check out the new Power Platform Community Connections gallery!

Welcome Super Users.jpg

Super User Season 2

Congratulations, the new Super User Season 2 for 2021 has started!

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

Top Solution Authors
Users online (1,378)