- Dilip Kr
- NEWBIE
- 20 Points
- Member since 2014
- infosys limited
-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
1Likes Given
-
5Questions
-
3Replies
Css style guide for special effect on active link as shown in below image?
What should be css style guide for special effect on active link as shown in below image, please guide how it can be achieved(special effect on text css in image)
-
- Dilip Kr
- December 08, 2015
- Like
- 0
- Continue reading or reply
Can lighting component framework is best for responsive design
Hi,
1.To make responsive design,which one best:salesforce Lighting or Bootstrap with visualforce page.Actually
i need to change page layout and to replace VF page by lighting component framework to make responsive to
other device mobile and tablets.Using lighting framework,i have to make responsive design for exiting web
site so that we have better performance and better look and feel on small devices like mobile and tablets.
Is lighting is best for this kind of change? or Which one is best for responsive design.
2.Can we add visualforce page to lighting for responsive design or we have to replace exiting visualforce page
with lighting component framwork. Any help would be greatly appreciated.
Thanks!
1.To make responsive design,which one best:salesforce Lighting or Bootstrap with visualforce page.Actually
i need to change page layout and to replace VF page by lighting component framework to make responsive to
other device mobile and tablets.Using lighting framework,i have to make responsive design for exiting web
site so that we have better performance and better look and feel on small devices like mobile and tablets.
Is lighting is best for this kind of change? or Which one is best for responsive design.
2.Can we add visualforce page to lighting for responsive design or we have to replace exiting visualforce page
with lighting component framwork. Any help would be greatly appreciated.
Thanks!
-
- Dilip Kr
- September 08, 2015
- Like
- 0
- Continue reading or reply
What should mention in package.xml for the deployment of profile and permission set using ANT
What should mention in package.xml file for the retrieve and deployment of profile and permission set using ANT so that all object permission ,fields permission and others permission will remain same after the deployment. Is it possible.If possible could you please tell what should be in pakage.xml file.Please add in below xml file if any thing is required .Could you please tell me is this best way to deploy or better to create profile rather than deploy....
Package.xml:
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<!-- **************************
<types>
<members>*</members>
<name>CustomObject</name>
</types>
<types>
<members>*</members>
<name>Layout</name>
</types>
<types>
<members>*</members>
<name>CustomApplication</name>
</types>
<types>
<members>*</members>
<name>CustomTab</name>
</types>
<types>
<members>*</members>
<name>ApexClass</name>
</types>
<types>
<members>*</members>
<name>ApexPage</name>
</types>
<types>
<members>*</members>
<name>ApexClass</name>
</types>
************************** -->
<types>
<members>PermissionSetName</members>
<name>PermissionSet</name>
</types>
<types>
<members>ProfileName</members>
<name>Profile</name>
</types>
<version>32.0</version>
</Package>
Package.xml:
<Package xmlns="http://soap.sforce.com/2006/04/metadata">
<!-- **************************
<types>
<members>*</members>
<name>CustomObject</name>
</types>
<types>
<members>*</members>
<name>Layout</name>
</types>
<types>
<members>*</members>
<name>CustomApplication</name>
</types>
<types>
<members>*</members>
<name>CustomTab</name>
</types>
<types>
<members>*</members>
<name>ApexClass</name>
</types>
<types>
<members>*</members>
<name>ApexPage</name>
</types>
<types>
<members>*</members>
<name>ApexClass</name>
</types>
************************** -->
<types>
<members>PermissionSetName</members>
<name>PermissionSet</name>
</types>
<types>
<members>ProfileName</members>
<name>Profile</name>
</types>
<version>32.0</version>
</Package>
-
- Dilip Kr
- February 24, 2015
- Like
- 0
- Continue reading or reply
Confirmation dialog box if new material is already exist in the material object.
Fetching all data from product record and creating new material records using the same information but i want a confirmation dialog box if new material with same name is already exit in material object record. I tried code below but it is unable to check duplicate record in material.When i clicked "createMaterial" button,everytime it is created material record using product record data. Could you please see the code and let me know what i am missing. I thought that duplicate logic is not able to call.
APEX CLASS:
Public class ctrlCloneProductToMaterial{
Public Id id;
public List<Material__c> dupe;
public boolean dupFound{get; set; }
public static final Id Material_Rtype=Rtype.getIdByDevName('material__c','DEC');
public static final Id Product_Rtype=Rtype.getIdByDevName('product2','DEC');
public ctrlctrlCloneProductToMaterial(apexPage.StandardController contoller){
id=apexPages.currentPage().getparameters().get('id');
}
public PageReference cloneProduct(){
product2 prod=new product2();
Material__c mat= new Material__c();
prod=[select name,Id,Description,Productcode from Product2 where Id=:id and Recordtypeid=:Product_Rtype]
dupe=[select Name,id from material__c where Name=:prod.Name];
if(dupe.size()>0){
dupFound= true;
}
else{
mat=new material__c(Name=prod.name,Description__c=prod.Description);
insert mat;
Id matid=mat.id;
return new pageReference('/'+matid);
}
}
}
APEX PAGE:
<apex:page Standardcontroller="product2" extension="ctrlCloneProductToMaterial">
<script type="text/javascript">
function alertMessage(){
if ({!dupFound}== 'true'){
var r = confirm ("existing material Do u want to continue");
if(r== true){
clone();
alert('product cloned');
}
else{
// return back to detail page of product record
}
}
else{
clone();
alert('product cloned')
}
}
</script>
<apex:form>
<apex:acctionFunction action="{!cloneProduct}" name="clone" oncomplete="alertmessage()"/>
</apex:form>
</apex:page>
APEX CLASS:
Public class ctrlCloneProductToMaterial{
Public Id id;
public List<Material__c> dupe;
public boolean dupFound{get; set; }
public static final Id Material_Rtype=Rtype.getIdByDevName('material__c','DEC');
public static final Id Product_Rtype=Rtype.getIdByDevName('product2','DEC');
public ctrlctrlCloneProductToMaterial(apexPage.StandardController contoller){
id=apexPages.currentPage().getparameters().get('id');
}
public PageReference cloneProduct(){
product2 prod=new product2();
Material__c mat= new Material__c();
prod=[select name,Id,Description,Productcode from Product2 where Id=:id and Recordtypeid=:Product_Rtype]
dupe=[select Name,id from material__c where Name=:prod.Name];
if(dupe.size()>0){
dupFound= true;
}
else{
mat=new material__c(Name=prod.name,Description__c=prod.Description);
insert mat;
Id matid=mat.id;
return new pageReference('/'+matid);
}
}
}
APEX PAGE:
<apex:page Standardcontroller="product2" extension="ctrlCloneProductToMaterial">
<script type="text/javascript">
function alertMessage(){
if ({!dupFound}== 'true'){
var r = confirm ("existing material Do u want to continue");
if(r== true){
clone();
alert('product cloned');
}
else{
// return back to detail page of product record
}
}
else{
clone();
alert('product cloned')
}
}
</script>
<apex:form>
<apex:acctionFunction action="{!cloneProduct}" name="clone" oncomplete="alertmessage()"/>
</apex:form>
</apex:page>
-
- Dilip Kr
- February 23, 2015
- Like
- 0
- Continue reading or reply
get all contacts of an account onclick on count of contact of an account
Hi all,
please let me know,how to get all contacts of an account on click on count of contact as show above screenshort.
please let me know what i missing in below code
apex class...........
public with sharing class sampleCode {
public List<wrapper> wrapperList{get; set;}
public List<Contact> contactsInformation { get; set; }
public Id selectedCountOfContact { get; set; }
public sampleCode(){
wrapperList=new List<Wrapper>();
for(Account a:[select Name,(select id,name from contacts),(select id from opportunities) from Account limit 5])
{
Wrapper w1=new Wrapper();
w1.Name=a.Name;
w1.Con=a.contacts.size();
w1.Opp=a.opportunities.size();
wrapperList.add(w1);
}
}
class Wrapper{
public String Name{get; set;}
public Integer Con{get; set;}
public Integer Opp{get; set;}
}
public List<Account> getMyAccounts() {
return [SELECT Id, Name,Industry, AccountNumber FROM Account ORDER BY
LastModifiedDate DESC LIMIT 10];
}
public void accountClicked() {
contactsInformation = [SELECT FirstName, LastName FROM Contact
WHERE AccountID = :selectedCountOfContact];
}
}
and page.........
<apex:page controller="sampleCode">
<apex:form >
<apex:outputPanel id="ContactDetail">
<apex:repeat value="{!contactsInformation}" var="contact">
<p>{! contact.FirstName & ' ' & contact.LastName}</p>
</apex:repeat>
</apex:outputPanel>
<apex:pageBlock >
<apex:pageBlockTable value="{!wrapperList}" var="b" >
<apex:column value="{!b.Name}" headerValue="Account Name"/>
<apex:column headerValue="Total Contacts">
<apex:commandlink action="{!accountClicked}" rerender="ContactDetail">
<apex:outputText value="{! b.con}"/>
<!-- <apex:param name="id" value="{!b.id}" assignTo="{!selectedcountofcontact}"/>-->
</apex:commandLink>
</apex:column>
<apex:column headerValue="Total Opportunities">
<apex:commandLink value="{!b.Opp}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
-
- Dilip Kr
- October 19, 2014
- Like
- 0
- Continue reading or reply
No option to make a report or Dashboard Folder private.
Hello all,
Our company is new to sales force and I'm working on setting up multiple reports and dashboards. I discovered that any user can access any of the folders I created. Searching through Help pages and googleing the problem the solutions all say to select make the folder private, however I have no option to do so. When I edit or create a folder the only options I have are the name of the folder and the unique name. When I share the folder to only certain users the other users can still access the folders.
Also I have checked the permissions for the standard users and they have very limited permissions. The only way I could stop them from accessing the folders was disabling the run reports permission but then they would get insufficient privleges error when trying to access the Report or Dashboard tabs.
Any solutions of why I don't have options to make folders private and why the sharing doesn't work properly would be helpful.
Our company is new to sales force and I'm working on setting up multiple reports and dashboards. I discovered that any user can access any of the folders I created. Searching through Help pages and googleing the problem the solutions all say to select make the folder private, however I have no option to do so. When I edit or create a folder the only options I have are the name of the folder and the unique name. When I share the folder to only certain users the other users can still access the folders.
Also I have checked the permissions for the standard users and they have very limited permissions. The only way I could stop them from accessing the folders was disabling the run reports permission but then they would get insufficient privleges error when trying to access the Report or Dashboard tabs.
Any solutions of why I don't have options to make folders private and why the sharing doesn't work properly would be helpful.
- Alan Munson
- June 10, 2015
- Like
- 0
- Continue reading or reply
get all contacts of an account onclick on count of contact of an account
Hi all,
please let me know,how to get all contacts of an account on click on count of contact as show above screenshort.
please let me know what i missing in below code
apex class...........
public with sharing class sampleCode {
public List<wrapper> wrapperList{get; set;}
public List<Contact> contactsInformation { get; set; }
public Id selectedCountOfContact { get; set; }
public sampleCode(){
wrapperList=new List<Wrapper>();
for(Account a:[select Name,(select id,name from contacts),(select id from opportunities) from Account limit 5])
{
Wrapper w1=new Wrapper();
w1.Name=a.Name;
w1.Con=a.contacts.size();
w1.Opp=a.opportunities.size();
wrapperList.add(w1);
}
}
class Wrapper{
public String Name{get; set;}
public Integer Con{get; set;}
public Integer Opp{get; set;}
}
public List<Account> getMyAccounts() {
return [SELECT Id, Name,Industry, AccountNumber FROM Account ORDER BY
LastModifiedDate DESC LIMIT 10];
}
public void accountClicked() {
contactsInformation = [SELECT FirstName, LastName FROM Contact
WHERE AccountID = :selectedCountOfContact];
}
}
and page.........
<apex:page controller="sampleCode">
<apex:form >
<apex:outputPanel id="ContactDetail">
<apex:repeat value="{!contactsInformation}" var="contact">
<p>{! contact.FirstName & ' ' & contact.LastName}</p>
</apex:repeat>
</apex:outputPanel>
<apex:pageBlock >
<apex:pageBlockTable value="{!wrapperList}" var="b" >
<apex:column value="{!b.Name}" headerValue="Account Name"/>
<apex:column headerValue="Total Contacts">
<apex:commandlink action="{!accountClicked}" rerender="ContactDetail">
<apex:outputText value="{! b.con}"/>
<!-- <apex:param name="id" value="{!b.id}" assignTo="{!selectedcountofcontact}"/>-->
</apex:commandLink>
</apex:column>
<apex:column headerValue="Total Opportunities">
<apex:commandLink value="{!b.Opp}"/>
</apex:column>
</apex:pageBlockTable>
</apex:pageBlock>
</apex:form>
</apex:page>
- Dilip Kr
- October 19, 2014
- Like
- 0
- Continue reading or reply
can we add a visualforce page in component?
Hi all,
1) Can we add a visualforce page in lightning component?
2) Can we create two apex controllers in one lightning component?
Thanks for help in advance.
1) Can we add a visualforce page in lightning component?
2) Can we create two apex controllers in one lightning component?
Thanks for help in advance.
- venkyyy
- August 12, 2015
- Like
- 1
- Continue reading or reply