Hello Team,
i have two table namely product table and category table, and my controller is not able to pass the categoryId into the product table.



Hello Team,
i have two table namely product table and category table, and my controller is not able to pass the categoryId into the product table.



Know the answer? Post it — somebody with the same question will find it here.
Sign in to answer this question
It is the same account you read, post and publish with — and you will come straight back to this page.
Rajeesh MenothPosted Oct 1, 2024, 10:16 AM
Hi,
Check what value you are getting inside the data variable.
If you are getting a null value after productModel.tblCategory after the stringify, then try to initialize the object before assigning the category value into the tblCategory object. like the following way.
Emmmanuel FIADUFEPosted Oct 1, 2024, 10:39 AM
Thank you Rajeesh