3362
Views
7
Comments
Solved
Special list value as default value of combo box
Question

 I have a combo box populated with the records from a static entity, and a value in the special list value with
Value 1: 0
Option 1 : All

I want the 'All' option to be selected (as default) everytime I open or refresh the page, but so far, I wasn't able to do it. Any advice?

Thanks a lot ;)

2022-10-20 02-09-39
JeffT
Solution

Hi Allan,

You bind the combo box with any variable , then assign value 0 to the variable on preparation .

Cheer,

Rocky

2022-10-20 02-09-39
JeffT

Or You can define the default value of that variable to Zero.

UserImage.jpg
Allan Doblon

Rocky wrote:

Or You can define the default value of that variable to Zero.

Hi again rocky haha, it automatically select the last one and there is no default value property in combobox

2022-10-20 02-09-39
JeffT

Hi allan,

Check your Variable which is bind with combo box it have default value :

Oml Attached.

test.oml
UserImage.jpg
Frederico Milheiro

Rocky wrote:

Hi allan,

Check your Variable which is bind with combo box it have default value :

Oml Attached.

Hey,

I'm facing a similar issue. So if you could help me out would be cool.  In this case the JobDropID variable is type integer ? How will it hold the ID values of the jobs if it is an integer? Usually when you set the variable to the combobox, and this combobox as an aggregate, you need the varialbe to be the Identifier Type, and in this cases, you cant set the default value to 0, cause there are no ID = 0.



UserImage.jpg
Poonam Verma

Frederico Milheiro wrote:

Rocky wrote:

Hi allan,

Check your Variable which is bind with combo box it have default value :

Oml Attached.

Hey,

I'm facing a similar issue. So if you could help me out would be cool.  In this case the JobDropID variable is type integer ? How will it hold the ID values of the jobs if it is an integer? Usually when you set the variable to the combobox, and this combobox as an aggregate, you need the varialbe to be the Identifier Type, and in this cases, you cant set the default value to 0, cause there are no ID = 0.



Hey,

For to store Identifier into Integer you can take help from inbuilt functions like 

IdentifierToInteger()



UserImage.jpg
Allan Doblon

Ohh I get it now, thanks thanks

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.