[OGo-Developer] adding search save and create tab to document search in projects
Sebastian Reitenbach
developer@opengroupware.org
Fri, 14 Sep 2007 12:45:32 +0200
developer@opengroupware.org wrote:
> 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.
ah, good to know.
>
> > 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.
thats good too.
>
> > sounds this like a good idea, any other idea?
>
> Yup, sounds nice.
fine, then I'll take a look at it on the weekend, will see how far I get.
thanks
Sebastian