• Prateek Aneja 2
  • NEWBIE
  • 0 Points
  • Member since 2016

  • Chatter
    Feed
  • 0
    Best Answers
  • 3
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 1
    Replies
If a user 'A' has access(Read,Create,Edit etc) to object "X" and user "B" doesn't, but in Role Hierarchy, "B" is above "A", then whether "B" will be able to access the records of "A" or not? 
How to filter columns in a related list?

 
Whenever I update 'Update' in Lightning Components, I get this message "Lightning components require My Domain. Please contact your system administrator for more information". Please help me out with this.
I have created an object "Employee" and child object "Customer".

I have written an Apex Code that'll fetch details of employees and customers:
**********************************************************************************************************************
public class contrBinding {
    public List<Employee__c> employee{get;set;}
    
    public List<Employee__c> getEmpl(){
       
            employee = [select Name, First_Name__c, Last_Name__c, (select Name, First_Name__c, Last_Name__c from Customers__r) from Employee__c limit 10];
            return employee;
    }
}
*******************************************************************************************


This is the Visualforce page code:
*******************************************************************************************
<apex:page controller="contrBinding" sidebar="false">
  <apex:form >
      <apex:pageBlock title="Employee Details">
          <apex:pageBlockTable value="{!Empl}" var="emp">
              <apex:column value="{!emp.Name}"/>
              <apex:column value="{!emp.First_Name__c}"/>
              <apex:column value="{!emp.Last_Name__c}"/>
          </apex:pageBlockTable>
      </apex:pageBlock>
  </apex:form>
</apex:page>
*******************************************************************************************************

Can anyone tell me how can I bring the Customer recods on Visualforce page?

 
This is the code I have written in Visualforce to access a Javacsript file:-

<apex:page sidebar="false">
    <apex:includeScript value="{!$Resource.Stat1}"/>
</apex:page>

But it is not working.

Javascript Code:

<html>
    <body>    
    <script>
        document.getElementById("demo").innerHTML = "Hello Javascript";
    </script>

    <p id = "demo"></p>
    </body>    
</html>

 
I wrote the following code to display the list of accounts but it's not printing anything:

<apex:page standardController="Account" recordSetVar="accounts" tabstyle="account" sidebar="false">
    <apex:pageBlock >
        <apex:pageBlockTable value="{!accounts}" var="acc">
            <apex:column value="{!acc.name}"/>
        </apex:pageBlockTable>
    </apex:pageBlock>
</apex:page>


Can anyone suggest me what is the issue?
Difference between selectList and selectOptions tags
I want to know the diffence between analytics snapshot and scheduling report runs.

Thanks in advance
If a user 'A' has access(Read,Create,Edit etc) to object "X" and user "B" doesn't, but in Role Hierarchy, "B" is above "A", then whether "B" will be able to access the records of "A" or not?