Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| 2500_config_apps:0700_add_edit_attributes:0600_picture_attrib [2022/08/21 22:48] – ↷ Links adapted because of a move operation administrator | 2500_config_apps:0700_add_edit_attributes:0600_picture_attrib [2026/08/13 00:55] (current) – ↷ Links adapted because of a move operation localdev | ||
|---|---|---|---|
| Line 2: | Line 2: | ||
| ====== Setting Properties of Picture Attributes ====== | ====== Setting Properties of Picture Attributes ====== | ||
| - | The Picture attribute type represents images (pictures). When an attribute of this type is shown on a form of the business object that owns the attribute //**Aware IM**// generates the Browse button that allows the user to attach a particular image as an attribute value (only image files, such as .gif, .jpeg, .bmp files should be attached). The image is displayed on the form (see the example below): | + | The Picture attribute type represents images (pictures). When an attribute of this type is shown on a form of the business object that owns the attribute //**AwareIM**// generates the Browse button that allows the user to attach a particular image as an attribute value (only image files, such as .gif, .jpeg, .bmp files should be attached). The image is displayed on the form (see the example below): |
| - | {{ : | + | {{ docs: |
| Most properties you need to specify for attributes of the Picture type are common to all attribute types – see [[2500_config_apps: | Most properties you need to specify for attributes of the Picture type are common to all attribute types – see [[2500_config_apps: | ||
| Line 10: | Line 10: | ||
| ===== Picture represents signature ===== | ===== Picture represents signature ===== | ||
| - | Tick this checkbox if a picture attribute stores an electronic signature of the user. If this option is on at runtime | + | Tick this checkbox if a picture attribute stores an electronic signature of the user. If this option is on at runtime |
| ===== Stored in ===== | ===== Stored in ===== | ||
| Line 18: | Line 18: | ||
| ==== Database ==== | ==== Database ==== | ||
| - | This is the default option. Images will be stored by Aware IM in the database. You don’t need to specify anything else. | + | This is the default option. Images will be stored by AwareIM |
| ==== File System ==== | ==== File System ==== | ||
| - | If you select the File System option images will be stored in the file system of the //server// where //**Aware IM**// is running. The exact location of the image is determined from the value of the specified expression. For example, if the file path of the image is stored in the Path attribute, the expression should be Object.Path, | + | If you select the File System option images will be stored in the file system of the //server// where //**AwareIM**// is running. The exact location of the image is determined from the value of the specified expression. For example, if the file path of the image is stored in the Path attribute, the expression should be Object.Path, |
| ==== Amazon S3 ==== | ==== Amazon S3 ==== | ||
| Line 32: | Line 32: | ||
| - Open the Security Credentials tab and click on the “Create Access Key” button. | - Open the Security Credentials tab and click on the “Create Access Key” button. | ||
| - In the resuling dialog box click "Show User Security Credentials" | - In the resuling dialog box click "Show User Security Credentials" | ||
| - | - Click the Settings button in //**Aware IM**// next to the “Stored In” property and enter the access key ID and secret access key in the dialog that opens (note that this has to be done just once – if you have another attribute which is stored in Amazon S3, you don’t need to do it again). | + | - Click the Settings button in //**AwareIM**// next to the “Stored In” property and enter the access key ID and secret access key in the dialog that opens (note that this has to be done just once – if you have another attribute which is stored in Amazon S3, you don’t need to do it again). |
| Just like with the File System storage you also need to specify an expression that holds the path to the image in the Amazon S3 storage. This path includes the name of the AWS bucket and the name of the AWS region: | Just like with the File System storage you also need to specify an expression that holds the path to the image in the Amazon S3 storage. This path includes the name of the AWS bucket and the name of the AWS region: | ||
| Line 66: | Line 66: | ||
| - Load two different versions of the image and store them in different attributes of the object | - Load two different versions of the image and store them in different attributes of the object | ||
| - | - Load and store just one image and get Aware IM to scale it down automatically when displaying it on forms or query results | + | - Load and store just one image and get AwareIM |
| When you select the first option you need to provide the name of another attribute in the business object (of the Picture type) that would store the larger (actual size) version of the image. When you select the second option you can specify the scale in which the image will be displayed on forms and query results independently. | When you select the first option you need to provide the name of another attribute in the business object (of the Picture type) that would store the larger (actual size) version of the image. When you select the second option you can specify the scale in which the image will be displayed on forms and query results independently. | ||
| - | You can also tick the “Show actual representation when thumbnail is clicked” checkbox. If you do this //**Aware IM**// will show the larger (actual size) version of the image when the user clicks on the thumbnail. The larger version will be shown regardless of whether the larger image is stored in the same or different attribute. The larger image will be shown using the popular “lightbox” technology. | + | You can also tick the “Show actual representation when thumbnail is clicked” checkbox. If you do this //**AwareIM**// will show the larger (actual size) version of the image when the user clicks on the thumbnail. The larger version will be shown regardless of whether the larger image is stored in the same or different attribute. The larger image will be shown using the popular “lightbox” technology. |
| ==== Embed image data into HTML ==== | ==== Embed image data into HTML ==== | ||
| - | When a picture stored in the database or in the file folder outside of the web application directory (AwareIM/ | + | When a picture stored in the database or in the file folder outside of the web application directory (AwareIM/ |
| ==== Allow cropping and resizing ==== | ==== Allow cropping and resizing ==== | ||