Interview Questions   Tutorials   Discussions   Programs   

Apex - How to work with salesforce offline?




426
views
asked kiran-57 February 4, 2013 01:12 AM  

How to work with salesforce offline?


           

2 Answers



 
answered By   0  
hi ,
the answer is by using offline briefcase configuration .

regards,
Kapu
flag   
   add comment

 
answered By Addanki   0  
public void OnlineSubmit(SubmitEventArgs e)
{
   // Logic for submitting online goes here.
}
public void OfflineSubmit(SubmitEventArgs e)
{
   // Access and submit to the e-mail connection.
   DataConnectionCollection myDataConnections =
      this.DataConnections;
   EmailSubmitConnection submitConnection =
      (EmailSubmitConnection)myDataConnections["E-mail Submit"];
   submitConnection.Execute();
   // Notify the user that the form was submitted offline.
   System.Text.StringBuilder myMessage = 
      new System.Text.StringBuilder();
   myMessage.Append("You submitted your Sales Report offline. ");
   myMessage.Append("Your Sales Report is in your outbox ");
   myMessage.Append("and will be submitted when you connect to ");
   myMessage.Append("the network.");
    MessageBox.Show(myMessage.ToString());
   // The submission was successful.
   e.CancelableArgs.Cancel = false;
}
flag   
   add comment

Your answer

Join with account you already have

FF

Preview


Ready to start your tutorial with us? That's great! Send us an email and we will get back to you as soon as possible!

Alert