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);
|