Skip to Content
author's profile photo Former Member
Former Member

How to display configuration items as a dropdown list

Hi,

When delivering a repository manager, we need provide a configuration archive (cc.xml and co.xml). For an attribute cc.xml, can we display it as a dropdown list and let user choose the value?

For example, in cc.xml:

<attribute name="Protocol" type="string" default=""/>

I want do display a label "Protocol" before a dropdown list, in which the user can choose from "HTTP" and "HTTPS".

Normally the user can only fill in the blank of the attribute, but I wanna let user choose the value.

Thanks,

Ray

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 05, 2007 at 09:03 AM

    Hi,

    try this:

    <b><attribute name="Protocol" type="enum" values="HTTP,HTTPS" default="HTTP"/></b>

    Hope this helps,

    Romano

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Another question is, using

      <b><attribute name="param_protocol" type="enum" values="HTTP,HTTPS"/></b>

      will show the user a dropdown list with NotSet, HTTP and HTTPS. Is there any other property, so that I can disable NotSet and only show the user HTTP and HTTPS?

      Thanks,

      Ray

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.