Once the page has loaded I have to manually click on a repeat row to show the data detail record...
It would be good if the first record is loaded automatically into the data detail so that it isn't empty.
If I leave out the on-load statement it behaves in the same way as above.
I've tried adding a static value in addition to the data source and key but that doesn't seem to make much difference unless I'm trying the wrong value. My data detail is currently set to:
The first result has an “account_id” value of 2. No difference, still shows as blank on page load. No console errors or warnings in Wappler. Running latest version.
I tried with a static value and it worked. There are probably other factors involved. I think it will also work with a flow - but it might mean an additional database call.
This worked for me: <body is="dmx-app" id="test" dmx-on:load="data_detail1.select(5)">
(to load record with id=5)
. and so did this flow, set to Auto Run:
Instead of loading dmx-on:done on the body tag, I’ve added it as a Done action on the server connect file itself. Working great now with the data detail showing the dynamic value rather than static on page load.