Hi there, when I post an array to a XData Server with TXDataWebClient, I find that only the first value in the array can be recieved.The code like below:
Server:
function TMyScoreService.GetGradeByStudentName(
AStudentName: array of variant): TList<Tzhixue_score_summary_view>;
begin
Result:=TXDataOperationContext.Current.GetManager
.Find<Tzhixue_score_summary_view>
.Where(TLinq['studentName']._In(AStudentName))
.List;
end;
My purpose is post an array of string to server and return records witch the value of the field 'studentName' is in the array.
The value of 'AStudentName' on client is ['a','b'] but it is 'a' on server, so I can not get the right return.Can anybody tell me what's wrony with it ??