I would like to click on this screen and open the report. This is really easy to do (but I wouldn't have a way to boost the stream to load the data.
The flow would be this:
Any suggestion? I realized that it is possible for an HTML page to communicate with NODE-RED (but as a printed report). Wouldn't it be cool to have a button in the HTML
Just checking my understand. The table has a set of rows and the 2nd column has an html link which presumably has a query parameter on it? And you want the details page to open but for it to have the details from that specific row of the table showing in it?
This is certainly possible. By adding an on load JavaScript function in your uibuilder page that unpacked the query parameter(s) and sent them to Node-RED as a msg, that msg would then trigger a get of the data onto a new msg - including the msg id from the 1st output - sent back to the uibuilder node. You then have an onchange function in your front-end code that processes the message and updates the data - or, you pass the data into uib-update or uib-element nodes which go back to uibuilder to update the page. Either way works.
You should make a change to that so that it passes the row id. That way, the uibuilder page will be able to process it directly: href="/relat?rowid=xxxx" or however you identify the row's source record.
Hmm, gives me thought for a future convenience function for the uibuilder client library. An option to automatically recognise URL query parameters and automatically send them back to Node-RED.
One for a future release though I'm afraid. Added to the roadmap.