Hi all,
I have another problem:
If I add the filter in the request. GW (Version 7.0.3, and it doesn't update anymore) return the error message: "The operation has timed out".
When I don't use the filter in the request, it can successfully response the result to me.
This is the coding of the filter:
or use filter group:
They are all unavailable.
Am I missing something or step?
Or what I need to do?
Thank you very much.
Jimmy
I have another problem:
If I add the filter in the request. GW (Version 7.0.3, and it doesn't update anymore) return the error message: "The operation has timed out".
When I don't use the filter in the request, it can successfully response the result to me.
This is the coding of the filter:
Code:
WebReference.getItemsRequest req = new WebReference.getItemsRequest();
WebReference.Filter gwFilter = new WebReference.Filter();
WebReference.FilterEntry gwFE = new WebReference.FilterEntry();
gwFE.op = WebReference.FilterOp.eq;
gwFE.field = "subject";
gwFE.value = "subject value";
gwFilter.element = gwFE;
req.container = container.ID;
req.filter = gwFilter;
Code:
WebReference.getItemsRequest req = new WebReference.getItemsRequest();
WebReference.Filter gwFilter = new WebReference.Filter();
WebReference.FilterGroup gwFG = new WebReference.FilterGroup();
WebReference.FilterEntry[] gwFE = new WebReference.FilterEntry[2];
gwFE[0] = new WebReference.FilterEntry();
gwFE[0].field = "created";
gwFE[0].value = "2006-07-01T00:00:00Z";
gwFE[0].op = WebReference.FilterOp.gte;
gwFE[1] = new WebReference.FilterEntry();
gwFE[1].field = "created";
gwFE[1].value = "2006-07-31T23:59:59Z";
gwFE[1].op = WebReference.FilterOp.lte;
gwFG.op = WebReference.FilterOp.and;
gwFG.element = gwFE;
gwFilter.element = gwFG;
req.container = container.ID;
req.filter = gwFilter;
Am I missing something or step?
Or what I need to do?
Thank you very much.
Jimmy