Is it possible to make a string parameter non-editable on some circumstances?

Here is example: I have a database server and application as components in installer.

Database component is optional one and provides page with configuration parameters where listening port can be specified. Application on the other hand is mandatory and provides configuration page as well where database connection can be specified (like port parameter).

So if user installs application only port parameter on its configuration page must be provided so it has to be editable. But if user installs database as well then the port parameter of application could be disabled and made non-editiable with value copied from database configuration.

How could I achieve this?

This question is marked "community wiki".

asked 08 Aug '13, 08:07

mchmielarz's gravatar image

mchmielarz
11333
accept rate: 0%

edited 08 Aug '13, 08:24


It is not possible to set it to be read-only. You could either hide it (setting is <ask> property to 0) or include a read-only version using a labelParameter:

<parameterGroup>
    <name>port_parameter_group</name>
    <parameterList>
        <labelParameter>
            <name>read_only_port</name>
            <description>8080</description>
            <ruleList>
                <componentTest>
                    <logic>selected</logic>
                    <name>server</name>
                </componentTest>
            </ruleList>
        </labelParameter>
        <stringParameter>
            <name>port</name>
            <ruleList>
                <componentTest>
                    <logic>not_selected</logic>
                    <name>server</name>
                </componentTest>
            </ruleList>
        </stringParameter>
    </parameterList>
</parameterGroup>
link

answered 08 Aug '13, 09:50

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Thanks, for such quick answer! :)

(08 Aug '13, 09:53) mchmielarz
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×47
×3

Asked: 08 Aug '13, 08:07

Seen: 941 times

Last updated: 08 Aug '13, 09:53