-
ChatterFeed
-
0Best Answers
-
3Likes Received
-
0Likes Given
-
8Questions
-
1Replies
Role Hierarchy Question
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?
- Prateek Aneja 2
- June 29, 2016
- Like
- 0
- Continue reading or reply
- Prateek Aneja 2
- June 24, 2016
- Like
- 0
- Continue reading or reply
Lightning Components
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.
- Prateek Aneja 2
- June 01, 2016
- Like
- 0
- Continue reading or reply
Child object record display
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?
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?
- Prateek Aneja 2
- April 18, 2016
- Like
- 0
- Continue reading or reply
Using Javascript in Static Resource
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>
<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>
- Prateek Aneja 2
- April 16, 2016
- Like
- 0
- Continue reading or reply
Problem in code
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?
<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?
- Prateek Aneja 2
- April 10, 2016
- Like
- 0
- Continue reading or reply
Difference between selectList and selectOptions tags
Difference between selectList and selectOptions tags
- Prateek Aneja 2
- April 08, 2016
- Like
- 0
- Continue reading or reply
Difference between analytics snapshot and scheduling report runs?
I want to know the diffence between analytics snapshot and scheduling report runs.
Thanks in advance
Thanks in advance
- Prateek Aneja 2
- April 06, 2016
- Like
- 0
- Continue reading or reply
Role Hierarchy Question
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?
- Prateek Aneja 2
- June 29, 2016
- Like
- 0
- Continue reading or reply