29
Views
4
Comments
Solved
How to edit the form for  1 to many relationship

There are two entities in my form: Job(Left) and Job Detail(Right).

One job can have more than one job detail. Job Detail(Right) is shown after Job information(Left) is "Save". Then Job detail can be added and shown in the list (Bottom). 

My question is how can I make the Job Detail (highlighted part) become editable? I cannot edit the record after save the job in the very beginning. Thanks.  


Thanks!!

Solution

Hi @Winnie Lam 

Please check link

Regards

HI @Winnie Lam ,
What type of issues you are facing while updating the job details?
Could you please explain more about this?

What I have understood is you have filled and saved the job form(left side screenshot). Then open it and it will display the existing data with some more editable fields (right side screenshot).

Is it correct?

From the information you are presenting, i would derive that the functionality to update an existing jobdetail does not exist within  the application.

There should be a 'OnClick' client action on each row of the jobdetails table (highlighted) that opens the corresponding jobdetail using its Identifier.

Difficult to give decent feedback with the given info.
Can you share the OML?

Hi @Winnie Lam

As @Thibaut G suggest, you need to add edit icon into job detail list. On click of the edit job detail, you just need to pass job detail Id to get the data and set into the job detail form. 

After completed the above flow, when user click on add Job detail button then data will be update into database with the relation of Job detail Id. 

I hope it will help you to understand the flow to edit Job detail. Or you can share the OML for more detail and help.


Thanks   

 

Solution

Hi @Winnie Lam 

Please check link

Regards

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