# How to fill a select/combobox, radiolist, checkboxlist

![Fig. 1 of the Select](/files/-LBVXEhsbmczB3Yo2euH)

## 1. Java

{% code title="Combo snippet" %}

```java
/*----#start-code(packages_import)----*/
import java.util.LinkedHashMap;
import static nosi.core.i18n.Translator.gt;
		/*----#end-code----*/
		
/*----#start-code(index)----*/
LinkedHashMap<String, String> targets = new LinkedHashMap<>(); 
targets.put(null, gt("-- Selecionar --"));
targets.put("_self", gt("Mesma página"));
targets.put("_blank", gt("Popup"));
targets.put("_newtab", gt("New tab"));
view.tag.setValue(targets);
/*----#end-code----*/
```

{% endcode %}

## 2. SQL

{% tabs %}
{% tab title="Combo query fill snippet" %}

```sql
#1 EXAMPLE:
/*----#start-code(index)----*/
view.clients.setQuery(Core.query(null,"SELECT id as ID, name as NAME")
								.from("tbl_customer0")
								.union()
								.select(" 'id' as ID, 'designationName' as NAME ")
								.from("tbl_customer1")
								.unionAll()
								.select(" 'id' as ID, 'firstName' as NAME")
								.from("tbl_customer2")
							);
/*----#end-code----*/

#2 EXAMPLE:
/*----#start-code(index)----*/
view.tag.setQuery(Core.query(null,
"SELECT '' as ID, '-- Selecionar --' as NAME union 
SELECT '_self' as ID, 'Mesma contpágina' as NAME union 
SELECT '_blank' as ID,'Popup' as NAME union 
SELECT '_newtab' as ID, 'New tab' as NAME"));
/*----#end-code----*/
```

{% endtab %}

{% tab title="2 example" %}

```sql
view.estado.setQuery(Core.query(null, 
"SELECT 'ATIVE' as ID,'Ativo' as NAME 
UNION SELECT 'INATIVE' as ID,'Inativo' as NAME "),"-- Selecionar--");
```

{% endtab %}
{% endtabs %}

## 3. Domain manager page

Domain manager in IGRP studio:

1. Add domain
2. Select the domain
3. Edit name/value

![](/files/-LOP5qLWpF_r7iUfkwHL)


---

# Agent Instructions: Querying This Documentation

If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter:

```
GET https://nosicode.gitbook.io/faq/beginner/how-to-fill-a-select-combobox.md?ask=<question>
```

The question should be specific, self-contained, and written in natural language.
The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
