[openstack-dev] [horizon] ListField in Horizon

Janki Chhatbar jankihc91 at gmail.com
Mon Sep 19 17:13:12 UTC 2016


Hi Timur

Thanks for your response.

I need to input data like this:

mapping = ['K1': 'v1', 'k2': 'v2']
If mapping:
    Check if v1 and v2 stored in server.
    Change to dictionary

This is then passed on to the server as a dictionary.

I have few questions:
1. I found about MultipleChoiceField. This seems to do the job. Though not
sure.
2. Can a Dropdown list be created to select v1 and v2?

Looking forward for your opinion.

Thanks
Janki

On 19-Sep-2016 10:30 pm, "Timur Sufiev" <tsufiev at mirantis.com> wrote:

> Hi, Janki
>
> What do you mean by ListField? A list of arbitrary tags? List of numbers?
> List of predefined values that you can choose from? Options may vary widely
> depending on your particular needs.
>
> On Sun, Sep 18, 2016 at 6:32 PM Janki Chhatbar <jankihc91 at gmail.com>
> wrote:
>
>> Hi
>>
>> I am working on a dashboard's panel that needs an input as a "list". I
>> couldnot find any "ListField" (like CharFiled) in Horizon forms.
>>
>> Is there any other field type that takes input as a list or this needs to
>> be developed?
>>
>> Any pointer would be appreciated.
>>
>> --
>> Thanking you
>>
>> Janki Chhatbar
>> OpenStack | Docker | SDN
>> simplyexplainedblog.wordpress.com
>> ____________________________________________________________
>> ______________
>> OpenStack Development Mailing List (not for usage questions)
>> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:
>> unsubscribe
>> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>>
>
> __________________________________________________________________________
> OpenStack Development Mailing List (not for usage questions)
> Unsubscribe: OpenStack-dev-request at lists.openstack.org?subject:unsubscribe
> http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openstack.org/pipermail/openstack-dev/attachments/20160919/3b2e35b4/attachment.html>


More information about the OpenStack-dev mailing list