Skip to main content

Hello,

 

does anyone know how a list box control works? We struggle use this properly in general.

Our main task is to add list items at run time, delete items at runtime and modify items at runtime.

 

Is there anything we have to keep in mind?

 

regards,

Johann

Good day  @JSC 

 

I suggest that you go through “Configuring the Control, Properties, ClosedRules, Ruless, Events and Actions, and Considerations” in the guide in the following link.

List Box Control: https://help.k2.com/onlinehelp/K2Five/UserGuide/5.3/default.htm#Create/K2Designer/Controls/ListBox/ListBoxControl.htm%3FTocPath%3DCreate%7CSmartForms%7CForms%7CControls%7CInput%2520Controls%7C_____11,

Multi-Select Control: https://help.k2.com/onlinehelp/k2five/userguide/5.3/default.htm#Create/K2Designer/Controls/MultiSelect/MultiSelectControl.htm,

Populate ListBox/ListDisplay from textbox entries: https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/Populate-ListBox-ListDisplay-from-textbox-entries/td-p/102070.

I hope you find these helpful.

 

Best,

Sunrise

 

Best,

Sunrise

 


Good day JSC;


 


Please see :https://community.k2.com/t5/K2-Blackpearl-Forum-Posts/Populate-ListBox-ListDisplay-from-textbox-entries/m-p/102112#M33983


 


Kind Regards,


Dumisani


 


 


The List Box control is a single column multi-select control, enabling the user to select one or more items at once. Display a list of values where single or multiple items can be selected

How to use list box control :

1. Create a View.

2.  Drag the List Box control onto the canvas. The control can be found in the Input section of the Controls found in the View Designer, see the Properties section below.

3. Configure the Type under the Data Source of the Properties

4. Configure the rest of the properties as required.

  • Configure rules as required.
  • Run the View.
  • Select one or more records to be actioned.

 

List BoxConsiderations:

  • Cannot filter a List Box control according to another control.
  • If the Maximum Selection property is set to one, the Selection Mode property is multiple and a selection is made at runtime, that value must be deselected before selecting another
  • If the Maximum Selection property is set to one, the Selection Mode property is single and a selection is made at runtime, another value can be selected without having to deselect the previous value. Simply click on the next to deselect the previous.

 

1.List Box Control Issues to look out for:

List box control not clearing values when SMO returns 0 items

 

-Issue, Symptoms, and troubleshooting steps listed detailed here: https://help.k2.com/support-services/kbs100045

                                                              

2. Custom style configured on a listbox control is not applied at runtime

 

-Issue: When you configure a custom style on a listbox control on a view, such as font color or size, the custom style is not applied when running the view: Please find the resolution here: https://help.k2.com/kb002871

 

Enjoy.


Thanks for the answers. We thought, that we can use the ListBox similar to a editable List view. This seems not to be the case...


Reply