SHARE
TWEET

Untitled

a guest Jun 24th, 2019 57 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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":{}}
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top