Hi,
Say I have build a CustomerFilter and a CustomerList function, to get customers in a given city (from c# via webservices) (se code).
public List<CustomerList_Filter> CustomerFilter(string city)
{
List<CustomerList_Filter> filterListe = new List<CustomerList_Filter>();
CustomerList_Filter filter = new CustomerList_Filter();
filter.Field = CustomerList_Fields.City;
filter.Criteria = "" + city;
filterListe.Add(filter);
return filterListe;
}//CustomerFilter
public CustomerList[] CustomerList(List<CustomerList_Filter> filter)
{
return customerList.ReadMultiple(filter.ToArray(), null, 1000);
}//CustomerList
Anyone who knows how the general sorting is when writing such a code from c# to the NAV Webservice?? If a create a new SQL key with "City", will the webservice then automatically find the index that fits the best, or will it as default take the primarykey??
Is there any way to defines which index/view I would like to use? Searching for city I guess is quite "heavy".
/Marvin
Comments
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.
It would have been great if I was able to define the index from C#.
MVP - Dynamics NAV
My BLOG
NAVERTICA a.s.