Style editor: Difference between revisions

Jump to navigation Jump to search
No edit summary
Line 37: Line 37:
* '''FormatString''' – If you use a non-string field as a source for the image (e.g. a lookup field), the string should look like folder_name{0}.png. {0} represents the target name (name of the lookup record, according to which the image is used.
* '''FormatString''' – If you use a non-string field as a source for the image (e.g. a lookup field), the string should look like folder_name{0}.png. {0} represents the target name (name of the lookup record, according to which the image is used.
* '''HorizontalAlignment''' – NEAR aligns the image to the left side of the cell, FAR aligns image to the right side of the cell and CENTER aligns the image to middle of the cell.
* '''HorizontalAlignment''' – NEAR aligns the image to the left side of the cell, FAR aligns image to the right side of the cell and CENTER aligns the image to middle of the cell.
* {{Anchor|ImageQuery}} '''ImageQuery''' – For entity images, you can define the query for image location.
* {{Anchor|ImageQuery}} '''ImageQuery''' – For dynamic images, you can define the query for image location.
** As '''Image Data''', select the entity and field that contains your image (often, <code>Note.Document</code> or <code>{CurrentEntity}.Entity Image</code>).
** As '''Image Data''', select the entity and field that contains your image (often, <code>Note.Document</code> or <code>{CurrentEntity}.Entity Image</code>).
** As '''Conditions''', add how to locate the correct image. The left side shows the fields on the entity selected as Image Data, on the right side you can either write a constant value, use a field of the current entity (in curly brackets), or use <code>{currentUserId}</code> to refer to the current app user.
** As '''Conditions''', add how to locate the correct image. The left side shows the fields on the entity selected as Image Data, on the right side you can either write a constant value, use a field of the current entity (in curly brackets), or use <code>{currentUserId}</code> to refer to the current app user.

Navigation menu