• Arpita Nayak
  • NEWBIE
  • 30 Points
  • Member since 2015

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 8
    Questions
  • 18
    Replies
Hi ,
I want to reparent a M-D relationship.Can any one please help me where to enable this option 'Allow Reparenting'  in M-D relationship defination. 
Hi Guys,
I want to create a student login page.The functionality should be ,

1.  It takes parameter username and password. Page should also have links for “New Sign Up” and “Forgot Password?”. Password should not be less than 8 characters.
2. Write functionality to prompt user an error when a new user login is created with duplicate username and email address information.
3.  When user clicks on “Forgot Password” link, he should get a text box to fill his/her email-address and system should be able to send the password for the user on that given email-address.

Can any one please suggest some peace of code.
 
Hi Guys,
How to make a field read only in visualforce page.
Hi ,
I am creating a login page in visualforce page .Can any one please suggest some code??
Hi Guys,

I am creating a Student/Teacher/Class App.There are some requirement which i am writing below.Kindly please give some idea how to create all these.Is there any need of trigger here??
  1. User should not be able to insert/update if that teacher is not active.
  2. User should not be able to delete a class if there is any student in it.
  3. Don’t allow user to add student to a class which already reached the max limit of students.
  4. Maintain the number of student for each class.
Hi ,
I am creating a student/Teacher/Class App.I am facing some problem while creating the workflow rule .
My requirement is the email should be sent 1 day before the bday every year.I am unable to write the query here

Can anyone please help me.
 
Hi can any one explain this code .If required please simplify the code also.

trigger emailCheck on Employee__c (before update) 
{
    Map<Id,Employee__c> o = new Map<Id,Employee__c>();
    o = trigger.oldMap;
    for(Employee__c n : trigger.new)
    {
        Employee__c old = new Employee__c();
        old = o.get(n.Id);
        if(n.Email__c != old.Email__c)
        {
            n.Email__c.addError('Email cannot be changed');
        }
    }
}
 
Hi,
I have written this trigger to append 'Dr' prefix for al lead names.but i am getting some error.Please help me.

"Error: Compile Error: expecting a semi-colon, found 'Name' at line 6 column 27"


trigger PrefixDoctor on Lead (before insert,before update) {
for(Lead l :trigger.new)
{
List<Lead> leadlist=new List<Lead>();
{
l.First Name='Dr.'+l.First Name ;
}
}
}
Hi ,
I want to reparent a M-D relationship.Can any one please help me where to enable this option 'Allow Reparenting'  in M-D relationship defination. 
Hi Guys,
How to make a field read only in visualforce page.
Hi ,
I am creating a student/Teacher/Class App.I am facing some problem while creating the workflow rule .
My requirement is the email should be sent 1 day before the bday every year.I am unable to write the query here

Can anyone please help me.
 
Hi can any one explain this code .If required please simplify the code also.

trigger emailCheck on Employee__c (before update) 
{
    Map<Id,Employee__c> o = new Map<Id,Employee__c>();
    o = trigger.oldMap;
    for(Employee__c n : trigger.new)
    {
        Employee__c old = new Employee__c();
        old = o.get(n.Id);
        if(n.Email__c != old.Email__c)
        {
            n.Email__c.addError('Email cannot be changed');
        }
    }
}
 
Hi,
I have written this trigger to append 'Dr' prefix for al lead names.but i am getting some error.Please help me.

"Error: Compile Error: expecting a semi-colon, found 'Name' at line 6 column 27"


trigger PrefixDoctor on Lead (before insert,before update) {
for(Lead l :trigger.new)
{
List<Lead> leadlist=new List<Lead>();
{
l.First Name='Dr.'+l.First Name ;
}
}
}