[Erp5-dev] Base_viewFieldLibrary question

bartek bartek at erp5.pl
Mon Mar 3 15:51:01 CET 2008


Tomasz Brzezina wrote:
> bartek pisze:
>>
>> This is normal :)
>>
>> If you want to test a form, do it in some "real" context, appropriate 
>> for the form.
> (in real context it won't work neither)

Ok, try this:

- in "custom" skin, create an ERP5 Form, name it "Person_test"

- in the form, add a ProxyField, give it an id "my_gender"

- in the field configuraion set "Form ID" to Base_viewFieldLibrary and 
"Field ID" to my_category

- view Person_test in context of a Person object (to make it work for 
real you have to add some categories to portal_categories/gender base 
category)

- edit Person_view.my_gender field so that Field ID is my_category_list

- see what has changed

B.

> 
> 
> ------------------------------------------------------------------------
> 
> _______________________________________________
> Erp5-dev mailing list
> Erp5-dev at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-dev


-- 
"feelings affect productivity. (...) unhappy people write worse 
software, and less of it."
Karl Fogel, "Producing Open Source Software"



More information about the Erp5-dev mailing list