I’ve based my code on the master-detail.php demo
https://www.gridphp.com/demo/demos/master-detail/master-detail.php
But there is a issue in that when trying to add a second invoice it doesn’t add it.
First add detail in console looks like this :
Second add detail is this :
rowid is blanc as is the rest of the data.
When I use this code to update my data. it places 0(client_id) each time the second detail is added.
Could you please resolve this?
Thanks in advance
I’ve regenerated the issue and will be updating back.
I’ve updated demo code. The behavior was due to the reloading of parent grid of detail row addition.
https://www.gridphp.com/demo/demos/master-detail/master-detail.php
Line 94 commented on code: https://www.gridphp.com/demo/demos/master-detail/master-detail.phps