+44(0)1908 545 770
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
09 September 2015

Creating comboboxes from K2 SmartObjects with associations

Comboboxes from k2 Smartobjects

In a previous blog post we explored how to create various relationships between your SmartObject entities. In this post we will expand on the usefulness of having defined these associations in the first place.

K2 Automated Testing Software

rnBenchQA 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

 

Lets just look at our basic data setup again before we continue. Basically a product is associated with a specific Line of business, while a line of business can be associated with many products.

comboboxes from k2 smartobjects - 1

Now we would like to create a screen from where we would like to add a new product to the system. To do this we have to choose a line of business to which the product needs to be added. The basic screen layout is as follows.
comboboxes from k2 smartobjects - 2

To get the combobox on this screen to display database driven data, you usually would have had to perform a few steps, as listed below.

1. Drag a combobox control onto the designer.

2. In the data source section of the combo box properties define the data source as follows:
comboboxes from k2 smartobjects - 3

3. Make sure the the following rule is added to ‘When the view executed Initialize’.
comboboxes from k2 smartobjects - 4

If you have however already configured the association between the LOB and product Smart Objects it however becomes as simple as dragging the LobId field from the right hand side ‘Fields’ tab onto the design canvas and all the rules and setup will automatically be performed for you.

This become especially usefull when creating list views with editable combobox fields. The more times you use the field, the more time it saves if you just define the associations correctly from the get go.

Need further technical advice or support?