I have a control panel with several comboboxes and textfields in which the user can enter values to search in specific datasources. The comboboxes are based on datasources.

When i start the control panel, the comboboxes are always empty. However, they should always show the first value from their datasource.

How can i do that?

Kind regards, Jan Willem Vermeer

asked 28 Sep '15, 03:27

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
accept rate: 0%

Hi Jan,

You can use api_component.setValue API's and set a value for the combobox. If I am not mistaken the combobox tag also has a value attribute which you can use to set an initial value. Make sure you assign the value code to the component not the display value.

Kind Regards,


answered 28 Sep '15, 04:37

Yalim's gravatar image

Yalim ♦♦
accept rate: 20%

Thanks Yalim. Indeed there is a value attribute and that solves my problem. KR JW

(28 Sep '15, 05:08) Jan Willem V...
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported



Asked: 28 Sep '15, 03:27

Seen: 978 times

Last updated: 28 Sep '15, 05:08

© Copyright Gerger 2017