Re: D2W newbie question

"Pierre Gilquin" <[email protected]>
Newsgroups gmane.comp.web.webobjects.devel
Message-ID <[email protected]>
It seems that everything works for simple entity but for unherited entity the user restriction is not used. The Sql generated 
contains only where clause for unheritage.
Any workaround ?

Thanks

Pierre
----- Original Message ----- 
From: "Pierre Gilquin" <[email protected]>
To: <[email protected]>
Sent: Tuesday, July 03, 2007 6:37 AM
Subject: D2W newbie question


> Hi all,
> 
> I try a simple thing with D2W and doesnot seem to work :
> On a query page of my entity, I had a simple query on the name (String) using D2WQueryStringOperator but this is not taken into 
> account.
> The select generated by EOF has no clause and the whole table is retrived.
> Am I doing something wrong ?
> Thanks for you help.
> Pierre
> 
> The rule :
> 
> {
>   "class" = "com.webobjects.directtoweb.Rule";
>   "author" = "100";
>   "rhs" = {
>    "class" = "com.webobjects.directtoweb.Assignment";
>    "value" = "Nom Local";
>    "keyPath" = "displayNameForProperty";
>   };
>   "lhs" = {
>    "class" = "com.webobjects.eocontrol.EOAndQualifier";
>    "qualifiers" = (
>     {
>      "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
>      "value" = "query";
>      "selectorName" = "isEqualTo";
>      "key" = "task";
>     },
>     {
>      "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
>      "value" = "SubstanceActive";
>      "selectorName" = "isEqualTo";
>      "key" = "entity.name";
>     },
>     {
>      "class" = "com.webobjects.eocontrol.EOKeyValueQualifier";
>      "value" = "nomLocal";
>      "selectorName" = "isEqualTo";
>      "key" = "propertyKey";
>     }
>    );
>   };
>  }
> 
> 
> _______________________________________________
> WebObjects-dev mailing list
> [email protected]
> http://www.omnigroup.com/mailman/listinfo/webobjects-dev
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.