Hi,

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...
1431436
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,
Yalim

link

answered 28 Sep '15, 04:37

Yalim's gravatar image

Yalim ♦♦
2.8k5
accept rate: 21%

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

By RSS:

Answers

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

Tags:

×30
×5
×4

Asked: 28 Sep '15, 03:27

Seen: 781 times

Last updated: 28 Sep '15, 05:08


© Copyright Gerger 2017