In other words … it would be great if each record in the database would have an “image” field, so this image can be shown / loaded in the detail grid whenever a record-change in the grid is performed…
I’ve tried to “implement” your code in my application…
My form-layout is loaded via a separate form.xml (see below)
The data is coming from a MySQL database (that’s why I used the “bind” property.
All fields are loading fine … except that my image is (still) not shown on the page…
The image is stored in the field “contact_image” in my database, and it contains a string like “apple.png”
My conclusion so far …
It seems that the syntaxt “format=function …” is not “accepted” in XML …)
But I don’t know how to solve this …
My JS code is nothing more than: frmContact = tabDetailsContact.attachForm();
frmContact.loadStruct(“xml/form.xml”);
– Content of FORM.XML–
[b][i]<?xml version="1.0" encoding="UTF-8"?>