function readOnly(count){ }
Starting November 20, the site will be set to read-only. On December 4, 2023,
forum discussions will move to the Trailblazer Community.
+ Start a Discussion
d.tejdeep@nicomatic.ind.tejdeep@nicomatic.in 

Why i cant use visualforce page to update a record

User-added image

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.
Raj VakatiRaj Vakati
Hi ,
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