Saved advanced search with custom list property
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-08-2007 05:18 PM
Hi,
I have a problem with my saved advanced search.
I made an advanced search on a custom type which have a list property (it's a 'status' property with a constraint listing his different values : 'draft', 'active', 'refused', 'old').
I select the value 'refused' for example, execute the search and save it. If I look at the advanced search object, I see that Alfresco had correctly saved the search (the lucene request is ok). But if I reload the advanced search page and select my saved search , the value 'refused' isn't any more selected (before loading my saved search, I have selected the 'draft' value in order to really see the change)…
Someone can reproduce this ? (I'm using Alfresco 2.1)
I have a problem with my saved advanced search.
I made an advanced search on a custom type which have a list property (it's a 'status' property with a constraint listing his different values : 'draft', 'active', 'refused', 'old').
I select the value 'refused' for example, execute the search and save it. If I look at the advanced search object, I see that Alfresco had correctly saved the search (the lucene request is ok). But if I reload the advanced search page and select my saved search , the value 'refused' isn't any more selected (before loading my saved search, I have selected the 'draft' value in order to really see the change)…
Someone can reproduce this ? (I'm using Alfresco 2.1)
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-15-2007 08:22 AM
Same with me on 2.1.
I have 4 additional properties:
* One is a d:text named ged:accountNumber
* Three others are d:text with list constraints: ged:documentType, ged:rectoVerso, ged:accountStatus
The generated XML file, when searching on these four additional properties:
<search>
<text></text>
<mode>0</mode>
<categories/>
<content-type>{http://www.alfresco.org/model/content/1.0}content</content-type>
<folder-type>{http://www.alfresco.org/model/content/1.0}folder</folder-type>
<attributes>
<attribute name="ged:accountNumber">12345R6</attribute>
</attributes>
<ranges/>
<fixed-values>
<value name="ged:documentType">OUV - Ouverture de compte</value>
<value name="ged:rectoVerso">Verso</value>
<value name="ged:accountStatus">Compte Actif</value>
</fixed-values>
<query>
+@\{ged\}accountNumber:12345R6 +@\{ged\}documentType:"OUV - Ouverture de compte" +@\{ged\}rectoVerso:"Verso" +@\{ged\}accountStatus:"Compte Actif" AND (( TYPE:"{http://www.alfresco.org/model/content/1.0}content" OR TYPE:"{http://www.alfresco.org/model/content/1.0}folder" ))
</query>
</search>
The search works fine, but when I save and reload it, only the field named ged:accountNumber is filled in.
Thanks,
– Jerome
I have 4 additional properties:
* One is a d:text named ged:accountNumber
* Three others are d:text with list constraints: ged:documentType, ged:rectoVerso, ged:accountStatus
The generated XML file, when searching on these four additional properties:
<search>
<text></text>
<mode>0</mode>
<categories/>
<content-type>{http://www.alfresco.org/model/content/1.0}content</content-type>
<folder-type>{http://www.alfresco.org/model/content/1.0}folder</folder-type>
<attributes>
<attribute name="ged:accountNumber">12345R6</attribute>
</attributes>
<ranges/>
<fixed-values>
<value name="ged:documentType">OUV - Ouverture de compte</value>
<value name="ged:rectoVerso">Verso</value>
<value name="ged:accountStatus">Compte Actif</value>
</fixed-values>
<query>
+@\{ged\}accountNumber:12345R6 +@\{ged\}documentType:"OUV - Ouverture de compte" +@\{ged\}rectoVerso:"Verso" +@\{ged\}accountStatus:"Compte Actif" AND (( TYPE:"{http://www.alfresco.org/model/content/1.0}content" OR TYPE:"{http://www.alfresco.org/model/content/1.0}folder" ))
</query>
</search>
The search works fine, but when I save and reload it, only the field named ged:accountNumber is filled in.
Thanks,
– Jerome
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-20-2007 06:52 AM
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-21-2007 03:11 AM
[ALF-JIRA] Created: (AWC-1530) Saved search does not work for custom properties of type d:text with list constraint