+44(0)1908738254
YOUR EXPERT RPA PARTNER

Team up with our RPA strategy and tech specialists for maximum automation impact

Find out more
Harness the power of UiPath in your business.
WATCH NOW

Save money and spend more time on priority work.

Book consultation
READY, SET, AUTOMATE

Let's choose, design and deploy a process automation solution for your business.

Find out more
TRANSFORM YOUR BUSINESS

Let's analyse your business to discover opportunities for innovation and automation.

Find out more

Begin your business transformation journey

Book consultation
AUTOMATE EVERY FUNCTION

Automate where it matters most. Scale to solve challenges in every area

Find out more
GIVE EVERY TEAM THE TOOLS FOR SUCCESS

Equip people with user-friendly solutions that save time and make work easier

Find out more

Which business problem
can we solve first?

Book consultation
15 March 2015

How to transfer data and execute methods on separate K2 SmartForms

When sending data from a K2 SmartForm view on one form to a ViewMethod on another form, you can either send the data across in a query string and execute the ViewMethod once the new form initializes, or you can do it all with one rule while at the same time removing the need for a query string.

First we have an event that kicks off the process. When this button is clicked it takes data from the current view and uses it as input parameters for a ViewMethod of a different View on a different Form.

k2 smartforms transfer data

1 – K2 SmartForms – Data transfer between forms – Event configuration

K2 Automated Testing Software

BenchQA allows full test automation of K2, including fully automated K2 SmartForms and K2 Workflow testing. It promotes test driven development for K2 and ensures continued quality assurance for K2 solutions. Easily apply changes to test cases to accommodate changes to K2 apps and ensure all apps are regression tested to avoid defects and assure continuous quality.

 

Free K2 Five Upgrade Review

In the event configuration you only need one action to execute the scenario detailed above. This action can be found on the Actions tab under Navigation.

2- K2 SmartForms - Data transfer between forms - Event configuration

2- K2 SmartForms – Data transfer between forms – Event configuration

Specify the form, view and ViewMethod.

3 - K2 SmartForms - Data transfer between forms - Event configuration

3 – K2 SmartForms – Data transfer between forms – Event configuration

There are 3 stages of configuration, on the first stage you can specify parameters that will be sent through in a query string format. We don’t have any parameters and as you can see the URL preview is clean.

4- K2 SmartForms - Data transfer between forms - Rule configuration

4- K2 SmartForms – Data transfer between forms – Rule configuration

On the second stage we have access to all the controls, SmartObjects, parameters and expressions from the current K2 SmartForm form and views. Drag the desired objects into the input properties section of the ViewMethod from the view on the new form we will be avigating to.

5 - K2 SmartForms - Data transfer between forms - Rule configuration

5 – K2 SmartForms – Data transfer between forms – Rule configuration

On the third stage you have access to the K2 SmartForms form we will be navigating to as well as it’s views, parameters and SmartObjects. We transfer the return parameter from the executed ViewMethod to the K2 SmartForms form parameter.

6 - K2 SmartForms - Data transfer between forms - Rule configuration

6 – K2 SmartForms – Data transfer between forms – Rule configuration

On the form initialized event of the new form we execute our read method, to obtain data from the new request created when we navigated to the new form.

7 - K2 SmartForms - Data transfer between forms - Rule configuration

7 – K2 SmartForms – Data transfer between forms – Rule configuration

The read message uses the newly transferred form parameter as input.

8 - K2 SmartForms - Data transfer between forms - Rule configuration

8 – K2 SmartForms – Data transfer between forms – Rule configuration

Need further technical advice or support?