For example I have to set the port number to 443 or 80 if a https checkbox is enabled or disabled.

asked 10 Dec '11, 16:03

LazyT's gravatar image

LazyT
1111
accept rate: 0%


It is not possible to dynamically modify values in a page when clicking in a checkbox. As an alternative, you could try using a <choiceParameterGroup> with two options, each of them with a different port:

<choiceParameterGroup>
    <name>protocol</name>
    <title>Protocol</title>
    <description>Protocol</description>
    <value>http</value>
    <parameterList>
        <parameterGroup>
            <name>http</name>
            <explanation>HTTP</explanation>
            <parameterList>
                <stringParameter>
                    <name>httpPort</name>
                    <description>Port</description>
                    <value>80</value>
                </stringParameter>
            </parameterList>
        </parameterGroup>
        <parameterGroup>
            <name>https</name>
            <explanation>HTTPS</explanation>
            <parameterList>
                <stringParameter>
                    <name>httpsPort</name>
                    <description>Port</description>
                    <value>443</value>
                </stringParameter>
            </parameterList>
        </parameterGroup>
    </parameterList>
</choiceParameterGroup>

In the example, both options allow configuring the port but you could use a <labelParameter> to display a read-only version. It also uses parameter groups as options, in case you want to add more settings there but you could also just use the string parameters:

<choiceParameterGroup>
    <name>protocol</name>
    <title>Protocol</title>
    <description>Protocol</description>
    <value>http</value>
    <parameterList>
         <stringParameter>
               <name>httpPort</name>
               <description>HTTP Port</description>
               <value>80</value>
         </stringParameter>
         <stringParameter>
               <name>httpsPort</name>
               <description>HTTPS Port</description>
              <value>443</value>
         </stringParameter>
    </parameterList>
</choiceParameterGroup>

You can find additional information about the usage of the <choiceParameterGroup> here

link

answered 12 Dec '11, 05:37

juanjo's gravatar image

juanjo ♦♦
5.8k413
accept rate: 23%

Thanks, but unfortunately this is not a solution for me.

I can't believe that a 1000$ product lacks of simple features that a freeware tool like InstallJammer offers, that's too bad.

Hope BitRock will implement some kind of event handler in future releases...

(12 Dec '11, 08:19) LazyT

BitRock approach is a declarative one and there are limitations to what event handling can do, in particular for text-based interfaces. This is something we will take a look at some point, but it is not an easy change because of the general architecture of the tool. Juanjo was trying to help by offering an alternate way to do this that works right now. As an aside, I really do not understand that you complain about the price when we provided you with a complimentary license for your free project.

(13 Dec '11, 17:37) ridruejo ♦♦

English is not my native language and so I may have expressed myself unclearly, if so sorry for that!

Of course works Juanjos workaround, but it is not a solution for me because it needs more than the double space in the page as before - maybe I should have said this already in the first post.

I did not complain about the price, I was only wondering that this (for me simple) feature is really not implemented in a professional product - that's all. ;-)

Hope it is clearly now how it was meant and I am very grateful for the free license, thank you...

(14 Dec '11, 11:43) LazyT

Thanks for the clarification, sorry if I misunderstood you.

(14 Dec '11, 16:49) ridruejo ♦♦
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:

×2
×2

Asked: 10 Dec '11, 16:03

Seen: 804 times

Last updated: 14 Dec '11, 16:49