Multiple records inserted with RuntimeListViewRowCount option

Multiple records inserted with RuntimeListViewRowCount option

Last week, I helped a developer troubleshoot a weird issue where multiple records inserted with RuntimeListViewRowCount option. In case you are wonder what is RuntimeListViewRowCount, it is a web.config setting that enables all List Views in K2 smartforms to return and display the total row counts. It is disabled by default, due to past performance issues and you can read more of this setting here. In this article, I will be showing you the scenario that will cause the issue…

Read More Read More

Friendly Error Message on K2 smartforms

Friendly Error Message on K2 smartforms

Two years ago, I’ve posted an article on Providing a friendly error message for your K2 error on CodeCodeCode.Ninja. At that time, the version of K2 should be around 4.6.8 to 4.6.9 and the rules configuration in the article works perfectly to intercept a common error like the “Worklist item could not be opened”. Recently, I tested the same rule configuration under K2 4.6.10 and above and found that the method does not work anymore and I will like to show you a…

Read More Read More

Add company logo and change K2 login form descriptions

Add company logo and change K2 login form descriptions

In this article, I’m going to show you how to add company logo and change K2 login form descriptions when you are using the default K2 Claims Authentication. If you are wondering how to turn on Forms Authentication in K2, see this article. What is the K2 login form? When you turn on Forms Authentication on your K2 claims setup, you will get the following login form when you access K2 Designer or Runtime sites. So what most companies would like…

Read More Read More

Get Picker Control’s SmartObject Value Correctly

Get Picker Control’s SmartObject Value Correctly

In this post, I’m going to show you how to get Picker control’s SmartObject value correctly. Get Picker Control’s SmartObject Value Correctly When K2 smartforms Picker control executes the “On Changed” event, you will be able to extract the selected item’s values via the underlying SmartObject properties. It is a great way of populating the form data with more information regarding the selected item and you do not need to execute another SmartObject to do so as well (Yeah! No…

Read More Read More

Add JavaScript and CSS to K2 smartforms

Add JavaScript and CSS to K2 smartforms

This article shows how you can add JavaScript and CSS to K2 smartforms without developing custom controls. Why do I need to add scripts to the Form? Some of the reasons will be: To change the style of a specific View(s) or control(s) on the Form without amendment the Theme css. To execute a custom JavaScript without developing a custom K2 smartforms control. How can I add scripts to K2 smartforms? If you notice, the Data Label control has a Literal…

Read More Read More

Add a new K2 smartforms Runtime site

Add a new K2 smartforms Runtime site

K2 smartforms architecture allows you to create new Runtime sites with different authentication providers. In this post, I will be touching on how to add a new K2 smartforms runtime site. To find out how to set a different authentication mode on a Runtime site, read the post – Forms Authentication for K2 smartforms. 1. Prepare the website folder In this section, we will duplicate the Runtime folder. Open a Windows Explorer and navigate K2 blackpearl’s installation folder at C:\Program Files (x86)\K2 blackpearl. Copy and…

Read More Read More

Forms Authentication for K2 smartforms

Forms Authentication for K2 smartforms

This a quick guide on how to turn on Forms Authentication for K2 smartforms site. I have only tested this setup on K2 smartforms 4.6.9 and above, so I cannot guarantee it will work for K2 smartforms 1.0.7. 1. Getting to the Claims setup forms This is how to find the Claims setup forms in the K2 Designer site. Go to K2 Designer website. On the lower left of the screen, click on the Show: (All) link. Check and enable the…

Read More Read More

Create custom K2 smartforms control Part 1

Create custom K2 smartforms control Part 1

I have been asked several times on how to create custom K2 smartforms control recently and I will like to document down the basics in a few posts. Prerequisites So prior to starting the development, we need the following things to be in place: K2 blackpearl + K2 smartforms setup. You need the full setup, not just the client components as you will need to deploy and test the control. Good thing here is that the K2 developer licence is free, so long…

Read More Read More

Fix K2 blackpearl MSMQ integration issue

Fix K2 blackpearl MSMQ integration issue

If you encounter the error on A workgroup installation computer does not support the operation on your K2 blackpearl Server service, it probably means that you installed MSMQ without a domain previously and now you are trying to get it running in a domain environment. If yes, here’s how to resolve the K2 blackpearl MSMQ integration issue. K2 blackpearl MSMQ integration issue Solution 1: Use a Private Queue If it is going to be a hassle trying to get your Server…

Read More Read More

Setup Reverse Proxy for K2 smartforms

Setup Reverse Proxy for K2 smartforms

If you want to expose K2 smartforms to the Internet, the biggest problem you will face will be how to put the K2 smartforms Server in the DMZ zone and still get it to function correctly. You can solve the technical issues like access to port 5252, 5555 by opening the firewall ports, resolve the K2 blackpearl Server name by hard-coding the IP into the host file, but what about AD connection? Your security is not going to allow the AD to…

Read More Read More