In the current post I share my best practices, how you can maintain JS and CSS in a K2 application, so that it is reusable and can be easily found and maintained by you or your colleagues.
Posts published in “K2”
All posts in this category are somehow connected with the K2 platform.
This article will demonstrate, how you can run forms validation with multiple views, showing only 1 message before submitting the form. This is one of the most frequent requirements from the customer. And even though this approach is applied inside K2 SmartStarters , not so many developers are aware of it.
The post is mostly about List views, which you do not want to edit inline due to other requirements or validation complexity. And therefore you need a subview to be able to create/edit/view List view items. So how do you reuse subviews for Create/Edit/View functionality.
I decided to implement something else with ReactJS and below I will describe how to create a ReactJS control in K2 to display Carousel of images. The approach was tested in K2 Five and I assume should also work in the K2 Cloud. This is especially great for K2 Cloud, where you do not have any possibility to implement a custom control. Another nice thing about this approach is that ReactJS will load the images from the SmartObjects, exposed through the SmartObject OData API.
As many other employees, my colleagues and I have to do our expenses manually. Luckily, we have K2 and, therefore, we automated the process. We created an Expense Claim App with the workflow in the background. However, it still takes a lot of time to submit the request. That is why I have been challenged by one of my colleagues to add the OCR functionality. I accepted the challenge and here is the article, which will quickly guide you, how to integrate a K2 Expense Claim App with ABBYY OCR. As a result, you will get a tool, that can scan your receipts and auto-fill the rest of your fields with the recognized values. And before I proceed any further, this is the final result, how all this can work.
I was always thinking about how I can make the forms in K2 even nicer, than they are. And what if we can add a context video to certain standard applications? I will show you how you can easily achieve that.
I have been a fan of ReactJs for some time so far. I like the idea, that, as well as in K2, you can also create reusable components, even though the framework allows more customizations. K2 cannot be used to build single page applications, but nobody said it is not allowed to use ReactJs to create nice UI or layouts. In this post I will show you, how you can use ReactJs to build a masonry layout for images, stored in a SmartObject. The ReactJs component will get the images from K2 and render them in a nice responsive way. By the way, the approach is also suitable for K2 Cloud, where you cannot install any custom controls.
In this post I will tell you about popup animations in K2 and how to add more fun into a K2 Smartform. You can either inject CSS/JS onto your form,…
I could not find a clear explanation on K2 Knowledge Center, how workflow versioning works in the new designer (K2 Five and/or K2 Cloud). I still receive some questions from my colleagues, therefore, I find it helpful to create a short article and explain all the details. However, you need to understand, that everything was tested on K2 Cloud Update 7 and K2 Five 5.2. K2 might change the behavior, which make the following article invalid. So let's go.