How to display an image from a database
The out-of-the-box K2 SmartForms image control is a great control to use for rapidly assembling a form that displays a K2 SmartForm image. The challenge is that a typical business requirement requires the image to be loaded from a database other than the K2 database. Furthermore, the image that is required to be displayed needs to be based on a specific context – a user’s login name for example.
How to upload multiple files with K2 Smartforms
As a K2 developer you are often required to provide users with the ability to upload and store multiple files, and make these files available to other users. This is very easily achievable with K2 Smartforms. In this post we will do a quick run-through of how to accomplish this.
When K2 stores a file it makes use of an XML data structure to store the file name, as well as a base64 encrypted string which contains the actual file content. The XML structure looks as follows:
Show Total Number of Pages on K2 SmartForms
K2 SmartForms provide a lot of customisation, not all of it is easy to find and most people are not aware of all the tools and options made available by K2.
A good example of one of these harder-to-find options is changing a K2 SmartForms ListView with paging enabled to also show the total number of pages.
How to implement Role Base security for K2 SmartForms
Usually, we will implement the security on each and every form to check user authorization. In this article we will see how we can implement group level security trimming for all forms in one place.
K2 improving performance
The K2 worklist is used to expose tasks to users that participate in workflows. There is one K2 worklist, but it is exposed in several ways. In essence, it is exposed as a user interface that calls the System.Workflow.Client object to retrieve worklist items from the K2 server.
K2 worklists are key in any K2 Workflow application, and, a direct link from the K2 worklist to specific data in custom application databases do not always exist. As performance plays a big role, it is always important to load data as efficiently as possible.
In this article we will see how to connect to soap webservices with security headers from K2.
At present K2 (4.6.7) doesn’t support registering the webservices with security headers as a service instance.
There is a workaround to achieve this