Question

How to get Account value From Opportunity section to other Section?

Hi,

I created one Account filed in Opportunity Section  and I want to transfer that Account Filed to other section(QUOTE SECTION) Page whenever i try to create a new quote through opportunity page.

 

but i unable to get that value using below code.

 

methods: {

    onNewQuoteClick: function() {

     var now = new Date();

     now.setMonth(now.getMonth() + 1);

     this.openCardInChain({

      schemaName: "UsrQuote1Page",

      operation: Terrasoft.ConfigurationEnums.CardOperation.ADD,

      moduleId: this.sandbox.id + "_CardModule",

      defaultValues: [{

       name: ["UsrOppLookup"],

       value: [this.get("Id")]

      },

      {

       name: ["UsrName"],

       value: ["Quote For " + this.get("Title")]

      },

      {

       name: ["UsrExpiredate"],

       value: [now]

      },

      {

       name: ["UsrAccount"],

       value: [this.get("Account")]

      }]


     });

    }

   }

  };

});

 

 

 

 

 

 

Like 0

Like

2 comments

You need to transfer the account Id instead of the account object. Something like value: [this.get("Account").value]. But don't forget to prevent the situation when account will be undefined or null.

Thanks a lot Eugene.

 

Show all comments