In my data-List I configured multiple groups in properties
when I try to search the exact group with property like IT.Still it is showing all the 3 properties
I tried like this:
PATH:"//app:company_home/st:sites/cm:test//*" AND TYPE:"tst:departmentList" =@tst\:deptName:"IT"
PATH:"//app:company_home/st:sites/cm:test//*" AND TYPE:"tst:departmentList" @tst\:deptName:"IT"
In both cases I got the all 3 values.
Because you have not used an AND before the last condition, you are basically doing an OR query here (unless you have the default operator set to AND).
Now I tried like that but there is no luck
PATH:"//app:company_home/st:sites/cm:test//*" AND TYPE:"tst:departmentList" AND =@tst\:deptName:"IT"
found 0 results for above query.
PATH:"//app:company_home/st:sites/cm:test//*" AND TYPE:"tst:departmentList" AND @tst\:deptName:"IT"
In this case it shows all values starting with IT in that List Result I got for above query is : found 3 results...
But we need to get only one values from there.
Hi
You need to make sure your property is set to support identifier based queries. How is this property defined? You need it to be tokenised "both" or "false" ....... not set to "true".
Andy
I set this property inside the datalist.
I didn't get what your saying for this :You need to make sure your property is set to support identifier based queries
Please can you elaborate it.
Hi
Please post your property definition so we can tell what you have done and suggest the fix.
Andy
Hi Andy,
Please find
<type name="tst:departmentList">
<title>Department Groups List</title>
<description>Department and it's groups</description>
<parent>dl:dataListItem</parent>
<properties>
<property name="tst:deptName">
<title>Department Name</title>
<type>d:text</type>
<mandatory>true</mandatory>
</property>
</properties>
<associations>
<association name="tst:deptGroup" read-only="false">
<title>Department Group</title>
<source>
<mandatory>false</mandatory>
<many>true</many>
</source>
<target>
<class>cm:authorityContainer</class>
<mandatory>true</mandatory>
<many>false</many>
</target>
</association>
</type>
Ask for and offer help to other Alfresco Content Services Users and members of the Alfresco team.
Related links:
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.