tlkenergy / sim-tlk

Roadmap and Issues for sim.TLK cloud based system simulation
2 stars 1 forks source link

Not able to save a model - More than 10 ENUM selections? #44

Open Walshest opened 11 months ago

Walshest commented 11 months ago

I have an model where I am not able to save the model when I add in an ENUM parameter:

image

This ENUM has the option of 21 different values and I think this is causing the issue:

image
mateokurti commented 11 months ago

It seems like a bug with the declaredType property which comes from the FMU. We will work to add validations and filters for it. Meanwhile, you can add this property by directly editing the JSON configuration. I can also help you with that.

Walshest commented 11 months ago

Thanks, I will try a workaround in Django.

For future the structure of the ENUMs in the XML are:

image

For us it would be a lot more benifitial if you take the value and use the descriptionas the label. Currently the nameis read as the label.

`

` Thanks a million. Let me know if you have any questions. I may reach out to you shortly regarding support for SVG in a model example.