Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- var requestIOBInfo1 = siteUrl + "/_api/web/Lists/getByTitle('IOB')/Items?$
- filter=((Division eq '" + iDivision + "') and (AccountStatus eq 'Active') and (startswith(Email, 'a') or startswith(Email, 'b') or startswith(Email, 'c')
- or startswith(Email, 'd') or startswith(Email, 'e') or startswith(Email, 'f')or startswith(Email, 'g')or startswith(Email, 'h')or startswith(Email, 'i')))&
- $select=Id, Title, InOut, TodaySchedule";
- var ajaxIOB1 = $.ajax({
- url: requestIOBInfo1,
- type: "GET",
- dataType: "json",
- headers: { "accept": "application/json;odata=verbose" },
- success: successAI,
- error: myErrHandler
- });
- function successAI(data) {
- try {
- var dataTableExample = $('#tableAI').DataTable();
- if (dataTableExample != 'undefined') {
- dataTableExample.destroy();
- }
- dataTableExample = $('#tableAI').DataTable({
- srollY: 300,
- "aaData": data.d.results,
- "aoColumns": [
- { "mData": "Title" },
- { "mData": "InOut" },
- { "mData": "TodaySchedule" }
- ],
- });
- } catch (e) {
- alert(e.message); }
Add Comment
Please, Sign In to add comment