• vibration
  • NEWBIE
  • 40 Points
  • Member since 2010

  • Chatter
    Feed
  • 2
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 137
    Questions
  • 120
    Replies

Can we change the label name of a standard object  or clone the standard object?

  • January 20, 2012
  • Like
  • 0

How to display chatter in sencha touch ?

How to retrive salesforce object record in sencha touch?

How to extend a data storage in developer edition in sfdc?

 

curently 10 MB support , I want to upgrade atleast 100 MB . what is the solution?

hi
 
is it possible to save Picklist values in a Look Up Field?
 
I want to save multiple (picklist) values in a LoopUp field.
 
Objects- Item relation
 
NameText(80)
child_item__cLookup(Item relation)
parent_item__cLookup(Item relation)
 
my VFCODE code:
 

<apex:page controller="CreateMulItem" sidebar="false" >
<apex:form >
<apex:pageBlock >
<apex:pageBlockButtons >
<apex:commandButton value="Save Task" action="{!Save}" />
</apex:pageBlockButtons>

<apex:commandButton value="Save" action="{!Save}" />
</apex:pageBlockButtons> -->
<apex:pageBlockSection title="Create Items" >

<apex:outputLabel Value="Item Name" style="margin-left:10%;position:relative;top:10px;font-weight:bold" >
&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp;
<apex:selectList value="{!ItemTemp}" size="1" >

<apex:selectOptions value="{!Itemname}"/>

</apex:selectList>
</apex:outputLabel>

</apex:pageBlockSection>



<apex:outputlabel value="Create New Item" for="newval" style="margin-left:4%;position:relative;top:20px;font-weight:bold" />
<apex:inputText value="{!newpicklistvalue}" id="newval" style="margin-left:4%;position:relative;top:15px;font-weight:bold" />
<apex:commandbutton action="{!saverec}" value="Add Item!" style="margin-left:4%;position:relative;top:15px;font-weight:bold" />



<apex:pageBlockSection title="Add parent and child Item">
<apex:outputLabel Value="Parent Items" style="margin-left:10%;position:relative;top:10px;font-weight:bold" >
<apex:selectList value="{!ParentTemp}" size="3" multiselect="true" >
<apex:selectOptions value="{!ParentItem}"/>
</apex:selectList>
</apex:outputLabel>

<apex:outputLabel Value="Child Items " style="margin-Right:1%;position:relative;top:10px;font-weight:bold" >
<apex:selectList value="{!ChildTemp}" size="3" multiselect="true" >
<apex:selectOptions value="{!ChildItem}"/>
</apex:selectList>
</apex:outputLabel>
</apex:pageBlockSection>

</apex:pageBlock>


</apex:form>
</apex:page>

 

class:

 

public with sharing class CreateMulItem{


// Declare variables

public String ParentTemp { get; set; }
public String ChildTemp { get; set; }
public String ItemTemp{get; set;}






// Load Parent Items
public List<SelectOption> getParentItem() {
List<SelectOption> options = new List<SelectOption>();

for(Item_relation__c Itemrelation :[Select id,Name,parent_item__c,child_item__c from Item_relation__c ]){
options.add(new SelectOption(Itemrelation.id,Itemrelation.name));
}
return options;
}

// Load Child Items
public List<SelectOption> getChildItem() {
List<SelectOption> options = new List<SelectOption>();
// options.add(new SelectOption('--None--','--None--'));
for(Item_relation__c Itemrelation :[Select id,Name,parent_item__c,child_item__c from Item_relation__c ]){
options.add(new SelectOption(Itemrelation.id,Itemrelation.Name));
}
return options;
}
// Load Child Items
public List<SelectOption> getItemname() {
List<SelectOption> options = new List<SelectOption>();
// options.add(new SelectOption('--None--','--None--'));
for(Item_relation__c Itemrelation :[Select id,Name,parent_item__c,child_item__c from Item_relation__c where Name != 'None' ]){
options.add(new SelectOption(Itemrelation.id,Itemrelation.Name));
}
return options;
}
public String newpicklistvalue{get; set;}

public void saverec()
{
Item_relation__c newrec = new Item_relation__c(name = newpicklistvalue);

insert newrec;
newpicklistvalue=NULL;
}

// Save Item Relations
public List<Item_relation__c> saverelations {get; set;}

public PageReference Save() {

Item_relation__c Sitems = new Item_relation__c();

Sitems =[select id,name, parent_item__c,child_item__c from Item_relation__c where id =: ItemTemp];


Sitems.parent_item__c = ParentTemp;
Sitems.child_item__c = ChildTemp;
update Sitems;

PageReference parrec = new PageReference('https://ap1.salesforce.com/a0A/o');
parrec.setRedirect(true);
return parrec;
}

}

 
Regards,
Azar





public with sharing class CreateSPrintBacklogContExt_1 {

       public List<Backlog__c> sblogs {get; set;}

public final Sprint__c parSprint;     
       public  Request__c StartDate{get;set;}
       public  Request__c EndDate{get;set;}

 public CreateSPrintBacklogContExt_1(ApexPages.StandardController myController) {
    
     
       StartDate =  new Request__c();
       EndDate =  new Request__c();     
       parSprint=[Select ID,Name,Project__c,Release__c  from Sprint__c  WHERE ID = :((Sprint__c)myController.getrecord()).ID];           
       sblogs = new List<Backlog__c>();
       Backlog__c SBacklog = new Backlog__c();      
       SBacklog.Sprint__c = parSprint.Id;             
       sblogs.add(SBacklog);     


  public PageReference Insertbacklog() {
Insert sblogs;
PageReference parrec = new PageReference('/apex/CreateBacklogs?id={!Sprint__c.id}');
 parrec.setRedirect(true);
return parrec;
}





error :Id value {!Sprint__c.id} is not valid for the Sprint__c standard controller

Hi,

       I am Mohamed Azarudeen from India. I have 2 years Experience in Salesforce Development and Administration . I listed

my salesforce Experience as below.

 

 

  • A highly motivated and committed Associate software Engineer with 2 Years of experience in Salesforce.com Administrator/ Developer(Cloud Computing) and Dot net
  • Extensive domain knowledge and skill set to customize Salesforce CRM applications and Salesforce Customer portal
  • Customize Salesforce.com fields, page layouts, record types, searching, list views, queues, reports, and dashboards to drive key business decisions.
  • Performing administration tasks such as creating accounts and profiles, defining fields, maintaining drop-down list values, etc
  • Maintain users, roles, security, profiles, workflow rules ,sharing settings etc
  • Create workflows and assignment rules.
  • Good Knowledge on developing applications using APEX and Visual Force.

     I am looking for a job in SFDC Development. Any job matches , please contact azar_85a@yahoo.com or +919894217382.

 

Thanks

Azar

My requirement:

 

    Daily  created contact recorcds are send to the corresponding contact record owner using Batch Apex class(using email templates). please send email templates format and code

How will  i set and map  methods this trigger?

 

 

trigger Inventorybid on bid__c (after update) {
List<id> accIds=new List<id>();
 double sumTotal = 0;
  List<servoTerra_Order__c>  OrderUpdate = new List<servoTerra_Order__c>();
    for (bid__c bidoffer : Trigger.new){
    for (servoTerra_Order__c ord  : [select Id, Name, total__c from servoTerra_Order__c where Id=:bidoffer.Order__c])
    {
    //Sum all the Total offer
    for (bid__c bidtotal: [select Id,name,Total_Offer__c from bid__c where Order__c =:ord.id])
   {
    sumTotal += bidtotal.Total_Offer__c;   
    }
    ord.total__c = sumTotal;
    OrderUpdate.add(ord);
    }
   }
    
  upsert OrderUpdate;
     
}

 

 

Update failed. First exception on row 0 with id a0TV00000003akPMAQ; first error:

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, Inventorybid: execution of

AfterUpdate caused by: System.ListException: Duplicate id in list:

a0UV0000000qI8nMAE Trigger.Inventorybid: line 33, column 1: []

  How can use set methods in this trigger?

 

trigger Inventorybid on bid__c (after update) {
List<id> accIds=new List<id>();
 double sumTotal = 0;
  List<servoTerra_Order__c>  OrderUpdate = new List<servoTerra_Order__c>();
    for (bid__c bidoffer : Trigger.new){
    for (servoTerra_Order__c ord  : [select Id, Name, total__c from servoTerra_Order__c where Id=:bidoffer.Order__c])
    {
    //Sum all the Total offer
    for (bid__c bidtotal: [select Id,name,Total_Offer__c from bid__c where Order__c =:ord.id])
   {
    sumTotal += bidtotal.Total_Offer__c;   
    }
    ord.total__c = sumTotal;
    OrderUpdate.add(ord);
    }
   }
    
  upsert OrderUpdate;
     
}

 

 

Update failed. First exception on row 0 with id a0TV00000003akPMAQ; first error:

CANNOT_INSERT_UPDATE_ACTIVATE_ENTITY, Inventorybid: execution of

AfterUpdate caused by: System.ListException: Duplicate id in list:

a0UV0000000qI8nMAE Trigger.Inventorybid: line 33, column 1: []

Hi all,       

 

 I want to create a object in different Users. For eg i login User A , I created one contact record and assign CreatedBy field in Different user(like UserB,User C etc).Is it possible?

 

 

Thanks

Azar

How to add a authenticate website license users in publc group?

 

I tried to add a authenticate website license users in public group, correxsponding license user is not listed in available user list.because i set some sharing settings for particular users.

 

 

please tell any suggestion.......

 


how to Dynamically add values to picklist using  case standard page for eg type picklist

How to set default value in lookup field?

 

any idea

My scenario:

      I want to store a multiple data in one object. so I used 1 picklist(5 colors for eg: red,blue,green,white and black) and 1 button(add row button) . first i select red color and click add row button then i select blue color  and click add row button then i select green color , all the three picklist value change the red color because of refreshment of page. How can i maintain a state in VF Page and Apex?

 

    in same scenario I want to remove the selected picklist data during Run time.

 

 

Plz send samples ...............

My scenario:

      I want to store a multiple data in one object. so I used 1 picklist(5 colors for eg: red,blue,green,white and black) and 1 button(add row button) . first i select red color and click add row button then i select blue color  and click add row button then i select green color , all the three picklist value change the red color because of refreshment of page. How can i maintain a state in VF Page and Apex?

 

    in same scenario I want to remove the selected picklist data during Run time.

 

 

Plz send samples ...............

  

 

Add method:

 

 SelectListOfWorkItems.ADD(new SelectOption(WorkItem.id, WorkItem.Name)); 

 

plz send remove methods...

using adderror methods , error message is not shown.in customer portal. i want to show error message in same page itself. it is standard page. how i used? please give me the solution

i used adderror in trigger  ,it is not displayed incustomer portal. I want to show  error message in  customerportal..plz send it..............

Hi all,

  I have some problem in treeview. script and java query is not working .plz correct the code.

 

 

 

 

plugin Download : http://bassistance.de/jquery-plugins/jquery-plugin-treeview/

 

Reference Code :http://www.forcetree.com/2011/04/tree-view-in-visualforce-page.html

 

plugin used :Jquerytreeview

 

 

VF page:

 

<apex:page sidebar="false" controller="treenodes" showheader="false">
<!-- Include the Jquery Script files -->
<link rel="stylesheet" href="{!URLFOR($Resource.Jtreeview,'Jquerytreeview/jquery.treeview.css')}"/>
<script src="{!URLFOR($Resource.Jtreeview,'Jquerytreeview/lib/jquery.js')}" type="text/javascript"></script>
<script src="{!URLFOR($Resource.Jtreeview,'Jquerytreeview/lib/jquery.cookie.js')}" type="text/javascript"></script>
<script src="{!URLFOR($Resource.Jtreeview,'Jquerytreeview/jquery.treeview.js')}" type="text/javascript"></script>
<!-- End of Javascript files -->
<script type="text/javascript">
$(function() {
$("#tree").treeview({
collapsed: false,
animated: "medium",
control:"#sidetreecontrol",
persist: "location"
});
})
</script>
<br/> <br/> <br/>
<!-- Tree -->
<div class="treeheader" style="height:0px;">&nbsp;</div>
<div id="sidetreecontrol"><a href="?#"><font style="color:blue;">Collapse All</font></a> | <a href="?#"><font style="color:blue;">Expand All</font></a></div>
<ul id="tree">
<apex:repeat value="{!mainnodes}" var="parent">
<li><strong><apex:outputtext style="color:blue;" escape="false" value="{!parent.gparent.Name}"/></strong>
<ul>
<apex:repeat value="{!parent.parent}" var="child">
<li><span class="formattextcon"><apex:outputtext style="color:green;" escape="false" value="{!child.LastName}"/></span>
<ul>
<apex:repeat value="{!child.Cases}" var="gchildren">
<li> <span class="formattextcon"> <apex:outputtext escape="false" style="color:red;" value="{!gchildren.CaseNumber}"/> <b>||</b> &nbsp;<apex:outputtext escape="false" value="{!gchildren.Subject}"/> </span> </li>
</apex:repeat>
</ul>
</li>
</apex:repeat>
</ul>
</li>
</apex:repeat>
</ul>
<!-- End of Tree -->
</apex:page>

 

 

class:

 

public class treenodes {

/* Wrapper class to contain the nodes and their children */
public class cNodes
{

public List<Contact> parent {get; set;}
Public Account gparent {get;set;}

public cNodes(Account gp, List<Contact> p)
{
parent = p;
gparent = gp;
}
}
/* end of Wrapper class */

Public List<cNodes> hierarchy;

Public List<cNodes> getmainnodes()
{
hierarchy = new List<cNodes>();
List<Account> tempparent = [Select Id,Name from Account];
for (Integer i =0; i< tempparent.size() ; i++)
{
List<Contact> tempchildren = [Select Id,FirstName,LastName,(Select Id,CaseNumber,Subject from Cases) from Contact where AccountId = :tempparent[i].Id];
hierarchy.add(new cNodes(tempparent[i],tempchildren));
}
return hierarchy;
}
}

 

please help me

Hi,

 soql value comes in to null. please correct the code. 

 

class

 

public with sharing class SearchOpportunity {
  List<Opportunity> listopp = new List<Opportunity>();
Public String Oppname;
public String valopp {get; set;}

 public List<SelectOption> getOppname() {
     List<SelectOption> options = new List<SelectOption>();
   //  options.add(new SelectOption('None','None'));
     List<Opportunity> listpickOpp = new List<Opportunity>();
     listpickOpp = [Select id,name from Opportunity];         
     for(Opportunity objopp : listpickOpp){
     if(objopp.name != null){             
      options.add(new SelectOption(objopp.name,objopp.name));
      }
     }      
     return options;             
     }

public List<Opportunity> getresults() {
   return listopp;
   }

 public PageReference Search(){
 
   
   listopp =[select id,name,Stagename,Account.name,Amount,LeadSource,CloseDate__c,Probability,OpportunityCheck__c from Opportunity where name =:valopp]; --- value is null
 
 
   PageReference packagePage = new PageReference('/apex/VFResult');
   return(packagePage);
 
   }



page

 

<apex:page controller="SearchOpportunity">
<apex:sectionHeader title="Opportunity Search" subtitle="Opportunity Search"/>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="Opportunity Search"  columns="7" collapsible="false">
     <apex:outputLabel Value="Opportunity Name" style="margin-left:1%;font-weight:bold;position:relative;bottom:5px" >     
     <apex:selectList value="{!valopp}" size="1"  style="margin-left:2%;position:relative;top:5px;">
     <apex:selectOptions value="{!Oppname}"/>
     </apex:selectList>    
     </apex:outputLabel>
<apex:commandButton value="Search" immediate="true" action="{!Search}" />
 </apex:pageBlockSection>
    <apex:pageBlock title="Search Results">
      <apex:pageBlockTable value="{!results}" var="sc">                              
            <apex:column headerValue="Select">
            <apex:inputCheckbox value="{!sc.OpportunityCheck__c}"/>
            </apex:column>           
            <apex:column headerValue="Opportunity Name" value="{!sc.Name}"/>
            <apex:column headerValue="Account Name" value="{!sc.Account.Name}"/>
            <apex:column headerValue="Lead Source" value="{!sc.LeadSource}"/>
            <apex:column headerValue="Stagename" value="{!sc.Stagename}"/>   
            <apex:column headerValue="Amount" value="{!sc.Amount}"/>    
            <apex:column headerValue="Probability" value="{!sc.Probability}"/>         
            </apex:pageBlockTable>
      </apex:pageBlock>         
</apex:pageBlock>
</apex:form>
</apex:page>

Hi

 what is data storage and file storage in salesforce and what is difference between them?can anyone help me?

 

 

 Thanks&regards

***** Immediate Need *****

We are looking for an experienced Visualforce developer that has developed custom Customer Portals previously.

The custom SFDC Customer Portal will include Chatter Answers, Ideas, Articles (Knowledge), Live Agent and Cases. 

The design is complete now we need someone to implement it into Visualforce pages for the Customer Portal.  Skill set needed:  Experience with custom Customer Portals using Visualforce pages, custom stylesheets and HTML.

We are based in Boston, but work can be done remotely.

  • September 14, 2012
  • Like
  • 0

how to create a grid on vf page ......

1.grid need to show which case has been assigned to whom(loged in users)

2. grid need to contains  maximum of 20 latest  cases.

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 

 





public with sharing class CreateSPrintBacklogContExt_1 {

       public List<Backlog__c> sblogs {get; set;}

public final Sprint__c parSprint;     
       public  Request__c StartDate{get;set;}
       public  Request__c EndDate{get;set;}

 public CreateSPrintBacklogContExt_1(ApexPages.StandardController myController) {
    
     
       StartDate =  new Request__c();
       EndDate =  new Request__c();     
       parSprint=[Select ID,Name,Project__c,Release__c  from Sprint__c  WHERE ID = :((Sprint__c)myController.getrecord()).ID];           
       sblogs = new List<Backlog__c>();
       Backlog__c SBacklog = new Backlog__c();      
       SBacklog.Sprint__c = parSprint.Id;             
       sblogs.add(SBacklog);     


  public PageReference Insertbacklog() {
Insert sblogs;
PageReference parrec = new PageReference('/apex/CreateBacklogs?id={!Sprint__c.id}');
 parrec.setRedirect(true);
return parrec;
}





error :Id value {!Sprint__c.id} is not valid for the Sprint__c standard controller

how to Dynamically add values to picklist using  case standard page for eg type picklist

Can we change the label name of a standard object  or clone the standard object?

  • January 20, 2012
  • Like
  • 0

I created a customer portal in my salesforce, and made portal user. But when I set portal sharing object, I can not find the contact object.

 

And also I selected "Account" object in portal sharing, but I can not see "Account" after I login custom portal.

  • January 20, 2012
  • Like
  • 0

using adderror methods , error message is not shown.in customer portal. i want to show error message in same page itself. it is standard page. how i used? please give me the solution

Hi,

 soql value comes in to null. please correct the code. 

 

class

 

public with sharing class SearchOpportunity {
  List<Opportunity> listopp = new List<Opportunity>();
Public String Oppname;
public String valopp {get; set;}

 public List<SelectOption> getOppname() {
     List<SelectOption> options = new List<SelectOption>();
   //  options.add(new SelectOption('None','None'));
     List<Opportunity> listpickOpp = new List<Opportunity>();
     listpickOpp = [Select id,name from Opportunity];         
     for(Opportunity objopp : listpickOpp){
     if(objopp.name != null){             
      options.add(new SelectOption(objopp.name,objopp.name));
      }
     }      
     return options;             
     }

public List<Opportunity> getresults() {
   return listopp;
   }

 public PageReference Search(){
 
   
   listopp =[select id,name,Stagename,Account.name,Amount,LeadSource,CloseDate__c,Probability,OpportunityCheck__c from Opportunity where name =:valopp]; --- value is null
 
 
   PageReference packagePage = new PageReference('/apex/VFResult');
   return(packagePage);
 
   }



page

 

<apex:page controller="SearchOpportunity">
<apex:sectionHeader title="Opportunity Search" subtitle="Opportunity Search"/>
<apex:form >
<apex:pageBlock >
<apex:pageBlockSection title="Opportunity Search"  columns="7" collapsible="false">
     <apex:outputLabel Value="Opportunity Name" style="margin-left:1%;font-weight:bold;position:relative;bottom:5px" >     
     <apex:selectList value="{!valopp}" size="1"  style="margin-left:2%;position:relative;top:5px;">
     <apex:selectOptions value="{!Oppname}"/>
     </apex:selectList>    
     </apex:outputLabel>
<apex:commandButton value="Search" immediate="true" action="{!Search}" />
 </apex:pageBlockSection>
    <apex:pageBlock title="Search Results">
      <apex:pageBlockTable value="{!results}" var="sc">                              
            <apex:column headerValue="Select">
            <apex:inputCheckbox value="{!sc.OpportunityCheck__c}"/>
            </apex:column>           
            <apex:column headerValue="Opportunity Name" value="{!sc.Name}"/>
            <apex:column headerValue="Account Name" value="{!sc.Account.Name}"/>
            <apex:column headerValue="Lead Source" value="{!sc.LeadSource}"/>
            <apex:column headerValue="Stagename" value="{!sc.Stagename}"/>   
            <apex:column headerValue="Amount" value="{!sc.Amount}"/>    
            <apex:column headerValue="Probability" value="{!sc.Probability}"/>         
            </apex:pageBlockTable>
      </apex:pageBlock>         
</apex:pageBlock>
</apex:form>
</apex:page>

I have 5 data in one object,

 

sno  sname

1        smith

2        vincent

3        lee

4        lawson

5        prem

 

i query a all the data in list. i want to display all the datas into single item. which function is used? how is used ?plz send sample code.

 

Expected result:

1        smith  2        vincent  3        lee  4        lawson 5        prem( all are in one data in other objects)

 

Hi,

 

Why does not chatter notify us when we make changes into note section or add any notes and attachment to custom object.

 

Bur when we attach file through chatter, chatter enables feed tracking for those files.

 

But it does not keep tracking for notes and attachment section for custom objects?? Is there any workaround to feed for notes and attachments?

 

Thanks and Regards,

Devendra S

I have a Account web form in html. when i submit a webform. Datas will move to the salesforce dev org through API.

 

How to connect HTML Form to salesforce via API?

 

plz send procedure.

 

very urgent.........

Hi,

 

I'm creating a feeditem in the newsfeed using the webservice api.

I would like to add simple html code to format the feed content (body). Is that possible? how?

 

thanks!

Hi all,

 

How to add Chatter External user into Chatter Group member , Please help me Regards this . 

 

 

Regards,

V'Nath

 

 

  • October 28, 2011
  • Like
  • 1
It looks like it should be in task.description, but during my test, I'm only seeing cc: showing up in the description field of the task entity, and I don't see the body of my email message anywhere.