| | |
| | | if(mso.containsKey('00N10000003OJzc')){ |
| | | controller.getRecord().put('Loaner_received_staff__c',mso.get('00N10000003OJzc')); |
| | | } |
| | | |
| | | |
| | | |
| | | rtTypeId = ApexPages.currentPage().getParameters().get('RecordType'); |
| | | obj.put('OwnerId',UserInfo.getUserId()); |
| | | } |
| | | |
| | | if(mso.containsKey('00N10000003Mp2H')){ |
| | | system.debug('00N10000003Mp2H='+mso.get('00N10000003Mp2H')); |
| | | controller.getRecord().put('Status__c',mso.get('00N10000003Mp2H')); |
| | | } |
| | | |
| | | if(mso.containsKey('00N10000007oQKh')){ |
| | | system.debug('00N10000007oQKh='+mso.get('00N10000007oQKh')); |
| | | controller.getRecord().put('Split_Apply_Reason__c',mso.get('00N10000007oQKh')); |
| | | } |
| | | system.debug('Rental Apply Record Type:'+rtTypeId); |
| | | LayoutDescriberHelper.LayoutWrapper LayoutWrapperValue = LayoutDescriberHelper.describeSectionWithFieldsWrapper(rtTypeId, 'Rental_Apply__c','classic'); |
| | | layoutSections = LayoutWrapperValue.layoutSections; |
| | | layoutSectionsStr = JSON.serialize(layoutSections); //for dynamic add readonly attribute |