Hi Team,
I have added a button to create child custom section record from an opportunity. After saving the child record it is navigating back to Opportunity but I want to Stay back in the child since I have to do other actions in the child. Below is the button code. Please suggest if you have any idea on how to achieve my goal.
Thanks,
Venkat.
Button Code:
================================
methods: {
onNewQuoteClick: function() {
var now = new Date();
now.setMonth(now.getMonth() + 1);
this.openCardInChain({
schemaName: "UsrChildPage",
operation: Terrasoft.ConfigurationEnums.CardOperation.ADD,
moduleId: this.sandbox.id + "_CardModule",
defaultValues: [{
name: ["UsrOppLookup"],
value: [this.get("Id")]
},
{
name: ["UsrName"],
value: ["Child For " + this.get("Title")]
},
{
name: ["UsrAccount"],
value: [this.get("UsrQuoteAccount").value]
},
{
name: ["UsrExpiredate"],
value: [now]
}
]
});
this.save({ isSilent: true });
}
}