<html>
<head>
<style>
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 10pt;
font-family:Verdana
}
</style>
</head>
<body class='hmmessage'>
Hi,<br><br>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?<br><br>query = ComplexQuery(Query(property_area='5000.00'),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; Query(portal_type = 'Property'),<br>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; operator="AND"))<br><br>propertyList = context.portal_catalog(query=query)<br><br>Also when i do it on 'title' field it worked as expected.<br><br>I also define a property sheet for Property type which have corresponding property named 'property_area'.<br><br>Regards<br>Danny<br><br /><hr />See all the ways you can stay connected <a href='http://www.microsoft.com/windows/windowslive/default.aspx' target='_new'>to friends and family</a></body>
</html>