There are situations where you want to be able to have a non-editable grid, form, or editable grid form, to click on a field an start another application. This is not a problem if you link two forms together with an application or a field link. BUT both fields must have a connection based upon a database table. This principle will not work if you want to start a tab application, a container, or another form without database fields.
,
There’s an ajax event on fields possible, but if the field is not in edit mode then the contents of the field is not shown. It has no database connection!
A nice solution would be to allow a new field added without a database connection, give it type button or link, and alow it to be added to the grid or form. In case of a grid you get a column of all buttons. Add an event onclick to allow adding a piece of code to move the keyfields of the clicked record moved to a global variable(s). Redirect to the application (of type whatever, but here container/tab). This application contains subapplication which will be able to load data passed by the global variables using on-load.
It would solve a very common problem of having some data on the form in a non-updatable mode and be able to link to somewhere else.
I made some progress though. On the onLoadrecord I fill a ghost field with the value ‘link’. This way it is shown on a read-only form. But as the field cannot be of type ‘button’ or ‘link’ I cannot click it, so I cannot use the ajax onclick event.