Project

General

Profile

Actions

Bug #5691

open

parameter choices are not saved

Added by Daniel Crawl over 11 years ago. Updated over 11 years ago.

Status:
New
Priority:
Low
Category:
general
Target version:
Start date:
08/20/2012
Due date:
% Done:

0%

Estimated time:
Bugzilla-Id:
5691

Description

The choices for Parameter.addChoice() are not written when the model is saved.

Actions #1

Updated by Daniel Crawl over 11 years ago

If I add choices to a parameter in a workflow, I would like those choices available the next time I open the workflow. I was able to accomplish this by manually adding an EditableChoiceStyle containing each choice, e.g.:

<property name="control" class="ptolemy.actor.parameters.PortParameter" value="Local Execution">
<property name="style" class="ptolemy.actor.gui.style.EditableChoiceStyle">
<property name="choice1" class="ptolemy.data.expr.StringParameter" value="Map Reduce">
</property>
<property name="choice2" class="ptolemy.data.expr.StringParameter" value="Map Only">
</property>
<property name="choice3" class="ptolemy.data.expr.StringParameter" value="Cross Reduce">
</property>
<property name="choice4" class="ptolemy.data.expr.StringParameter" value="Job Submission">
</property>
</property>
</property>

I have to manually add and remove the choiceN parameters; it would be nice if this were automatically done. I'm lowering the priority and retargeting.

Actions #2

Updated by Redmine Admin almost 11 years ago

Original Bugzilla ID was 5691

Actions

Also available in: Atom PDF