So after winter17 we cannot see site user debug as a salesforce update.
To enable that we have to set cookies in user browser.
In chrome open inspect element>console and paste this.
Document.cookie="debug_logs;domain=.force.com";
here I blog about the latest tech news,tricks and tips for Salesforce and other interesting topics.
So after winter17 we cannot see site user debug as a salesforce update.
To enable that we have to set cookies in user browser.
In chrome open inspect element>console and paste this.
Document.cookie="debug_logs;domain=.force.com";
ECHO Retrieve and Deployment auto script started.. cd\ cd <Path to>\Retrieve Meta start /W ant retrieveUnpackaged ^&^& exit Xcopy /S /I /E /Y "<Path to>\Retrieve Meta\retrieveUnpackaged" "<Path to>\Deploy Meta\codepkg" ECHO Retrieve file copied to Deployment folder.. cd\ cd <Path to>\Deploy Meta start /W ant deployCode ^&^& exit ECHO Retrieve and Deployment auto script stoped.. PAUSE Press Enter to close
ant -f build.xml all
for(var key in conn) {
var value = key +" : "+ conn[key]; console.log("***"+value);
}
Option 2:console.log(conn);
<img alt="<image_Name>" src="data:image/<image_File_Extension>;base64, <base64_Image_String>"></img>http://developer.force.com/cookbook/recipe/converting-a-rich-text-area-fields-image-for-api-upload<!-- Load script here -->
<apex:stylesheet value="{!URLFOR($Resource.Bootstrap, 'bootstrap-3.2.0-dist/css/bootstrap-theme.min.css')}"/>
<apex:stylesheet value="{!URLFOR($Resource.Bootstrap, 'bootstrap-3.2.0-dist/css/bootstrap.min.css')}"/>
<apex:includeScript value="https://code.jquery.com/jquery.js"/>
<apex:includeScript value="{!URLFOR($Resource.Bootstrap, 'bootstrap-3.2.0-dist/js/bootstrap.min.js')}"/>
4. Now create div and give the class of bootstrap as shown here<div class="container">
<br/>
<div class="panel panel-primary">
<div class="panel-heading">
<h3 class="panel-title">Create Account</h3>
</div>
<div class="panel-body">
Details:
<div class="row">
<div class="col-md-4"><input id="inp1" type="text" placeholder="Account Name" class="form-control"/></div>
<div class="col-md-4"><input id="inp2" type="text" placeholder="Description" class="form-control"/></div>
<div class="col-md-4"><input id="inp3" type="text" placeholder="Phone" class="form-control"/></div>
</div>
<br/>
<br/>
<button class="btn btn-lg btn-primary btn-block" type="submit" onclick="createAcc();">Save</button>
</div>
</div>
</div>
5. Now provide this <javaScript> to the page to we can save the records.<script>
Visualforce.remoting.timeout = 120000; // Set timeout at page level
var $j = jQuery.noConflict();
function createAcc(){
$j('#basicModal2').modal('show');
var accName= $j('#inp1').val();
var accDes= $j('#inp2').val();
var accPhn= $j('#inp3').val();
Visualforce.remoting.Manager.invokeAction('{!$RemoteAction.Bootstrap_Mobile_CreateAccountCon.createAccount}',accName,accDes,accPhn,handleResult);
}
function handleResult(result, event){
if (event.status) {
alert(result);
}
}
</script>
6. Now create a controller and in that create this javascriptRemoting method@RemoteAction
global static string createAccount(String accName, String accDes, String accPhn){
Account acc = new Account();
acc.name = accName;
acc.Description = accDes;
acc.Phone = accPhn;
insert acc;
return 'Success';
}
That is it, You have created a visualforce page that is using bootstrap css for view and apex controller for saving the records.<div class="checkbox col-md-4">
<label>
<input type="checkbox"> Check Box</input>
</label>
</div>
//get the checkbox values as this or you can also get a array of objects and use .each
//for multiple checkboxes id starting with inp4
function checkId(){
var inpVal= $j('#inp4').prop('checked');
alert(inpVal);
}