look up field yes/no
hi,
i want to filter field Yes/No but i have loading failed .
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$filter=(facturable eq 'Oui')&$orderby=Created asc&$top=20";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby={LookupField}&$filter=(facturable eq 'Oui') and startswith({LookupField}, '" + encodeURIComponent(term) + "')&$top=20";
}
i want to filter field Yes/No but i have loading failed .
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$filter=(facturable eq 'Oui')&$orderby=Created asc&$top=20";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby={LookupField}&$filter=(facturable eq 'Oui') and startswith({LookupField}, '" + encodeURIComponent(term) + "')&$top=20";
}
- Dmitry Kozlov
- Site Admin
- Posts: 1524
- Joined: Thu Jun 07, 2012
Hi,
Please, try this:
Please, try this:
Code: Select all
function (term, page) {
if (!term || term.length == 0) {
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$filter=facturable eq '1'&$orderby=Created desc&$top=10";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby={LookupField}&$filter=facturable eq '1' and startswith({LookupField}, '" + encodeURIComponent(term) + "')&$top=10";
}
-
- Information
-
Who is online
Users browsing this forum: No registered users and 7 guests