• Kapil Devre
  • NEWBIE
  • 0 Points
  • Member since 2019

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 2
    Questions
  • 1
    Replies
From Salesforce Einstein Analytics we are trying to connect the data through AWS-RDS PostgreSQL .
So, AWS-RDS, is in the client intranet network as well as we have integration in between this two interfaces, i.e. Salesforce and AWS-RDS PostgreSQL .
Scenario  1 : The problem we are facing while connecting the data from salesforce Analytics einstein with AWS-RDS PostgreSQL, we are getting an erro message as below :
"The connection attempt failed.. Error in Job ID connector.cs29-app2-5-ph2.4Q7z5qlJ5ihvyp0fHnkVc" .
So, do we need to do any additional step here to resolve the above error which connecting the data in Einstein Analytics.


Scenario 2 : There was another instance of AWS-RDS PostgreSQL, which was not in the client network and so it is public , where we are successfull in building the connection .

Kindly, request to expalin if there is any of the steps we are missing to connect the data through Salesforce ANalytics.

Thanks,
Kapil
 
I have written a Lightning Component of Modal Popup to show popup in home page of public community website , it will be shown whenever user visits the website. 

My requirement is here is popup window should show only once when the user visits the website for the first time.
But the issue is , whenever the user visits to the website or other sub pages of the site and come back to the home page, again the popup appears. 
In this we want to set the modal popup should be shown only for the first time when the users visit the site , 
as in the popup we are just making sure the user is aware of GDPR rules and regulations .
Once, the user clicks on OK, everytime the GDPR popup should not get open when the user visits the site and home page.

I have refered many Javascript examples but unfortunately I am not able to figure it out , please find my following code and suggest me.

Component :

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
    <aura:attribute name="isModalOpen" type="boolean" default="true"/>
    <div class="slds-m-around_xx-large">
              
        <!--Use aura:if tag to display/hide popup based on isModalOpen value-->  
        <aura:if isTrue="{!v.isModalOpen}">            
            <!-- Modal/Popup Box starts here-->
            <section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open">
                <div class="slds-modal__container">
                    <!-- Modal/Popup Box Header Starts here-->
                    <header class="slds-modal__content slds-p-around_medium">
                        <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate"><b>About Your Privacy</b></h2>
                    </header>
                    <!--Modal/Popup Box Body Starts here-->
                    <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
                        <p>This website uses cookies to improve performance and enhance our visitors’ experience.You may view our privacy policy here.                    
                        </p>
                    </div>
                    <!--Modal/Popup Box Footer Starts here - class="slds-modal__header", class="slds-modal__footer"-->
                    <footer class="slds-modal__content slds-p-around_medium"> 
                          <lightning:button 
                                          label="OK"
                                          title="OK"
                                          onclick="{!c.submitDetails}"/>
                    </footer>
                </div>
            </section>
            <div class="slds-backdrop slds-backdrop_open"></div>
        </aura:if>
    </div>
</aura:component>

Controller :

({
   openModel: function(component, event, helper) {
      // Set isModalOpen attribute to true
      component.set("v.isModalOpen", true);
      
       
   },
  
   closeModel: function(component, event, helper) {
      // Set isModalOpen attribute to false  
      component.set("v.isModalOpen", false);
   },
  
   submitDetails: function(component, event, helper) {
      // Set isModalOpen attribute to false
      //Add your code to call apex method or do some processing
      component.set("v.isModalOpen", false);
   },
})
I have written a Lightning Component of Modal Popup to show popup in home page of public community website , it will be shown whenever user visits the website. 

My requirement is here is popup window should show only once when the user visits the website for the first time.
But the issue is , whenever the user visits to the website or other sub pages of the site and come back to the home page, again the popup appears. 
In this we want to set the modal popup should be shown only for the first time when the users visit the site , 
as in the popup we are just making sure the user is aware of GDPR rules and regulations .
Once, the user clicks on OK, everytime the GDPR popup should not get open when the user visits the site and home page.

I have refered many Javascript examples but unfortunately I am not able to figure it out , please find my following code and suggest me.

Component :

<aura:component implements="force:appHostable,flexipage:availableForAllPageTypes,flexipage:availableForRecordHome,force:hasRecordId,forceCommunity:availableForAllPageTypes,force:lightningQuickAction" access="global" >
    <aura:attribute name="isModalOpen" type="boolean" default="true"/>
    <div class="slds-m-around_xx-large">
              
        <!--Use aura:if tag to display/hide popup based on isModalOpen value-->  
        <aura:if isTrue="{!v.isModalOpen}">            
            <!-- Modal/Popup Box starts here-->
            <section role="dialog" tabindex="-1" aria-labelledby="modal-heading-01" aria-modal="true" aria-describedby="modal-content-id-1" class="slds-modal slds-fade-in-open">
                <div class="slds-modal__container">
                    <!-- Modal/Popup Box Header Starts here-->
                    <header class="slds-modal__content slds-p-around_medium">
                        <h2 id="modal-heading-01" class="slds-text-heading_medium slds-hyphenate"><b>About Your Privacy</b></h2>
                    </header>
                    <!--Modal/Popup Box Body Starts here-->
                    <div class="slds-modal__content slds-p-around_medium" id="modal-content-id-1">
                        <p>This website uses cookies to improve performance and enhance our visitors’ experience.You may view our privacy policy here.                    
                        </p>
                    </div>
                    <!--Modal/Popup Box Footer Starts here - class="slds-modal__header", class="slds-modal__footer"-->
                    <footer class="slds-modal__content slds-p-around_medium"> 
                          <lightning:button 
                                          label="OK"
                                          title="OK"
                                          onclick="{!c.submitDetails}"/>
                    </footer>
                </div>
            </section>
            <div class="slds-backdrop slds-backdrop_open"></div>
        </aura:if>
    </div>
</aura:component>

Controller :

({
   openModel: function(component, event, helper) {
      // Set isModalOpen attribute to true
      component.set("v.isModalOpen", true);
      
       
   },
  
   closeModel: function(component, event, helper) {
      // Set isModalOpen attribute to false  
      component.set("v.isModalOpen", false);
   },
  
   submitDetails: function(component, event, helper) {
      // Set isModalOpen attribute to false
      //Add your code to call apex method or do some processing
      component.set("v.isModalOpen", false);
   },
})