master-detail demo adding second detail (invoice) data lost?

Questionsmaster-detail demo adding second detail (invoice) data lost?
Mario Verleene asked 4 years ago

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 :

https://www.gridphp.com/demo/demos/master-detail/master-detail.php?list1&grid_id=list2&rowid=4&client_id=4&gender=male&company=Blauer%20See%20Delikatessen

Second add detail is this :

https://www.gridphp.com/demo/demos/master-detail/master-detail.php?grid_id=list1&grid_id=list2&rowid=

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

3 Answers
Abu Ghufran Staff answered 4 years ago

I’ve regenerated the issue and will be updating back.

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Abu Ghufran Staff answered 4 years ago

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

_________________________
Abu Ghufran - Dev Team
Grid 4 PHP Framework
 
Mario Verleene answered 4 years ago

Thanks Abu it’s working great now!

Your Answer

3 + 19 =

Login with your Social Id:

OR, enter

Attach code here and paste link in question.
Attach screenshot here and paste link in question.



How useful was this discussion?

Click on a star to rate it!

Average rating 0 / 5. Vote count: 0

No votes so far! Be the first to rate it.

We are sorry that this post was not useful for you!

Let us improve this post!

Tell us how we can improve this post?