SharePoint / sp-dev-gdpr-activity-hub

GDPR Activity Hub - Open source starter kit for building a management hub for EU GDPR (European Global Data Protection Regulation).
MIT License
96 stars 47 forks source link

Save button doesn't work #56

Closed Szulczewski closed 6 years ago

Szulczewski commented 6 years ago

Hi, I installed solution without any error. I've created pages and put webparts on them. But when try to add any event with those pages the save button doesn't work. I mean that when data is filled in, save button become active, but when I pressed it nothing happen. In browser console I just can see two errors: One with GET GET https://krmglobal.sharepoint.com/sites/GDPR/_api/web/lists('undefined')?$select=ListItemEntityTypeFullName 400 (Bad Request)

  t.fetch @ gdpr-insert-request.…c372a1f374fce4.js:9
  i @ gdpr-insert-request.…372a1f374fce4.js:10
  (anonymous) @ gdpr-insert-request.…372a1f374fce4.js:10
  e.fetchRaw @ gdpr-insert-request.…372a1f374fce4.js:10
  e.fetch @ gdpr-insert-request.…372a1f374fce4.js:10
  (anonymous) @ gdpr-insert-request.…372a1f374fce4.js:10
  e.send @ gdpr-insert-request.…372a1f374fce4.js:10
  r.value @ gdpr-insert-request.…372a1f374fce4.js:10
  i @ gdpr-insert-request.…372a1f374fce4.js:10
  (anonymous) @ gdpr-insert-request.…372a1f374fce4.js:10
  Promise.then (async)    
  r.value @ gdpr-insert-request.…372a1f374fce4.js:10
  i @ gdpr-insert-request.…372a1f374fce4.js:10
  (anonymous) @ gdpr-insert-request.…372a1f374fce4.js:10
  Promise.then (async)    
  r.value @ gdpr-insert-request.…372a1f374fce4.js:10
  i @ gdpr-insert-request.…372a1f374fce4.js:10
  s @ gdpr-insert-request.…372a1f374fce4.js:10
  (anonymous) @ gdpr-insert-request.…372a1f374fce4.js:10
  Promise.then (async)    
  e.getAs @ gdpr-insert-request.…372a1f374fce4.js:10
  t.getListItemEntityTypeFullName @ gdpr-insert-request.…372a1f374fce4.js:11
  t.ensureListItemEntityTypeName @ gdpr-insert-request.…372a1f374fce4.js:11
  t.add @ gdpr-insert-request.…372a1f374fce4.js:11
  (anonymous) @ gdpr-insert-request.…372a1f374fce4.js:14
  Promise.then (async)    
  (anonymous) @ gdpr-insert-request.…372a1f374fce4.js:14
  e.insertNewRequest @ gdpr-insert-request.…372a1f374fce4.js:14
  t._saveClick @ gdpr-insert-request.…372a1f374fce4.js:14
  r @ sp-pages-assembly_en…80aff80b915e.js:325
  a @ sp-pages-assembly_en…80aff80b915e.js:325
  s @ sp-pages-assembly_en…80aff80b915e.js:325
  f @ sp-pages-assembly_en…80aff80b915e.js:325
  m @ sp-pages-assembly_en…80aff80b915e.js:325
  r @ sp-pages-assembly_en…80aff80b915e.js:325
  processEventQueue @ sp-pages-assembly_en…80aff80b915e.js:325
  r @ sp-pages-assembly_en…80aff80b915e.js:339
  handleTopLevel @ sp-pages-assembly_en…80aff80b915e.js:339
  i @ sp-pages-assembly_en…80aff80b915e.js:339
  perform @ sp-pages-assembly_en…80aff80b915e.js:325
  batchedUpdates @ sp-pages-assembly_en…80aff80b915e.js:339
  i @ sp-pages-assembly_en…80aff80b915e.js:325
  dispatchEvent @ sp-pages-assembly_en…80aff80b915e.js:339

And in promise

gdpr-insert-request.bundle_ef51215acb526683cec372a1f374fce4.js:10 Uncaught (in promise) Error: Error making HttpClient request in queryable: [400] Bad Request at new t (gdpr-insert-request.bundle_ef51215acb526683cec372a1f374fce4.js:10) at gdpr-insert-request.bundle_ef51215acb526683cec372a1f374fce4.js:10 at t @ gdpr-insert-request.bundle_ef51215acb526683cec372a1f374fce4.js:10 (anonymous) @ gdpr-insert-request.bundle_ef51215acb526683cec372a1f374fce4.js:10 Promise.then (async) t._saveClick @ gdpr-insert-request.bundle_ef51215acb526683cec372a1f374fce4.js:14 r @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 a @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 s @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 f @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 m @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 r @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 processEventQueue @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 r @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:339 handleTopLevel @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:339 i @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:339 perform @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 batchedUpdates @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:339 i @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:325 dispatchEvent @ sp-pages-assembly_en-us_727a69926161bdf056a980aff80b915e.js:339

Any ideas?

Szulczewski commented 6 years ago

I found the solution. So simple. You have to configure web part and setup to which list web part should send the data