Guest User

Untitled

a guest
Jan 16th, 2018
94
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.09 KB | None | 0 0
  1. var requestIOBInfo1 = siteUrl + "/_api/web/Lists/getByTitle('IOB')/Items?$
  2. filter=((Division eq '" + iDivision + "') and (AccountStatus eq 'Active') and (startswith(Email, 'a') or startswith(Email, 'b') or startswith(Email, 'c')
  3. or startswith(Email, 'd') or startswith(Email, 'e') or startswith(Email, 'f')or startswith(Email, 'g')or startswith(Email, 'h')or startswith(Email, 'i')))&
  4. $select=Id, Title, InOut, TodaySchedule";
  5.  
  6. var ajaxIOB1 = $.ajax({
  7. url: requestIOBInfo1,
  8. type: "GET",
  9. dataType: "json",
  10. headers: { "accept": "application/json;odata=verbose" },
  11. success: successAI,
  12. error: myErrHandler
  13. });
  14.  
  15. function successAI(data) {
  16. try {
  17. var dataTableExample = $('#tableAI').DataTable();
  18. if (dataTableExample != 'undefined') {
  19. dataTableExample.destroy();
  20. }
  21. dataTableExample = $('#tableAI').DataTable({
  22. srollY: 300,
  23. "aaData": data.d.results,
  24. "aoColumns": [
  25. { "mData": "Title" },
  26. { "mData": "InOut" },
  27. { "mData": "TodaySchedule" }
  28. ],
  29. });
  30.  
  31. } catch (e) {
  32. alert(e.message); }
Add Comment
Please, Sign In to add comment