Re: [openstack-dev] [horizon] ListField in Horizon

2016-09-19 Thread Timur Sufiev
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  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-requ...@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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


Re: [openstack-dev] [horizon] ListField in Horizon

2016-09-19 Thread Janki Chhatbar
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"  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 
> 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-requ...@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-requ...@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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev


[openstack-dev] [horizon] ListField in Horizon

2016-09-18 Thread Janki Chhatbar
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-requ...@lists.openstack.org?subject:unsubscribe
http://lists.openstack.org/cgi-bin/mailman/listinfo/openstack-dev