-
Notifications
You must be signed in to change notification settings - Fork 16
Open
Labels
About GAMLThis issue concerns the GAML languageThis issue concerns the GAML language😱 BugThe issue reveals a bug in GAMAThe issue reveals a bug in GAMA
Description
Describe the bug
I use a variable to store a list of options to populate a dropdown menu. It points towards another variable. The menu appears to be empty.
To Reproduce
Use the following code:
model STARFARM
global{
list<string> key_indicators <- ["Harvest","Profit","Crop area","Water consumption","Fertilizer consumption","Current year","Current season"];
list<string> chart_list <- key_indicators;
string current_chart <- first(chart_list);
init{
write key_indicators;
}
}
experiment test type:gui {
parameter "Chart" var: current_chart init: "Total crop biomass per practice" among: chart_list;
}
The variable chart_list points towards key_indicators, but the dropdown menu is empty:
Expected behavior
When providing directly a value to chart_list like this:
list<string> chart_list <- ["Harvest","Profit","Crop area","Water consumption","Fertilizer consumption","Current year","Current season"];
it works:
- OS: Win10
- GAMA version: 2.6
Metadata
Metadata
Assignees
Labels
About GAMLThis issue concerns the GAML languageThis issue concerns the GAML language😱 BugThe issue reveals a bug in GAMAThe issue reveals a bug in GAMA
Type
Projects
Status
Todo