Skip to main content

Helpcenter

SwatImage

You can add images to any record you want by using the image-control.

The object type SwatImage is a control which can be added to a panel of a screen. With this control it is possible to add images to any record you want. The image will be saved in the Build.One database and the internal selfhdl (Build.One GUID) is used as the unique reference between the image and the record.

Adding a SwatImage

You can add the control to every panel or within a page of a SwatTabbar.

  1. Open the screen that you want to add the image control in the Object Designer.

  2. In the catalog search for the object SimpleSwatImage.

  3. Drag & drop it to the Preview panel and save.

  4. Set the following attributes:

    • ENABLED = True

    • ForeignFields = Picture.refHdl,selfHdl

    • typeRange: defines the text-types which are selectable in the editor, e.g. “image.customer.” (check the content types for existing types or create new types there). The value of this attribute will be used to search all content types where the key starts with this value (e.g. “image.customer.” —> “image.customer.logo”, “image.customer.item.1” etc.)

  5. Go to the Flow view and add a link from the datasource to the image control.

  6. Select the linktype 'Display'

  7. Click Save.