Table of Contents

Image


btn


Displays an image in a Workbook. Use the LoadData action and call the SetSrc(…) function to specify the image source (url) dynamically, or set the Source property to specify a static or initial image source.

Actions

  • LoadData
    Use this action to refresh the image displayed by calling the SetSrc(…) function. If you just want to display a static image, specify the url in the Source property of the component.

Example

Call the following function in the LoadData action of the Image to change the image to display.

"AssetLib" is a table in a Solution, having and "ID" and "FileName" column. In this example, FileName contains the path and name of the file. Use the "asFile" query string parameter to specify that you want the API to server the actual file specified in the FileName column, not file name itself.

If "FileName" contained the actual file (binaries), you would not have to specify the "asFile" options.

SetSrc(ApiBase() + "/api/db/objects/AssetLib/FileName?q={ID == \"MyImg\"}&asFile=true");

Videos