Отправьте данные объекта JSON в window.open в LWC Salesforce - PullRequest
0 голосов
/ 07 июля 2019

Я пытаюсь отправить нижеприведенный объект JSON в Window.Open, но когда я пытаюсь получить его, я получаю

"[объект объекта]"

@track InputValues = {
    strName: "test",
    strAddress: "test",
    strCountry: "test",
    strCode: "1",
    strNumber: "1"
  };



 window.open("/c/testApp.app?recordId="+this.recordId +"&getallinputs="+this.InputValues,'_blank');

Aura testApp

<aura:application extends="force:slds" access="GLOBAL" implements="force:appHostable,force:hasRecordId">
    <aura:attribute name="recordId" type="String" default="123"/>
     <aura:attribute name="getallinputs" type="String"/>
    <aura:handler name="init" value="{!this}" action="{!c.doInit}"/>
    <c:test recordId="{!v.recordId}" jsonDetails="{!v.getallinputs}"/>
</aura:application>

На конце получения LWC -

renderedCallback() {
    this.dataJson = JSON.stringify(this.InputValues);
  }
...