The Images System-table
Orixa uses a single data-table to hold images that are linked to data-records. Developers can ignore this feature, and add fields to data-tables which store images if they wish.
The Images system-table provides a built-in mechanism for linking one or more images to any data-record in your App. These images might be pictures of a product or profile pictures of staff or users.
Once added images are viewed either with the data they are linked to, or via the Images Grid. Details of the Images Grid are in the following help-topic:
The System Images Grid
How Images are Linked to BusinessObjects in your App
Images System Table Linking |
Adding images-related features to one of your BusinessObjects is very simple. In the BusinessObjects edit-form simply find the BusinessObject for which you wish to enable images, and tick the "LinkToImages" tick-box. The next time you open your App and edit records in the selected BusinessObject, image-storage will be activated for this BusinessObject. |
Images System Table Edit Form |
"People" Edit Form with "LinkToImages" enabled Once a BusinessObject is linked to Images, the "Images" icon will be added to the edit-form main toolbar (1). This allows you to add images which are linked to this data-record, view the images in an "Images Grid", and "Paste Current Clipboard-content into a new Image". The "Paste Current" option in this menu is particularly useful if users wish to for example take "screen grabs" and add these to the database. |
Images System Table Edit Form Grid |
Images Grid for individual person If Show Images Grid is selected a tab is added in the edit-form and linked images are shown (the grid may be empty if no records are present). From here it is possible to open the Edit Form for each image, if required (as shown on the left) |
How Images can be used in Orixa Apps
All Orixa systems can process and display the images that are stored in the images system-table.
Therefore it is easy to use these images in any of the user-interface parts of your App. For example, product photos can be added to reports, dashboards and dataviewers that are output from your App.
Simply add a reference to the Images system-table in your SQL statement.
It is important to note that the Images system-table includes 3 image-fields which are automatically created when you import image data. These are the "Image", "MediumImage" and "ThumbImage" fields. These exist to make it easy to retrieve just a small ("Thumb") or medium-sized version of the image if you do not a full sized image. As images are very data-intensive this helps to keep the operation of Orixa Apps snappy and fast. The "Image" data holds the original, "MediumImage" holds a version which is 500 pixels wide, and "ThumbImage" holds a version which is 150 pixels wide.
SQL to Add Images to a Report
|
SQL to return a list of products with a thumb-nail of each product's "preferred" image SELECT |
Images SQL Definition |
The SQL definition for the Images system-table CREATE TABLE "Images" |
An image in-use in an App Report
An Enterprise-quality-system App, which adds regularly captured images of food products for personel to monitor and review.