• Ankit Saxena
  • NEWBIE
  • 10 Points
  • Member since 2013
  • Private

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 4
    Questions
  • 4
    Replies
Guys,

Currently lightning:recordForm doesn't show correct label for related fields. e.g if we try to render 'Case Owner' & 'Account Name' in record form for case object, we have to pass 'OwnerID' & 'AccountID' in list of fields. It renders field labels as 'OwnerId'. How to get this correct. Also how can i get other account fields on case, like account.address etc...

Thanks
Hello...
I have written up my console statment in javascript controller as 
                console.log('return' +response.getReturnValue());
1. Not sure, if this is correct or not. If not, then what is the correct step. ?
2. Its giving log as below where i cant see 'return' text in not present in the log though it return the 5 records i am expecting. Am i missing something?
User-added image
Where am i missing, please help ?

 public static ReturnTypeClass prepareReqWrapper(ReturnTypeClass reqWrap){      
        
        ReturnTypeClass reqWrapperNew = new ReturnTypeClass();

        system.debug('reqWrap'+reqWrap);        
        try{            
            ReturnTypeClass.AR_INV_INBND_STG_ROW objInputIns = reqWrap.DataArea.AR_INV_INBND_STG_ROW != null ? reqWrap.DataArea.AR_INV_INBND_STG_ROW : new ReturnTypeClass.AR_INV_INBND_STG_ROW();
            
            reqWrapperNew.DataArea.AR_INV_INBND_STG_ROW.AMOUNT = objInputIns.AMOUNT != null ? objInputIns.AMOUNT : '0';
            }
            catch(Exception e){
            
            }
            return reqWrapperNew;
            
            
My 'ReturnTypeClass' is - 

global class ReturnTypeClass {

    public class DataArea {
        public AR_INV_INBND_STG_ROW AR_INV_INBND_STG_ROW;
    }

    public class AR_INV_INBND_STG_ROW {
        public String AMOUNT;
    }
}
           
Hello...
I have written up my console statment in javascript controller as 
                console.log('return' +response.getReturnValue());
1. Not sure, if this is correct or not. If not, then what is the correct step. ?
2. Its giving log as below where i cant see 'return' text in not present in the log though it return the 5 records i am expecting. Am i missing something?
User-added image
Where am i missing, please help ?

 public static ReturnTypeClass prepareReqWrapper(ReturnTypeClass reqWrap){      
        
        ReturnTypeClass reqWrapperNew = new ReturnTypeClass();

        system.debug('reqWrap'+reqWrap);        
        try{            
            ReturnTypeClass.AR_INV_INBND_STG_ROW objInputIns = reqWrap.DataArea.AR_INV_INBND_STG_ROW != null ? reqWrap.DataArea.AR_INV_INBND_STG_ROW : new ReturnTypeClass.AR_INV_INBND_STG_ROW();
            
            reqWrapperNew.DataArea.AR_INV_INBND_STG_ROW.AMOUNT = objInputIns.AMOUNT != null ? objInputIns.AMOUNT : '0';
            }
            catch(Exception e){
            
            }
            return reqWrapperNew;
            
            
My 'ReturnTypeClass' is - 

global class ReturnTypeClass {

    public class DataArea {
        public AR_INV_INBND_STG_ROW AR_INV_INBND_STG_ROW;
    }

    public class AR_INV_INBND_STG_ROW {
        public String AMOUNT;
    }
}