16
Views
5
Comments
Solved
Data Insertion using Parallel Dropdown
Service Studio Version
11.54.33 (Build 62940)

Application Name: Appointments

Problem Facing in Booking Appointment Module

I am using a Parallel dropdown in the form for selecting data (Department,Doctor) while saving the data the values given in parallel dropdown is saved as 0 in the database (entity) 

Appointments.oap
2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

Hello,

I can see there is issue into your aggregate "GetDoctorsByDepartmentId" is using local variable "DepartmentId" into filter and this variable is never set to value so it always 0 so doctor dropdown is not showing any doctor.

You should use filter like screenshot below

The second issue that you assign variable of Doctor dropdown list to Id of doctor table which is not used into saving action as saving using only Appointment table so you should change variable of Doctor dropdown list as second screenshot and also assign list as Doctors aggregate not appointment aggregate 

UserImage.jpg
B Krisha

Thank you for the solution.
It's working as expected.


UserImage.jpg
B Krisha

Thank you for the solution.
It's working as expected.


2024-05-08 06-29-37
Prince Aadil Khan Panwar

Hi B Krisha,

you forgot to assign local variable for the aggregate refresh in on change action, and used wrong list for the doctors list. 

i have fixed your things. i am attaching oml

Thanks 

Prince

Appointments.oml
2020-11-25 10-45-32
Mostafa Othman
Champion
Solution

Hello,

I can see there is issue into your aggregate "GetDoctorsByDepartmentId" is using local variable "DepartmentId" into filter and this variable is never set to value so it always 0 so doctor dropdown is not showing any doctor.

You should use filter like screenshot below

The second issue that you assign variable of Doctor dropdown list to Id of doctor table which is not used into saving action as saving using only Appointment table so you should change variable of Doctor dropdown list as second screenshot and also assign list as Doctors aggregate not appointment aggregate 

UserImage.jpg
B Krisha

Thank you for the solution.
It's working as expected.


UserImage.jpg
B Krisha

Thank you for the solution.
It's working as expected.


2023-11-22 10-51-50
Jozy Sohail

Hi B Krisha,

I found few issues in your code same as @Mostafa Othman ,

Please follow the changes and your code will work fine.

Thanks

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