You need to sign in to do that
Don't have an account?
kishna 15
How to close lightning global action modal dialog
I have created one visual force page and calling in global action. while clicking global action button I am getting a model dialog box. How to close this popup window automatically in visualforce page
Thanks............
Thanks............
Refer this link
https://developer.salesforce.com/docs/atlas.en-us.salesforce1.meta/salesforce1/vf_custom_action_about_the_code.htm
<apex:pageBlock >
<apex:pageBlockTable value="{!contacts}" var="con">
<apex:column value="{!con.id}"/>
<apex:column value="{!con.firstname}"/>
<apex:column value="{!con.lastname}"/>
<apex:column value="{!con.phone}"/>
</apex:pageBlockTable>
</apex:pageBlock>
<script>
// Success - close the publisher and refresh the feed
Sfdc.canvas.publisher.publish({name: "publisher.close",
payload:{ refresh:"true"}});
</script>
</apex:page>
This is my controller class we are passing contact records to vf page and calling vf through global action.
public class contactQuery {
public list<Contact> contacts{get;set;}
public void fcontactQuery(){
id accid=ApexPages.currentPage().getParameters().get('id');
contacts=[select id,firstname,lastname,phone from contact where accountid=:accid];
}
}
Thanks.............