| | |
| | | layoutItem.layoutComponents.add(layoutComponent); |
| | | return dlr; |
| | | } else { |
| | | System.debug('=====1====='+sObjectType); |
| | | System.debug('=====2====='+recordTypeIds); |
| | | System.debug('=====3====='+layoutName); |
| | | return soap.describeLayout(sObjectType, layoutName, recordTypeIds); |
| | | } |
| | | } |
| | |
| | | // Mapには、RecordTypeId(18桁) => {api名 => r,w,wm} |
| | | // 如果Object中设定记录类型,该方法不能取出对应记录类型的项目,修改后方法名:getEditRWByRecordType --下一个方法 |
| | | public static Map<String, Map<String, String>> getEditLayoutItemRW(String sObjectType, String[] recordTypeIds) { |
| | | System.debug('=====1====='+sObjectType); |
| | | System.debug('=====2====='+recordTypeIds); |
| | | PartnerSoapSforceCom.DescribeLayoutResult dlr = describeLayout(sObjectType, null, recordTypeIds); |
| | | System.debug('=====1====='+sObjectType); |
| | | System.debug('=====2=====--------'); |
| | | Map<String, Map<String, String>> rtn = new Map<String, Map<String, String>>(); |
| | | for (Integer lidx = 0; lidx < dlr.layouts.size(); lidx++) { |
| | | String recordTypeId = dlr.recordTypeMappings[lidx].recordTypeId; |