[Erp5-users] Help in searching
Bartek Gorny
bartek at gorny.edu.pl
Fri Jan 23 22:20:58 CET 2009
2009/1/23 Danny Admin <dannywork1 at hotmail.com>:
> Hi,
>
> I have a type named 'Property' which have a field property_area (in its form
> i defined it as my_property_area). Now when i search on it with the
> following script I got all the objects of Property instead of the
> property_area condition. Can anyone help how can i do it?
Read this:
http://www.erp5.org/HowToAddTableToCatalog
B.
> query = ComplexQuery(Query(property_area='5000.00'),
> Query(portal_type = 'Property'),
> operator="AND"))
>
> propertyList = context.portal_catalog(query=query)
>
> Also when i do it on 'title' field it worked as expected.
>
> I also define a property sheet for Property type which have corresponding
> property named 'property_area'.
>
> Regards
> Danny
>
> ________________________________
> See all the ways you can stay connected to friends and family
> _______________________________________________
> Erp5-users mailing list
> Erp5-users at erp5.org
> http://mail.nexedi.com/mailman/listinfo/erp5-users
>
>
--
"Software is largely a service industry operating under the persistent
but unfounded delusion that it is a manufacturing industry."
Eric S.Raymond, "The Magic Cauldron"
More information about the Erp5-users
mailing list