Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Button handy
blanktrue
color#0052CC
nameSend Feedback
linkhttps://docs.google.com/forms/d/e/1FAIpQLScmToBe3vynAlb5fdKwCGxYqnTbDc66sIBgeecG2BuFDuHc7g/viewform?entry.2002826954=silreporting_createSelectList+-+15482409
widthauto

Syntax

silreporting_createSelectList(label, options, defaultValue)

Description

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

SILReportingOption []

YesList of selectable options.

defaultValue

string

Yes

Default value or an empty string.

Return type

The returned value has no meaning.

Example

Code Block
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 Added