returning a numeric value bases on person
Hi - Happy New Year
I've got a simple question (for you guys )
I want to add a cross site look up that is based on a user and due to me being "out of Action" for sometime have forgotten everything I've previously learnt
The Source link is a field called "Name"
The returning field link is "Requester"
function (term, page) {
if (!term || term.length == 0) {
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby=Created desc&$top=10";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby={LookupField}&$filter=Name eq 'Requester', '" + encodeURIComponent(term) + "')&$top=10";
}
I've got a simple question (for you guys )
I want to add a cross site look up that is based on a user and due to me being "out of Action" for sometime have forgotten everything I've previously learnt
The Source link is a field called "Name"
The returning field link is "Requester"
function (term, page) {
if (!term || term.length == 0) {
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby=Created desc&$top=10";
}
return "{WebUrl}/_api/web/lists('{ListId}')/items?$select=Id,{LookupField}&$orderby={LookupField}&$filter=Name eq 'Requester', '" + encodeURIComponent(term) + "')&$top=10";
}
- Attachments
-
- Untitled.png (25.13 KiB) Viewed 11560 times
-
- Information
-
Who is online
Users browsing this forum: No registered users and 14 guests