Notices


 
 
LinkBack Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #4  
Old 27-Nov-2007, 04:44 AM
Preston Stephenson
NNTP User
 
Posts: n/a
Default Re: how to use custom field

Sorry, the filtering of custom fields was added later.
We just needed a way to convert the custom field name into
an internal number, using the Custom object seemed the
easiest at the time.
Using the filter value always seem more consistent.
Sorry for the confusion.

Preston

>>> On Tuesday, November 27, 2007 at 2:06 AM, leek<angle4781@163.com>

wrote:
> the problem has solved.
> Thanks to your soap trace.
> why the custom value is not set in custom object.
>
> Filter gwFilter = new Filter();
> FilterEntry gwFE = new FilterEntry();
>
> Custom cu = new Custom();
> cu.setField("GWiseConst"); // "GWiseConst" is custom field
> cu.setType(CustomType.String);
>
> gwFE.setValue("10"); // "10" is custom value , and why the value not set


> in custom`s value , like this cu.setValue("10");
> gwFE.setCustom(cu);
> gwFE.setOp(FilterOp.contains);
>
> gwFilter.setElement(gwFE);

Reply With Quote
 

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -6. The time now is 12:27 PM.


© 2007 Novell, Inc. All Rights Reserved.

Search Engine Friendly URLs by vBSEO 3.3.2