Update and delete
Question

Hi

PFA and Help to find out 

1.why doctor is not deleting

2.why its saving every time as a new record after editing also.

Doctor_Appointment_Online_UI23.oml

 Hi Manorama,

Kindly share Doctor_Appointement_Online oml  as the logic is inside that module

Best Regards

Devendra

there is no issue in this.please check doctor only

Can you please share Doctor_Appointement_Online oml  

this is the prob

image_2022_04_22T18_18_17_128Z.png

Hi Manorama,

1 st point -  Delete the Clinic Doctor Association


2nd point

Replace the CreateUser by CreateorUpdateUser


Best regards

Devendra

I dont want to delete clinic Doctor Association.its a separate junction Entitiy. i changed it by create update still prob is same.

Doctor_Appointment_Online_UI24.oml

one more problem is there ,when updating doctor its creating new record everytime.

Hi @Manorama Malviya 

First Problem solution::

This error happed deu to delete rule .

 you should delete the child data firstly  than you can delete parent data(doctor)  or go to database and go to attribute and   and set the delete  prop is Delete or ignore,

Thanks

Mansur

i have delete file first that is child of doctor extended then doctor extended that is child of user.

tried both rule also

Hi Manorama,

You can soft delete the user instead of actually deleting the user by making Is_Active = True in user entity.

Best Regards

Devendra

Hi @Manorama Malviya,

The Error Is due to the Delete Rule for User_Id Reference,

When you delete the record from User Entity it will affect all the other references with Delete Rule with protected, For example, You have a reference of User_Id on the Appointment entity with Protected rule, So if the deleting doctor have any existing Appointment this will raise a database exception.

So please make sure the Delete Rule of User_Id references from all Entities should not be protected.

Best Reguards,

Sreejith

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