콘텐츠로 건너뛰기
메뉴
커뮤니티에 참여하려면 회원 가입을 하시기 바랍니다.
신고된 질문입니다
1 회신
3742 화면

Hi, new user here.  Using C# and CookComputing XmlRpc library.  

We have 2 fields that I'm attempting to search against - "ref" (display name 'Contact Reference') and "x_profileId" (custom integer field).

I can see that both fields have a value.  However, when I perform the search for the specific values assigned to those fields, I get no Ids back.

If I do a search against "is_company" field, I can get Ids back so I don't believe it's an issue with either the CookComputing library or my implementation of that.  It seems more like I'm not writing the search query correctly.

Here is some of my code that shows how I'm building the filter:

var fields = new string[0]; 
var filter = new List<object>();
var filterArgs = new List<Object>();

filterArgs.Add("x_profileid");
filterArgs.Add("=");
filterArgs.Add(67929);
filter.Add(filterArgs.ToArray());

var searchResultIds = _odooCrud.Search(_dbName, _userid, _password, "res.partner", "search", filter.ToArray());


When searching against the ref field I use a similar filter:

filterArgs.Add("ref");
filterArgs.Add("=");
filterArgs.Add("67929");


I'm using a string when searching against the "ref" field since it's a char field, and I'm using an integer in my filter when searching against the "x_profileid" field since it's an integer field so I don't believe it's a "type" issue.


Any help would be appreciated.  Thanks in advance.

-Bruce 




아바타
취소
작성자 베스트 답변

Looks like we found the answer.  Since we're new to this, we had pushed in some customers via that web service api where Active was not set to true.  It looks like we are getting the correct results for entities that are Active = true.

아바타
취소