-
ChatterFeed
-
0Best Answers
-
0Likes Received
-
0Likes Given
-
10Questions
-
5Replies
how to retrieve the first letter capital in fields after saving ?
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 ?
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 ?
-
- sree sfdc
- July 25, 2014
- Like
- 0
- Continue reading or reply
standard object convert to custom object using buttons ?
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
i have requirmenet ,
how to create custom convert button .to convert standarad object to custom object .
pls help me how to do this ..
thanks
-
- sree sfdc
- July 14, 2014
- Like
- 0
- Continue reading or reply
if checkbox is checked and associate picklist field is enable ?
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 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 ?
-
- sree sfdc
- July 12, 2014
- Like
- 0
- Continue reading or reply
How to setup the salesforce for the following scenario ?
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
-
- sree sfdc
- July 10, 2014
- Like
- 0
- Continue reading or reply
write trigger for contact object custom field primary of type checkbox
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
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
-
- sree sfdc
- July 10, 2014
- Like
- 0
- Continue reading or reply
child records update to parent object and also count all the records?
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 ...
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 ...
-
- sree sfdc
- July 09, 2014
- Like
- 0
- Continue reading or reply
Compile Error: unexpected token: 'global'
hi floks ,
how to reslove this error pls help me
Compile Error: unexpected token: 'global'
how to reslove this error pls help me
Compile Error: unexpected token: 'global'
-
- sree sfdc
- July 08, 2014
- Like
- 0
- Continue reading or reply
what is the difference between Database.querylocator() and database.getquerylocator() ? and governorlimits?
hii
i m new in apex development
i m new in apex development
-
- sree sfdc
- July 03, 2014
- Like
- 0
- Continue reading or reply
System.ListException: List index out of bounds: 12
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>
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>
-
- sree sfdc
- June 11, 2014
- Like
- 0
- Continue reading or reply
How to solve this error:Compile Error: line 31:23 no viable alternative at character '–' at line 31 column 23
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;
}
}
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;
}
}
-
- sree sfdc
- June 10, 2014
- Like
- 0
- Continue reading or reply
standard object convert to custom object using buttons ?
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
i have requirmenet ,
how to create custom convert button .to convert standarad object to custom object .
pls help me how to do this ..
thanks
- sree sfdc
- July 14, 2014
- Like
- 0
- Continue reading or reply
write trigger for contact object custom field primary of type checkbox
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
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
- sree sfdc
- July 10, 2014
- Like
- 0
- Continue reading or reply
child records update to parent object and also count all the records?
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 ...
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 ...
- sree sfdc
- July 09, 2014
- Like
- 0
- Continue reading or reply
Compile Error: unexpected token: 'global'
hi floks ,
how to reslove this error pls help me
Compile Error: unexpected token: 'global'
how to reslove this error pls help me
Compile Error: unexpected token: 'global'
- sree sfdc
- July 08, 2014
- Like
- 0
- Continue reading or reply
How to solve this error:Compile Error: line 31:23 no viable alternative at character '–' at line 31 column 23
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;
}
}
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;
}
}
- sree sfdc
- June 10, 2014
- Like
- 0
- Continue reading or reply