• Nagma Khan
  • NEWBIE
  • 40 Points
  • Member since 2017

  • Chatter
    Feed
  • 0
    Best Answers
  • 0
    Likes Received
  • 0
    Likes Given
  • 25
    Questions
  • 18
    Replies
hi
Please any one suggest me that i want to take a data sql to salesfroce

1 => how to take a Data SQL to Salesfroce pelase suggest or any code describe ??


Thanks
Nagma Khan
hi

i have problem i have a table of the Records and each records have particular Edit button when i clock on edit button then open a windows for editiong values and after the save click on submit how to slove please upport me ?


Thanks
Nagma
hi 

please any one support me i am new 

how to create the multi selecting pic list value 
example          India -> delhi -> CGO Comples how to paossible with reRender function pelase 



thanks Nagma
hi everyone


please support me i have a problem
i have multiple <form> tag on the visualforce page and want to each form tag values insert
as example my form <apex:from>
<form id="1">
<p> hello word as a example </p>
</form>
<form id="2">
<p> hello word as a example </p>
</form>
<form id="3">
<p> hello word as a example </p>
</form>
echa form values insert in the data base how to possible on visualfroce page ???
</apex:form>

thanks
nagma
hi everyone

Please support me that i have seen , how to search in  the datatable on the visualfroce page ??



Please support me


Thanks

Nagma
hi , everyone


i have a datatable and each particular row want to check box and each cehck box click the check then particular row disable and uncheked its enable how to possible ???

Please support me


Thanks
Nagma Khan
hi Please

how to done pagination with custome object with controller ??

 same formate how to slove please support me «12345» ?


thanks
hi
Please support me

question =>  i have a dependend pic list country and city when select the India then showing all India City and when i select the the ctiy name delhi then automatically pop up form for filling information delhi person
how to slove this problem pelase support me with simple code ? and idea
hi

Please any one support me
how to slove ?
I have a url https://c.ap5.visual.force.com/apex/OutBoundService?id=a047F0000011ei5QAA          and i want to read another visualfroce page that
particualr record id its dynamically on the second page please support me


Thanks
Nagma Khan
hi Everyone 

Please support me 

Querstion 
i have a visualforce page data table with custom object just on click button for each particular records and click the button go to other visualfroce page its means second visualfroce page and there place replaced by  start date and end date with the first visualforce start date and end date .


Please support me 


Thanks 
Nagma Khan 
hi

how to show each contacts on the visualfroce page and each particular record have a button for edit and delete and save  ??

example
id ,lastName,firstName
112222xhd , xyz , yyy              edit ,delete,save
same another records .............. how to possible please suggest me


Thanks
Nagma

 
hi


Please how to count the child account Related to the parent Account on the Parent Account? used with the Trigger


Thanks
Nagma Khan
hi

i want to send a email to all contact person and showing all contact details on the visualfroce and want to send the email to all contact person just clicking button sending email


Thanks
Nagma khan
hi

Please any one support me about  How to integration with the Salesfrofe to GoToWebiner ??
how to Registration with the Webiner ??


Thanks
Nagma
hi
 i am new so please any one support me that i have a provle because i have done SOPA API and used both salesfroce developer org and save the vale sourse org but not save the value Destionation org pelase support how to save both side same value

this is my code
its my Class
public class apexServForm {

    public PageReference Save() {
    // Established the connection
            partnerSoapSforceCom.Soap   myPatnerSoap= new partnerSoapSforceCom.Soap();  
            
        partnerSoapSforceCom.LoginResult partnerLoginResult=myPatnerSoap.login('xx@gmail.com','its my passwordand sessionid');
                    
                    system.debug('aklim ----------'+partnerLoginResult);
                    system.debug('this is login session'+partnerLoginResult.sessionId);
                    
                   // pass parameters (name,phone,city)
                    String sessionId=partnerLoginResult.sessionId;
     soapSforceComSchemasClassServiceacc.SessionHeader_element  webserivceSessionHeader=new soapSforceComSchemasClassServiceacc.SessionHeader_element();
             webserivceSessionHeader.sessionId=sessionId;               
                    soapSforceComSchemasClassServiceacc.ServiceAccount   objA1 = new soapSforceComSchemasClassServiceacc.ServiceAccount();
        
                    objA1.SessionHeader=webserivceSessionHeader;
                    String status = objA1.createCustomer(objA.Name,objA.Phone,objA.BillingCity); // invoke sourse method
                    if(status == 'success'){
                        insert objA;
                        
                    }
                    if(objA.Id !=NULL){
                        statusMsg='customer create successfuly... !';
                    }
        return null;
    }

 public Account objA{get;set;}
 public String statusMsg{get;set;}
    public apexServForm (){
        objA=new Account();
                   
        statusMsg='';
    }
}
// its my visualforce page           
<apex:page controller="apexServForm" tabStyle="Account">
  <apex:form >
      <apex:outputtext value="{!statusMsg}" style="clolor:green;font-size:20px;font-weight:bold;"></apex:outputtext>
          <apex:pageblock title="New Customer">
              <apex:pageblockSection title="personal Information" columns="1">
                  <apex:inputField value="{!objA.Name}"></apex:inputField>
                      <apex:inputField value="{!objA.Phone}"></apex:inputField>
             
              </apex:pageblockSection>
            <apex:pageblockSection title="Address Infromation"  columns="1">
                 
                  <apex:inputField value="{!objA.BillingCity}"></apex:inputField>
              
              </apex:pageblockSection>

                
                  <apex:pageblockButtons >
                      <apex:commandButton action="{!Save}" value="Save"/>
                  
                  </apex:pageblockButtons>
          
          </apex:pageblock>
 
 
  </apex:form>
</apex:page>
Please solve my problem because only one side sourse side data store sourse side
how to store both side data ??pealse slove




Thanks
Nagma
hi
 i am new so please any one support me that i have a provle because i have done SOPA API and used both salesfroce developer org and save the vale sourse org but not save the value Destionation org pelase support how to save both side same value

this is my code
its my Class
public class apexServForm {

    public PageReference Save() {
    // Established the connection
            partnerSoapSforceCom.Soap   myPatnerSoap= new partnerSoapSforceCom.Soap();  
            
        partnerSoapSforceCom.LoginResult partnerLoginResult=myPatnerSoap.login('xx@gmail.com','its my passwordand sessionid');
                    
                    system.debug('aklim ----------'+partnerLoginResult);
                    system.debug('this is login session'+partnerLoginResult.sessionId);
                    
                   // pass parameters (name,phone,city)
                    String sessionId=partnerLoginResult.sessionId;
     soapSforceComSchemasClassServiceacc.SessionHeader_element  webserivceSessionHeader=new soapSforceComSchemasClassServiceacc.SessionHeader_element();
             webserivceSessionHeader.sessionId=sessionId;               
                    soapSforceComSchemasClassServiceacc.ServiceAccount   objA1 = new soapSforceComSchemasClassServiceacc.ServiceAccount();
        
                    objA1.SessionHeader=webserivceSessionHeader;
                    String status = objA1.createCustomer(objA.Name,objA.Phone,objA.BillingCity); // invoke sourse method
                    if(status == 'success'){
                        insert objA;
                        
                    }
                    if(objA.Id !=NULL){
                        statusMsg='customer create successfuly... !';
                    }
        return null;
    }

 public Account objA{get;set;}
 public String statusMsg{get;set;}
    public apexServForm (){
        objA=new Account();
                   
        statusMsg='';
    }
}

// its my visualforce page           
<apex:page controller="apexServForm" tabStyle="Account">
  <apex:form >
      <apex:outputtext value="{!statusMsg}" style="clolor:green;font-size:20px;font-weight:bold;"></apex:outputtext>
          <apex:pageblock title="New Customer">
              <apex:pageblockSection title="personal Information" columns="1">
                  <apex:inputField value="{!objA.Name}"></apex:inputField>
                      <apex:inputField value="{!objA.Phone}"></apex:inputField>
             
              </apex:pageblockSection>
            <apex:pageblockSection title="Address Infromation"  columns="1">
                 
                  <apex:inputField value="{!objA.BillingCity}"></apex:inputField>
              
              </apex:pageblockSection>

                
                  <apex:pageblockButtons >
                      <apex:commandButton action="{!Save}" value="Save"/>
                  
                  </apex:pageblockButtons>
          
          </apex:pageblock>
 
 
  </apex:form>
</apex:page>
Please solve my problem because only one side sourse side data store sourse side
how to store both side data ??pealse slove



Thanks
Nagma
hi


pelase any one support me that, how to project deploying in the froce.com step by step process?

Thanks
Nagam
hi
i am new with the REST  API and SOAP API  please any one give me a details how to start
1 =>please give me a Example of the REST API
2 =>please give me a Example of the SOAP  API
how to learn Simple way REST API AND SOAP API ?? PLEASE GIVE ME A DETAILS

Thanks
Nagma khan
hi

trigger PrvnentToDeleteContact on Contact (before Delete) {
    
    for(contact cont:trigger.old){
        if(cont.accountid==Null){
            cont.addError('you cant delete the contact because contact doest not connect the account');
        
        }
    
    }
}
how to write a test class ?
hi any one please give me a logic for the test class i have all knowlege but how i write please support ??

 
hi
its my Class
// trigger that work if account on check box is checked then automatically checked on the contact checked
trigger UpdateContact on Account (before insert, before update) {
    List<Contact> contactList=new List<Contact>();
    if(trigger.isInsert){
        For(Account a: Trigger.new){
            Contact c=new Contact(lastName=a.name);
            c.Contact_checkbox__c=true;
            contactList.add(c);
            a.account_checkbox__c=true;
        }
        insert contactList;
    }
    if(trigger.isUpdate){
        For(Account a: Trigger.new){
            List<Contact> c= new List<Contact>([select id from contact where LastName=:a.name limit 1]);
            c[0].Contact_checkbox__c=a.account_checkbox__c;
            contactList.add(c[0]);
        }
        update contactList;
    }
}
========================================
its my test class how to complete becasue its only coverage 64 %
@isTest
public class UpdateContact_Test{
    @isTest
    static void tesMethodss(){
        account ac=new account(name='test');
        insert ac;
        contact cont=new contact(lastName='testMethod',firstName='testOne', Accountid=ac.Id);
        
            List<Contact> c= new List<Contact>([select id from contact where LastName=:ac.name limit 1]);
            c[0].Contact_checkbox__c=ac.account_checkbox__c;
            
        
        update c;
    }
}
can any one support me ?
hi everyone

Please support me that i have seen , how to search in  the datatable on the visualfroce page ??



Please support me


Thanks

Nagma
hi
Please support me

question =>  i have a dependend pic list country and city when select the India then showing all India City and when i select the the ctiy name delhi then automatically pop up form for filling information delhi person
how to slove this problem pelase support me with simple code ? and idea
hi

Please any one support me
how to slove ?
I have a url https://c.ap5.visual.force.com/apex/OutBoundService?id=a047F0000011ei5QAA          and i want to read another visualfroce page that
particualr record id its dynamically on the second page please support me


Thanks
Nagma Khan
hi

how to show each contacts on the visualfroce page and each particular record have a button for edit and delete and save  ??

example
id ,lastName,firstName
112222xhd , xyz , yyy              edit ,delete,save
same another records .............. how to possible please suggest me


Thanks
Nagma

 
hi

i want to send a email to all contact person and showing all contact details on the visualfroce and want to send the email to all contact person just clicking button sending email


Thanks
Nagma khan
hi please any how to write a test method ?

// trigger on the case object and count the sum of the related case of the particual Account.
trigger coundSumofCase on Case (after insert,after update) {
    set<id> setid=new set<id>();
    if(trigger.isInsert){   
    for(case c:trigger.new){
        setid.add(c.accountid);
    }
    list<Account> listAccount=[select id,sum_of_case__c from account where id in:setid];
    list<case> listCont=[select id from case where accountid in:setid];
        for(account a:listAccount){
            a.sum_of_case__c=listCont.size();
        }
        update listAccount;
}
    if(trigger.isUpdate){
        for(case c:trigger.new){
            setid.add(c.accountid);
        }
        list<account> listAccount=[select id,sum_of_case__c from account where id in:setid];
        list<case> listcont=[select id from case where accountid in:setid];
        for(account a:listAccount){
            a.sum_of_case__c=listcont.size();
        }
        insert listAccount;
    }
}
hi please any one help me


i am createing a trigger on the contact object and when the insert the data then how to go to mail to the user just like example 
trigger triggerName on Contact(before insert,before update){
  list<contact> listContact=new list<contact>();
for(contact cont:trigger.new){
cont.lastName='test one ';
cont.firstName='testTWO';
listContact.add(cont);
}
insert listContact;
}
pelase support now how to send a email with the trigger ?
hi
i am new please tell me
how  to  create sum of the all opportunity amount which is associated with the Contact record on the contact object 



Thanks
Nagma Khan

Hi,

 

I am trying to write the  Trigger code when the status of the case is changed and any other changes in fields with conditional loops for changing the Mail subject.

 

The issue was on trigger that send the same mail subject when i changed the status or changed the iother fields in the case.

 

The following is my code,

trigger caseUpdationMailNotification on Case ( after update) {
    contact relatedCaseContact;
    CaseComment Cscmnt;
    for(case Cases :trigger.new){
    relatedCaseContact = [SELECT Email FROM Contact WHERE Id = :Cases.ContactId];
      Messaging.reserveSingleEmailCapacity(1);
               //Fetch the related case contact.
       Messaging.SingleEmailMessage CaseNotificationmail = new Messaging.SingleEmailMessage();  
       CaseNotificationmail.setToAddresses(new List<String> { relatedCaseContact.Email });
       CaseNotificationmail.setReplyTo('ambigaraman@gmail.com');
       CaseNotificationmail.setSenderDisplayName('Salesforce Support');            
      
	  If(Cases.Status =='Working'){      
       CaseNotificationmail.setSubject(' Case Status updation : ' +'Changed to working. '+'Case Number:' + Cases.CaseNumber);
       CaseNotificationmail.setPlainTextBody('Your case Status: ' + Cases.CaseNumber +'To view your case <a href=https://na1.salesforce.com/'+Cases.Id);}
       
  If(Cases.Status =='Escalated'){          
   
    CaseNotificationmail.setSubject(' Case Status updation : ' +'Changed to Escalated. '+ 'Case Number:' +Cases.CaseNumber);
    CaseNotificationmail.setPlainTextBody('Your case Status: ' + Cases.CaseNumber +' has been updated.'+'To view your case <a href=https://na1.salesforce.com/'+Cases.Id);
    }   
    
 If(Cases.Status =='closed'){           
    
    CaseNotificationmail.setSubject(' Case Status updation : ' +'Changed to closed. '+ 'Case Number:' +Cases.CaseNumber);
    CaseNotificationmail.setPlainTextBody('Your case Status:' + Cases.CaseNumber +' has been updated.'+'To view your case <a href=https://na1.salesforce.com/'+Cases.Id);
    }     
else{  
    CaseNotificationmail.setSubject(' Case  updation : ' + 'Case Number:'+ Cases.CaseNumber);
    CaseNotificationmail.setPlainTextBody('Your case : ' + ' has been updated.'+'To view your case <a href=https://na1.salesforce.com/'+Cases.Id);
    } 
	
	
    Messaging.sendEmail(new Messaging.SingleEmailMessage[] { CaseNotificationmail });
 }
}

 If i use 'elseif', It again send the email with subject for status changed,

 

Can anyone help me to write the trigger that send the mail that send when we change the status only. or there is only changes in other fields(not in status) of the case?

 

Thanks & Regards.,

Ambiga