Advertisement
Guest User

Untitled

a guest
Jun 24th, 2019
75
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.91 KB | None | 0 0
  1. public class RecordWrapperClass {
  2. @Auraenabled public List<SObject> objectRecordList1 {get; set;}
  3. @Auraenabled public List<Schema.FieldSetMember> fieldSetMemberList1 {get; set;}
  4. @Auraenabled public Map<Id,String> subjectOfAllegationsMap1 {get; set;}
  5. @Auraenabled public Map<Id,String> personAllegedlyImpactedMap1 {get; set;}
  6.  
  7. }
  8.  
  9. @wire(fetchAllegationDetails, { parentIdToPass: '$recordId', tabnameToPass: 'Allegations', objectNameToPass: 'Allegations__c' })
  10. fetchAllegationDetails(result) {
  11. if (result.data) {
  12. console.log('=====> this.refreshData ' + JSON.stringify(result.data.length));
  13. this.recordSize = result.data.length;
  14. this.allegationRec = result.data;
  15. } else if (result.error) {
  16. console.log('=====> result.error ' + JSON.stringify(result.error));
  17. }
  18. }
  19.  
  20. =====> result.error {"ok":false,"status":400,"statusText":"Bad Request","body":{}}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement