file Module parameter type Enum - Cant set the value and no default value is set

4 weeks 2 days ago #6330 by joset
Hi i successfully (the list of items correctly displays) implemented an enum parameter but:
1) it is impossible to set the value from the list
2) the default value is not set

Look at the code (thank you in advance, José) below:

<Parameter id="StrategieEnum" group="%group.generation.label" uid="e8705db3-de16-43a5-8f8d-683db3705c86" type="Enum" default-value="GeneratedNumericValue" label="%parameter.StrategieEnum.label">
<Enumeration>
<Literal value="PlainText" label="%parameter.StrategieEnum.PlainText.label"/>
<Literal value="GeneratedNumericValue" label="%parameter.StrategieEnum.GeneratedNumericValue.label"/>
<Literal value="ModelNumericValue" label="%parameter.StrategieEnum.ModelNumericValue.label"/>
</Enumeration>
<Description>%parameter.StrategieEnum.description</Description>
</Parameter>

Please Log in or Create an account to join the conversation.

4 weeks 2 days ago #6331 by joset
It was solved

Looking at the JavaDesigner source code helped find the missing code :-)

github.com/ModelioOpenSource/ExtensionsF.../master/JavaDesigner

Please Log in or Create an account to join the conversation.

Moderators: andy
Time to create page: 0.034 seconds
^ Back to Top