The field with image does not work for a detail

Question

The field with image does not work for a detail (see instruction at https://academy.bpmonline.com/documents/technic-sdk/7-13/how-add-field-…).

Answer

This instruction is relevant for page schemas; for details, add the following method:

getSchemaImageUrl: function(primaryImageColumnValue) {
        if (!primaryImageColumnValue) {
            return null;
        }
        var imageConfig = {
            source: Terrasoft.ImageSources.SYS_IMAGE,
            params: {
                primaryColumnValue: primaryImageColumnValue.value
            }
        };
        return Terrasoft.ImageUrlBuilder.getUrl(imageConfig);
},

 

Like 0

Like

Share

0 comments
Show all comments