[OGo-Developer] adding search save and create tab to document search in projects
Helge Hess
developer@opengroupware.org
Fri, 14 Sep 2007 11:40:18 +0200
On 14.09.2007, at 08:56, Sebastian Reitenbach wrote:
> I want to save searches for documents in projects. I took a quick
> look how it is done for contacts/companies. It just generates and
> uses user defaults like this:
> qualifier = "keywords like 'Friends*'";
^^ I think this is the EOQualifier which is actually used for searching.
> searchFields = {
> companyValueValue = "";
> keywords = Friends;
^^ and I think this is used if the user edits a search to prefill the
form.
> I thought it would be easiest for the projects to do sth. like this:
> "project_custom_qualifiers" = {
> <project_id> = {
> Friends = {
> maxSearchCount = 100;
> qualifier = "extension like '*odt'";
> searchFields = {
> documentValueValue = "";
> keywords = extension;
> };
Looks fine.
> I think this would only work for database based projects, but this
> is fine for me.
I think this should also work for filesystem projects. You just can't
have extended attributes.
> sounds this like a good idea, any other idea?
Yup, sounds nice.
Greets,
Helge
--
Helge Hess
http://www.helgehess.eu/