I have a form (detail) with a list in the footer (outro)
The list is based on a SQL view.
The list has 2 list PHP-plugins (To add or delete data in a table wich reflects in the view)
The list has a custom template where I change the row class depending the value of a field and also hide/show the 2 buttons of the php-plugins (via default-row.php) .
Everything goes well when I load the form. The rows have the right colors and the correct buttons are hidden/showed.
When I click a button, I get an alert (success message) and the data is refreshed as should. But the rows don't get the right extra class and the buttons are not hidden/showed correctly (all rows show the same buttons)
When I click F5 (refresh) the form reloads and the list shows well for a moment (colors and correct buttons) but then change back to the false view after I clicked the button.
Here I clicked the button on the second row.
When I close the form and reopen it, everything shows OK again.
Where do I have to look?
Many thanks in advance,
Filip
The list is based on a SQL view.
The list has 2 list PHP-plugins (To add or delete data in a table wich reflects in the view)
The list has a custom template where I change the row class depending the value of a field and also hide/show the 2 buttons of the php-plugins (via default-row.php) .
Everything goes well when I load the form. The rows have the right colors and the correct buttons are hidden/showed.
When I click a button, I get an alert (success message) and the data is refreshed as should. But the rows don't get the right extra class and the buttons are not hidden/showed correctly (all rows show the same buttons)
When I click F5 (refresh) the form reloads and the list shows well for a moment (colors and correct buttons) but then change back to the false view after I clicked the button.
Here I clicked the button on the second row.
When I close the form and reopen it, everything shows OK again.
Where do I have to look?
Many thanks in advance,
Filip
Last edited: