---
title: "silreporting_createSelectList"
canonical: "https://support.appfire.com/space/PSJ/15482409/silreporting_createSelectList"
format: markdown
---
> Macro (aura-html)


## Syntax

**<span style="color: #3366ff">silreporting_createSelectList(label, options, defaultValue)</span>**  


## Description

> Macro (excerpt)
> 
> Creates a select list in the gadget report parameters section.

## Parameters

| Parameter name | Type | Required | Description |
| --- | --- | --- | --- |
| label | string | Yes | Label of the field. |
| options | <span style="color: #003366">SILReportingOption []</span> | Yes | List of selectable options. |
| defaultValue | string | Yes | Default value or an empty string. |

## Return type

**The returned value has no meaning.**

## Example

```
SILReportingOption [] options;

SILReportingOption p1;
p1.name = "cdev";
p1.value = "CDEV";
p1.label = "Custom Development";

SILReportingOption p2;
p2.name = "prdt";
p2.value = "PRDT";
p2.label = "Products";

options += p1; 
options += p2;

silreporting_createSelectList("Project", options, "PRDT");
```

![image](media://efd224b2-0bec-4f8d-8cb4-4200176ab924)