Hi

I'm trying to create and update skills to an employee and I've used a many to many relationship.In this I've to get the Id of the particular skill assigned to the employee if he/she wants to remove or include an another skill and at the same time already selected skills need to be retained.

Solution

HI Balaji,

I made some changes in your save button logic , please check it and try adding removing skills if it is working accordingly or not.

There are other ways to do that also but i choose the easiest one.

Regards,

-PJ-

Solution

Pramod Jain wrote:

HI Balaji,

I made some changes in your save button logic , please check it and try adding removing skills if it is working accordingly or not.

There are other ways to do that also but i choose the easiest one.

Regards,

-PJ-


Hi,

whenever an existing employee enters you delete those and create what are all selected . That's what you've done. Isn't it??


Yes which make sense , as at last you have to keep the selected only . You can try some permutation combination to check if it is working expected or not.

I tested and found its working for all cases.


Regads,

-PJ-