You need to sign in to do that
Don't have an account?
d.tejdeep@nicomatic.in
I am trying to create quick action in lightening .In action type ."I am taking custom visualforce page" and update a record .Previously in classic i am using this way :
{!REQUIRESCRIPT("/soap/ajax/34.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/34.0/apex.js")}
var connection = sforce.connection;
var qid="{!Quote__c.Id}";
var quot= new sforce.SObject("Quote__c");
quot.id=qid;
//quot.isEdited__c=false;
quot.isPreviewd__c=true;
quot.Generated__c=false;
sforce.connection.update([quot]);
parent.location.href =parent.location.href;
window.open("/apex/QuotePreview?id={!Quote__c.Id}","_blank");
Just in our ORG we are starting lightening ,So i cant able to see this button in lightening version.
Let me know how to proceed wit this development ?
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_overview.htm
I am aready checking in this site but cant decide how to start.
Why i cant use visualforce page to update a record
I am trying to create quick action in lightening .In action type ."I am taking custom visualforce page" and update a record .Previously in classic i am using this way :
{!REQUIRESCRIPT("/soap/ajax/34.0/connection.js")} {!REQUIRESCRIPT("/soap/ajax/34.0/apex.js")}
var connection = sforce.connection;
var qid="{!Quote__c.Id}";
var quot= new sforce.SObject("Quote__c");
quot.id=qid;
//quot.isEdited__c=false;
quot.isPreviewd__c=true;
quot.Generated__c=false;
sforce.connection.update([quot]);
parent.location.href =parent.location.href;
window.open("/apex/QuotePreview?id={!Quote__c.Id}","_blank");
Just in our ORG we are starting lightening ,So i cant able to see this button in lightening version.
Let me know how to proceed wit this development ?
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_overview.htm
I am aready checking in this site but cant decide how to start.
You need to implement lightning quick action components by implements this force:lightningQuickAction or force:lightningQuickActionWithoutHeader interface.
Please refer this link
https://developer.salesforce.com/docs/atlas.en-us.lightning.meta/lightning/components_using_lex_s1_config_action.htm