Skip to main content
Nintex Community Menu Bar
Question

5.9 Custom control - how to implement for each item in a list control on a view

  • February 6, 2026
  • 5 replies
  • 77 views

Forum|alt.badge.img+1

Hello there,

We are currently implementing a number of custom controls and are struggling to find real world examples of how to be able to correctly implement the above method for a list bound control.

Given the below item view - which has the custom checkbox and the standard one.

In the rules designer we get the option to enumerate the various items in the control, as expected:

 

However when displaying a message for each item, we do not get any messages displayed for the custom one, but we do for the standard one.

What methods / properties am I missing.

Cheers.

5 replies

ScottCaseIT
Forum|alt.badge.img+4
  • Novice
  • February 6, 2026

So, the trick is in the details of how you implemented your control. You have to remember that SmartForms deals in SmartObjects for data.

Let’s use a drop-down list as an Example.

A developer chooses a display and a value for your list items; however, when you are working with the control, you don’t only have access to what the value is from the drop-down, you have access to all the properties in the SmartObject that are representative of that entry in the drop-down list.

Example of how a SmartObject relates to it’s parent control

I have uploaded this example package to my GitHub up at: GitHub - Case-IT-Solutions/K2-Help-Examples

I provided this background as I suspect your control may need to be tweaked in relation to the SmartObject that is feeding it, or the return value’s type, or something of that nature. Or I could be completely wrong, but if I were building a control and wanted to use the built-in iteration, I feel that focusing on how SmartObjects are used in the rule's framework would be the path.

Hopefully, this example inspires you on how you might address your issue. Would love to know what it ends up being the solution! 😁


Forum|alt.badge.img+1
  • Author
  • Rookie
  • February 9, 2026

Thanks for the reply - in my case it is not a list control, but it a data bound control, but I understand what it is you’re trying to say.

The control is correctly recognising that it is data bound as it exposes the Items property in the Context Browser as per:

 

(it also shows the relevant SmO properties when it is bound to an SmO method)

I am sure I am missing some property in the manifest, or am not implementing a method that supports the for each method, as there are no examples out there I’m kind of unsure about what I need to implement to get this working, hence the question.

 

Thanks


ScottCaseIT
Forum|alt.badge.img+4
  • Novice
  • February 9, 2026

I went and looked at a comparable control the multiselect, and it illustrates what I am talking about, you can see that it shows that it is paired to a smart object,

 

 

In your screen shot above it does not show that it has a SmartObject as a data source. 

(Ref: Adding a Datasource property to a Custom Control)

how are you populating the items in your list control?

Also, I pulled the properties XML definition of the Multiselect control from the unofficial, use at your own risk, don’t try this at home K2 documentation (the database), and uploaded to the git hub to maybe give some more insight as to what you should be aiming for with your custom control. GitHub - Case-IT-Solutions/K2-Help-Examples

 

 


Forum|alt.badge.img+1
  • Author
  • Rookie
  • February 10, 2026

Hi - thanks for the reply - yes it does support databinding:

 

I just didn’t show it in the above example to keep it simple as it should still be able to enumerate the static values.  It gets populated in the standard way, by configuring the SmartObject data source and then calling populate in a rule:

Thanks for the control definition, I’ll take a look and see if I can see anything, been poking about in the control dlls using ILSPy as well to see if I could find anything.  If I do get it sorted I’ll share the info.

Cheers


ScottCaseIT
Forum|alt.badge.img+4
  • Novice
  • February 10, 2026

There is also an additional CSV file in the repo that I captured from the database row showing all the methods used in the Multiselect control, which at least gives you some namespaces to check out in your investigation.