Skip to content

Disable showing parameters in the dialog #2211

Open
@modelica-trac-importer

Description

@modelica-trac-importer

Modified by beutlich on 23 Mar 2018 09:24 UTC
Sometimes users want to disable showing a public parameter from the dialog window because the parameter is hard to use, but keep it possible to modify it using the textual layer for models extending from the model.

Current ways to disable showing a parameter in the dialog pop-up:

  1. Make the modifier final (but then you can't modify it in textual layer)
  2. Make the component protected (but then you can't modify it in textual layer)
  3. Set enable=false (still shows it, but cannot be modified)
  4. Make the component constant (removes it, but causes problems when you have array sizes which are parameters since you cannot easily mix parameters with constants)

What seems to be missing is simply hide=true in the annotation (or giving special meaning for tab=""), to not show the component in the Dialog pop-up.

Buildings/IBPSA used the approach to make the component constant, but then models only work in tools which help the type-checking by evaluating certain parameter expressions and treating them as constant (or something similar).


Reported by sjoelund.se on 21 Oct 2017 05:10 UTC
Sometimes users want to disable showing a public parameter from the dialog window because the parameter is hard to use, but keep it possible to modify it using the textual layer for models extending from the model.

Current ways to disable showing a parameter in the dialog pop-up:

  1. Make the modifier final (but then you can't modify it in textual layer)
  2. Make the component protected (but then you can't modify it in textual layer)
  3. Set enabled=false (still shows it, but cannot be modified)
  4. Make the component constant (removes it, but causes problems when you have array sizes which are parameters since you cannot easily mix parameters with constants)

What seems to be missing is simply hide=true in the annotation (or giving special meaning for tab=""), to not show the component in the Dialog pop-up.

Buildings/IBPSA used the approach to make the component constant, but then models only work in tools which help the type-checking by evaluating certain parameter expressions and treating them as constant (or something similar).


Migrated-From: https://trac.modelica.org/Modelica/ticket/2211

Metadata

Metadata

Assignees

Labels

MCPGeneric MCP label (prefer specific MCP label for grouping of issues belonging to the same MCP)enhancementNew feature or request

Type

No type

Projects

No projects

Relationships

None yet

Development

No branches or pull requests

Issue actions