JSE_Result is a special type, because it is an object that must be built inside the script. It is used to return the result of an index and a list of values that can be used in that index as a drop-down list. Icon
When running a script, it is possible to return a value directly. In reality, this value is directly encapsulated in a JSE_Result object.
Structure
- calculatedValue: The value returned as the index value as a string
- values : The values that will be loaded into the drop-down list. As a string list
{
calculatedValue: "Toto",
values: [ "Toto", "Titi" , "Tata"]
}
Construction
In order to facilitate the use of this object, several builders have been set up
var resultat = new JSE_Result();
resultat.calculatedValue = "Toto";
resultat.values = [ "Toto", "Titi" , "Tata"];
// équivalent à
var resultat = new JSE_Result("Toto");
resultat.values = [ "Toto", "Titi" , "Tata"];
// ne pas oublier de retourner l'objet à la fin du script
return resultat;