• sree sfdc
  • NEWBIE
  • 80 Points
  • Member since 2014

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 10
    Questions
  • 5
    Replies
hi .
 I have 3 fileds in lead forum like first name ,last name ,city name .once entered data in fields (small letters) after saving it showing the first letter capital .
 how to do this ?
hi floks,

i  have requirmenet ,

how to create custom convert button .to convert standarad object to custom object  .
 pls help me how to do this  ..


thanks 
hi floks

i have one requirment 

if check box is checked and associate piclkist field is enble .and it's unchecked picklist field was disable .

how to do this requirment ?  

I have four type of users and three custom objects .
1) Product creator
2) seller
3) buyer
4) broker
5) order
6) product
7) order details
Relation ship :
- There is no relation directly between seller and buyer . only relationship comes from order .
- seller connect to order and buyer connect to order select the product
hi friends ,
pls help me to write following trigger
here contact is having custom field primary of type checkbox
● Each account may have multiple contacts but only one marked “Primary”
● Each account must have 1 primary contact.
● The account should display the name of its primary contact on the account detail screen (i.e. in a field).

pls help me
hi floks
i have one requirment .in child object we create a record it ill update to parent record also
and it has to count all the records ..

pls help how to slove this ...
hi floks ,

how to reslove this error pls help me

Compile Error: unexpected token: 'global'
hi developers
pls help me how to reslove this error.
Apex
------------
public class wrapperclass1
{

list<Account>  acc= new list<Account>();
list<Contact> con=new list<Contact>();

public List<wrapper> lstw = new List<wrapper>();

    public List<wrapper> getListwrapper()
     {
    acc=[select name,accountnumber from account];
    con=[select email,phone from contact];
    for(integer i=0;i<con.size();i++)
    {
   
    lstw.add(new wrapper(acc[i].name,acc[i].accountnumber,con[i].email,con[i].phone));
   
    }
     return lstw ; 
    }
    public class wrapper
    {

public String name{get;set;}

public String accountnumber{get;set;}

public String email{get;set;}

public String phone{get;set;}

// Wrapper class constructor

public wrapper(String name,String accountnumber,String email,String phone)
{

this.name=name;

this.accountnumber=accountnumber;

this.email=email;

this.phone=phone;
}
}

}
vf page
------------
<apex:page controller="wrapperclass1">
<apex:form >
   <apex:pageBlock >
      <apex:pageblockSection >
          <apex:pageBlockTable value="{!listwrapper}" var="wap">
              <apex:column headerValue="Action">
                 <apex:inputCheckbox />
              </apex:column>
              <apex:column headerValue="Account Name">
                {!wap.name}
             </apex:column>
             <apex:column headerValue="Account Number">
               {!wap.AccountNumber}
            </apex:column>
            <apex:column headerValue="Email">
                {!wap.Email}
            </apex:column>
            <apex:column headerValue="Phone">
                {!wap.phone}
            </apex:column>
        </apex:pageBlockTable>
      </apex:pageblockSection>
    </apex:pageBlock>
  </apex:form>
 
</apex:page>

Hi 
This is my code please help me 
VF Page
-------------
<apex:page controller="pagination1">
<apex:form >
<apex:pageBlock id="details">
<apex:pageblockTable value="{!accountlist}" var="account">

<apex:column value="{!account.name}"/>
<apex:column value="{!account.rating}"/>
<apex:column value="{!account.phone}"/>
<apex:column value="{!account.NumberOfEmployees}"/>
</apex:pageblockTable>
<apex:pageBlockButtons >
<apex:commandButton value="Fisrt" action="{!first}" reRender="details" disabled="{!prev}"/>
<apex:commandButton value="Previous" action="{!prev}" reRender="details" disabled="{!prev}"/>
<apex:commandButton value="Next" action="{!nxt}" reRender="details" disabled="{!nxt}"/>
<apex:commandButton value="Last" action="{lst}" reRender="details" disabled="{!nxt}"/>

</apex:pageBlockButtons>

</apex:pageBlock>


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

Apex 
-------------
public class pagination1 {

   public class Pagination
{
private integer totalRecs = 0;
private integer OffsetSize = 0;
private integer LimitSize= 10;
public Pagination()
{
totalRecs = [select count() from account];
}
public List<account> getacclist()
{
List<account> acc = Database.Query('SELECT Name, rating, phone, numberofemployees,FROM account LIMIT :LimitSize OFFSET :OffsetSize');
System.debug('Values are'+ acc);
return acc;
}
public void First()
{
OffsetSize = 0;
}
public void previous()
{
OffsetSize = OffsetSize - LimitSize;
}
public void next()
{
OffsetSize = OffsetSize + LimitSize;
}public void Last()
{
OffsetSize = totalrecs – math.mod(totalRecs,LimitSize);
}
public boolean getprevious()
{
if(OffsetSize == 0)
return true;
else
return false;
}
public boolean getnext()
{
if((OffsetSize + LimitSize) > totalRecs)
return true;
else
return false;
}
}
hi floks,

i  have requirmenet ,

how to create custom convert button .to convert standarad object to custom object  .
 pls help me how to do this  ..


thanks 
hi friends ,
pls help me to write following trigger
here contact is having custom field primary of type checkbox
● Each account may have multiple contacts but only one marked “Primary”
● Each account must have 1 primary contact.
● The account should display the name of its primary contact on the account detail screen (i.e. in a field).

pls help me
hi floks
i have one requirment .in child object we create a record it ill update to parent record also
and it has to count all the records ..

pls help how to slove this ...
hi floks ,

how to reslove this error pls help me

Compile Error: unexpected token: 'global'
Hi 
This is my code please help me 
VF Page
-------------
<apex:page controller="pagination1">
<apex:form >
<apex:pageBlock id="details">
<apex:pageblockTable value="{!accountlist}" var="account">

<apex:column value="{!account.name}"/>
<apex:column value="{!account.rating}"/>
<apex:column value="{!account.phone}"/>
<apex:column value="{!account.NumberOfEmployees}"/>
</apex:pageblockTable>
<apex:pageBlockButtons >
<apex:commandButton value="Fisrt" action="{!first}" reRender="details" disabled="{!prev}"/>
<apex:commandButton value="Previous" action="{!prev}" reRender="details" disabled="{!prev}"/>
<apex:commandButton value="Next" action="{!nxt}" reRender="details" disabled="{!nxt}"/>
<apex:commandButton value="Last" action="{lst}" reRender="details" disabled="{!nxt}"/>

</apex:pageBlockButtons>

</apex:pageBlock>


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

Apex 
-------------
public class pagination1 {

   public class Pagination
{
private integer totalRecs = 0;
private integer OffsetSize = 0;
private integer LimitSize= 10;
public Pagination()
{
totalRecs = [select count() from account];
}
public List<account> getacclist()
{
List<account> acc = Database.Query('SELECT Name, rating, phone, numberofemployees,FROM account LIMIT :LimitSize OFFSET :OffsetSize');
System.debug('Values are'+ acc);
return acc;
}
public void First()
{
OffsetSize = 0;
}
public void previous()
{
OffsetSize = OffsetSize - LimitSize;
}
public void next()
{
OffsetSize = OffsetSize + LimitSize;
}public void Last()
{
OffsetSize = totalrecs – math.mod(totalRecs,LimitSize);
}
public boolean getprevious()
{
if(OffsetSize == 0)
return true;
else
return false;
}
public boolean getnext()
{
if((OffsetSize + LimitSize) > totalRecs)
return true;
else
return false;
}
}