28
Views
3
Comments
Swich data between table forms
Application Type
Traditional Web

Hi! 

Thanks for everyone who has answered my previous questins. I've fixed the problems but, as a begginer, I'm still having some problems at just one spot.

The thing is: I need to swich info between two form records. To get the first Motorista and connect it with the second form's Veiculo. But, ate the same time, I need to be able to choose a Motorista in the second form and display all the Veiculos attached to him, so then I can link the fist Motorista to it.

Can someone please help?

2021-05-18 02-27-17
Manish Gupta
Champion

Hey Eduarda 

What I have receive from your requirement is that you have two Entities connected to each other Motorista & Veiculos. 

There are multiple Veiculos connected to Motorista. 

Now you have a screen with two fields - One to select Motorista and other to select Veiculos that user wants to map with the selected Motorista in field 1. 


Again you want that if user has selected Motorista in Field 1, they should able to select Motorista in Field 2 as well and then all the Veiculos of Motorista (Selected in Field 2) will be mapped with Motorista (Selected in Field 1) 


Please confirm, if I am right! 

UserImage.jpg
Eduarda Liberato

Actually they should be able to choose which Veiculo of Motorista (Selected in Field 2) they want, not mapping all of them.

2021-05-18 02-27-17
Manish Gupta
Champion

Okay! So, you can keep their Two Dropdowns - One to Select Motorista and other (Dropdown Tag) to select multiple Veiculo. 


Also add one Radio Button top to Dropdown Tag and ask user if they want to choose Motorista or Veiculo. Show the list in Dropdown based on selected Radio Button. 

If they select Motorista, use onclick and run an DataAction to fetch all Veiculo of it, and then loop them to get auto selected in Dropdown Tag.


This is one approach you can use 

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.