Hi,

i have a panel with one combobox based on a listdatasource and displayNullOption=Y.

So, it must be possible to select nothing.

After starting the panel i can see no value and have to click on the combobox arrow to select a value.

Now i want to see which value the user has selected. I have found 2 ways:

1) l_value_nr := api_datasource.getColumnValueNR('DATASOURCE_NAME.COLUMN_NAME');

or

2) l_value_nr := api_component.getValueNR('<panel_name>.<combobox_name>');

Both ways work seem to work...

HOWEVER: when the user selects the null option in the list, l_value_nr always gets the value of the first row in the datasource. So, it is never null.

How can i detect that the user has chosen the null-value in the combobox?

Kind regards, Jan Willem Vermeer

asked 23 Feb, 09:41

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1131227
accept rate: 0%


Sorry, solved by myself. Made a small typing mistake.

With api_component.getValueNR('<panel_name>.<combobox_name>)' the value is null when the user selects nothing.

KR Jan Willem

link

answered 23 Feb, 10:21

Jan%20Willem%20Vermeer's gravatar image

Jan Willem V...
1131227
accept rate: 0%

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
×1

Asked: 23 Feb, 09:41

Seen: 176 times

Last updated: 23 Feb, 10:21


© Copyright Gerger 2017