Limit users by a non-empty customfield

Hello,

I have got a user customfield called MyComment and I want to filter all
users where this customfield is not empty. In my case, it is of
freefrom type. The function LimitToCustomField does not work properly if
I use

$User->LimiToCostumField(“FIELD” => “MyComment”,
“OPERATOR” => “!=”,
“VALUE” => “”);

Has anybody got a hint?

Greetings,

Wolfram

Hello,

I have got a user customfield called MyComment and I want to filter all users where this
customfield is not empty. In my case, it is of freefrom type. The function LimitToCustomField
does not work properly if I use

$User->LimiToCostumField(“FIELD” => “MyComment”,
“OPERATOR” => “!=”,
“VALUE” => “”);

I assume you meant LimitCustomField, and that doesn’t take a FIELD
argument

-kevin

Kevin Falcone wrote:> On Mon, Jun 28, 2010 at 12:05:13PM +0200, Wolfram Huettermann wrote:

Hello,

I have got a user customfield called MyComment and I want to filter all users where this
customfield is not empty. In my case, it is of freefrom type. The function LimitToCustomField
does not work properly if I use

$User->LimiToCostumField(“FIELD” => “MyComment”,
“OPERATOR” => “!=”,
“VALUE” => “”);

I assume you meant LimitCustomField, and that doesn’t take a FIELD
argument

-kevin


Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com
Yes, you are totally right.

But even this code:

$User->LimiToCostumField(“CUSTOMFIELD” => “MyComment”,
“OPERATOR” => “!=”,
“VALUE” => “”);

does not work.

Greetings,

Wolfram

Kevin Falcone wrote:

Hello,

I have got a user customfield called MyComment and I want to filter all users where this
customfield is not empty. In my case, it is of freefrom type. The function LimitToCustomField
does not work properly if I use

$User->LimiToCostumField(“FIELD” => “MyComment”,
“OPERATOR” => “!=”,
“VALUE” => “”);

I assume you meant LimitCustomField, and that doesn’t take a FIELD
argument

Yes, you are totally right.

But even this code:

$User->LimiToCostumField(“CUSTOMFIELD” => “MyComment”,
“OPERATOR” => “!=”,
“VALUE” => “”);

You’re still using the wrong method name. There is no method
LimitToCustomField on Users objects.

-kevin