noinfopath-refdata

noinfopath refdata module

Usage no npm install needed!

<script type="module">
  import noinfopathRefdata from 'https://cdn.skypack.dev/noinfopath-refdata';
</script>

README

Build Status coverage

noinfopath-refdata

NoInfoPath Reference Data Provider

ITPRReferenceData

Reference lists that populate dropdown boxes on form pages.

_refDataService($q, $timeout, $http, C)

refDataService

Params:

  • service $q - Assynchronus service.
  • service $timeout - Timeout service.
  • service $http - HTTP service.
  • service C - Instance of REGN_ITPR_FORMS_CONST.

Return:

  • object Reference lists that populate dropdown boxes on form pages.

makeResourceUrl(service, listname)

makeResourceUrl

Params:

  • string service - Name of SharePoint REST API.
  • string listname - Name of SharePoint list or library.

Return:

  • string Returns fully qualified URL to the REST API for the list or library specified.

getListItems(listname)

getListItems

Params:

  • service listname - Name of SharePoint list or library.

Return:

  • object Returns all list items.

load()

getAllLists

Return:

  • object Returns all lists.