• sreenivas_cippyali
  • NEWBIE
  • 0 Points
  • Member since 2012

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 13
    Questions
  • 1
    Replies

calling this function on button click . if i remove all the logic from the function then alerts are firing .. 

 

function verifyemail()
{
alert('hi');
String emailRegex = '([a-zA-Z0-9_\\-\\.]+)@((\\[a-z]{1,3}\\.[a-z]{1,3}\\.[a-z]{1,3}\\.)|(([a-zA-Z0-9\\-]+\\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})';
Pattern MyPattern = Pattern.compile(emailRegex);
Matcher MyMatcher = MyPattern.matcher(email.value);
alert('bye');
// if (!MyMatcher.matches()) {
// alert('it is not in email format enter correct email address');
//}
}

Whenever an Opportunity created with StageName as 'Closed Won', then Add Product Button should be enable to add new Product in related list of Details view page  otherwise it should be in desable mode

1)     what is the storage capacity for dev, config and fullcopy sandboxes ? what are the differences ?

2)     How many editions are there in salesforce ? (what shoud we tell when asked in interview ?)

3)     How many licenses are there ? (what shoud we tell when asked in interview ?)

4)     what are Governor Limits ?

 

accountname = [select id,name,[select id, firstname from contact] from account];

 getaccount = [select id,name,Billingstate,website,phone from Account where  LEFT(name,1)=:LEFT(serval,1)];  

serval is search input text value.

if the first char is correct i should get the account .

its throwing error when i use above query .

ex: when the user click on home tab he has to get an alert that "hi <user name> good morning"

ex: when the user clicks on home tab i want a alert msg that good morning <user name>

ex : when the user  clicks on home tab  i want an alert wishing him good morning 

public class prime
{
public void m1(integer a)
{
integer n,i,s,c;

 

for(n=1;n<=a;n++)
{
c=0;
for(i=1;i<=n;i++)
{
s=0;
s=n%i;
if(s==0)
{
c++;
}
}

if(c==2)
{
System.debug('---------------->'+n);
}
 }
}
}