I think I run into a bug when using the Read Data (when using an external database). Resides my joomla database there is another database which contains data independent of the joomla content that I need to use now.
I want to show one table of this database containing (and in the futur make mutations).
Therefor I included a load data action in the load of page1 and set it up to connect to the external database (which is working since debug shows the expected data). In the on record found section, I included a html content view with php code to write the results. It uses $this->var.... in php and even {var....} via a loop to print the found data. To show the content of the vars array, I even included an echo json_encode on the var array itself.
When viewing the form, my php-code inside the on record is activated an does write output. Nevertheless the data from the read database is not written (as if it is empty), the loop does not run either (as if no records are found). I also see that the var array did not include results of the data read, which is visible in the debug section. After a refresh/reload of the page (for instance by a second click on the menu item to show the page) the code is working as expected. Reopening the browser an again opening the page will again first not show the results, but only after a refresh/reload.
I tried with and without debugging and with and withou AJAX, no difference. Is this a known problem? Any fix, response or work-around is appreciated.
Kind regardsPim