The Image Attachment control enables the user to attach an image while displaying a progress bar while uploading. When dragging a Field of type Image Attachment onto the canvas, the properties displayed will be specific to that Field.
The maximum File and Image size that can be attached with the File/Image attachment control is dictated by the following setting in the web.config file in the system.web section.
<httpRuntime maxRequestLength="16384" />
When creating a Form that consists of many Views and multiple States the Form rules might not be visible after adding an additional State. This occurs when the Form definition increases and exceeds the "Maximum Request Length" specified in the web.config. The maxRequestLength can be edited to enlarge the size of the Form definition.
The web.config file can be found in the following location:
C:\Program Files (x86)\K2 blackpearl\K2 smartforms Designer
The default maximum value is set as 16384 KB (kilobyte) which is an integer value and can be changed to the required value in KB.
The Image Attachment control is available in the Attachment section of the Controls found in the View Designer and Form Designer.
Properties | Description | Can be set in runtime using Rules |
---|---|---|
Name | A unique identifier for the selected control. This property is required | No |
Field | A read-only property displaying the field that is bound to the selected control | No |
Data Type | A drop-down list containing the types of values that the selected control can accept | No |
Watermark | The text to display when the control is not populated | Yes, see Control Properties Actions for more information |
Tooltip | The value to be displayed when the cursor is hovered over the control during runtime | Yes, see Control Properties Actions for more information |
File Name | Yes, see Control Properties Actions for more information | |
Show Information | A Boolean value used to establish whether the control should show file information during runtime | Yes, see Control Properties Actions for more information |
Borderless | A Boolean value used to establish whether the control has borders during runtime | Yes, see Control Properties Actions for more information |
Size | Specify the size of the thumbnail | Yes, see Control Properties Actions for more information |
Custom Width | Specify a custom width if the Size property is set to “Custom” (any whole number or pixel value up to 32767px) | Yes, see Control Properties Actions for more information |
Custom Height | Specify a custom height if the Size property is set to “Custom” (any whole number or pixel value up to 32767px) | Yes, see Control Properties Actions for more information |
Width | Adjust the width of the control (any whole percentage up to 100%, number or pixel value up to 32767px) | Yes, see Control Properties Actions for more information |
Tab Index |
Used to define a sequence that users follow when they use the Tab key to navigate through a page at runtime |
Yes, see Control Properties Actions for more information |
Visible | A Boolean value used to establish whether the control is visible during runtime | Yes, see Control Properties Actions for more information |
Enabled | A Boolean value used to establish whether the control is enabled during runtime | Yes, see Control Properties Actions for more information |
Read-Only | A Boolean value used to establish whether the control is read-only during runtime | Yes, see Control Properties Actions for more information |
Styles | Opens the Style Builder enabling the user to specify style features like Format, Font, Borders, Padding and Margins. See the Style Builder topic for more information on styling options | No |
Conditional Styles | Opens the Conditional Formatting Designer used to design styles that will apply only when certain conditions are met. See the Conditional Styles section for more information | No |
How to use rules to change the edit state of View and Form controls and tables
Video | Links | Learn | Support |
No videos found for this article K2 on YouTube
No Additional links found for this article
No self-learning content for this article Try some scenarios...
No relevant support links available for this article
|