sometimes you may want to create a process where uploading a document is mandatory. You can create a single Visualforce page with all of the fields for the record plus the field required to upload a document. code below is an example //VISUALFORCE PAGE <apex:page controller=”docex”> <apex:outputLabel value=”Document Name”/> <apex:inputText...
Add UIButton on UITableView when drag , Swipe or touches moved on Cell Using UIGestureRecognizerDelegate in iPhone
//——– .h //Delegate UIGestureRecognizerDelegate UIButton *YourButton; //——– .m – (UITableViewCell *)tableView:(UITableView *)tableView cellForRowAtIndexPath:(NSIndexPath *)indexPath { static NSString *SimpleTableIdentifier = @”SimpleTableIdentifier”; UITableViewCell *cell = [tableView dequeueReusableCellWithIdentifier:SimpleTableIdentifier];...
Launch the app store app from your application
Step 1: Create an empty iPhone application with and add the UIViewController subclass to it. Step 2: Create a view just like the one given below and the add the view of this view controller into the iPhone window. Step 3: Create a function for the button and this function will contain the code for launching the app store application of the iOS device from your application. So declare a...
How to export leads to excel sheet in salesforce apex
Here is the code for exporting leads to excel in salesforce apex Class Code: public class exportExcel { public string header{get;set;} public List<wrapper> lstwrapper {get; set;} public class wrapper{ public string Id{get; set;} public string Name{get; set;} public string Email{get; set;} } public string Filetype{get;set;} public boolean isExcel {get;set;} public boolean isCsv {get;set;}...
To get geo location OR longitude and latitude current location OR current Location of user
To get longitude and latitude of current location there is simple java script function given below — <script> /*Location functions here*/ function getUserLocation() { //check if the geolocation object is supported, if so get position if (navigator.geolocation) navigator.geolocation.getCurrentPosition(displayLocation, displayError); else document...
To add Print button on your web page.
Adding Print Button on your web page is very simple . I am giving you following simple example. <html> <head> <title>Print Test</title> </head> <body> <h1>Print Test</h1> <input type=”button” onClick=”window.print()” value=”Print This Page”/> </body> </html> The most important is ‘on click...
How to add share buttons on web Page .or To add plugin of social networking site to your web page .
It is very very simple work to add share button on your webpage . there are ready made code available for that . you have to just go to this url:- . in this url , you will find the code of all share button like facebook,twittrer, google+,gmail ,yahoomail and lots more near about there are 50 to 60 share button on this page . you have to just copy and paste these buttons code. You have privilege...
Could not load file or assembly ‘MySql.Data, Version=5.1.5.0, …” [Solved]
Error: If you are accessing MySql from your ASP.NET code and getting this error after uploading code to Server: Parser Error Message: Could not load file or assembly ‘MySql.Data, Version=5.1.5.0, Culture=neutral, PublicKeyToken=c5687fc88969c44d’ or one of its dependencies. The system cannot find the file specified. Solution: Make sure /bin/MySql.Data.dll exists on root folder. I was...
How to run/call Method when applicationDidEnterBackground And Get Updates By LocalNotification In Iphone/iPad Application
//————————————————————— AppDelegate.h UIBackgroundTaskIdentifier bgTask; //————————————————————— AppDelegate.m –...
APEX Sharing Violation – Security Review Error Solved
In the process of making a salesforce app live on appexchange, we need to get our package tested and passed from security review team. During such one process, my app got rejected due to APEX Sharing Violation error as reported by Checkmarx Report. It was termed as Apex Force com Serious Security Risk. Description of Issue: The Force.com platform makes extensive use of data sharing rules. Each...