提取记录或记录元数据时出错[预期对象]

时间:2019-01-23 18:54:20

标签: microsoft-edge lightning

很抱歉在获取记录或记录元数据时出现中断错误[期望对象]

仅在IE Edge中

这是我的组件

        <force:recordData aura:id="caseRecord"
                recordId="{!v.Case.Id}"/>

        <aura:if isTrue="{!v.isFieldLoaded}"> 
     <lightning:recordViewForm recordId="{!v.Case.Id}" objectApiName="{!v.namespace+'State__c'}">
         <aura:iteration items="{!v.caseDetailFields}" var="key">
          <div class="customOutputFieldSection">   
         <lightning:outputField fieldName="{!key}"/>
        </div>




    //    This is my Controller 

        getFields : function(component, event) {
        var nameSpace  = component.get("v.namespace");
        try{
        var action = component.get("c.getFields");
        action.setCallback(this, function(response) {
        var state = response.getState();
        if (state === "SUCCESS") {
        component.set("v.showSpinner",false);
        component.set("v.caseDetailFields",response.getReturnValue());
        component.set("v.isFieldLoaded",true);
        }







           The above code is working fine on all other browser but the same code is not working on IEEdge. there I am getting an error in fetching record or record metadata [object expected]

为此提供一些解决方案或解决方法。

0 个答案:

没有答案