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
KAUSIK ERANKIKAUSIK ERANKI 

I have a pop up window that which has to be closed automatically on a button click

When the status is changed and ASA the user click on Save I want this pop up window to be closed automatically.
And this is a Vf page which is holding a lightning component.

Here you go, This is my Vf page, Please check this out and let me know if you need more details from my end.

<apex:page standardController="ServiceResource" >
    <apex:includeLightning />
    <div id="LcDisplayId" class="slds-modal__container"></div> 
 <script>
    // Here 'c:RR_SRStatusChange' Is Lightning Application Name
    $Lightning.use("c:RR_SRStatusChange", function() {
      /* 'LcForVf' is Lightning Component Name which we are Displaying In Vf Page 
       * syntax for create lightning component dynamically :
       * $Lightning.createComponent(String type, Object attributes, String locator, function callback) */
    $Lightning.createComponent("c:RR_SRStatusChangeComp",
    { 
        "recordId" : "{!$CurrentPage.parameters.id}"
    },
   "LcDisplayId",
    function(component) {
        
    });
 });
 </script>
</apex:page>