Get and set process variable:
// Set variable
kcontext.setVariable("XYZ", "9000001214");
// Get variable
System.out.println("\t##### Process variable XYZ: " +
kcontext.getVariable("XYZ"));
Get and set process variable:
// Set variable
kcontext.setVariable("XYZ", "9000001214");
// Get variable
System.out.println("\t##### Process variable XYZ: " +
kcontext.getVariable("XYZ"));
var myConfObj = { | |
iframeMouseOver : false | |
} | |
window.addEventListener('blur',function(){ | |
if(myConfObj.iframeMouseOver){ | |
console.log('Wow! Iframe Click!'); | |
} | |
}); | |
document.getElementById('YOUR_CONTAINER_ID').addEventListener('mouseover',function(){ |
.grid_12 | |
%h1 Contact | |
%h2 Want to get in contact, have a question or just fancy a chat? | |
%p Fill out the form below | |
%form{:action => "/contact", :method => "post"} | |
%div{:style => "margin:0;padding:0;display:inline"} | |
%label{:for => "contact_subject"} Subject: | |
%br | |
%input#contact_subject{:name => "subject", :size => "30", :type => "text"}/ |
# Install linux update, followed by GCC and Make | |
sudo yum -y update | |
sudo yum install -y gcc make | |
# Install Nginx and PHP-FPM | |
sudo yum install -y nginx php-fpm | |
# Install PHP extensions | |
sudo yum install -y php-devel php-mysql php-pdo \ | |
php-pear php-mbstring php-cli php-odbc \ |
<?php | |
add_action( 'wp_enqueue_scripts', 'enqueue_my_styles' ); | |
function enqueue_my_styles() { | |
global $wp_styles; | |
// Load the main stylesheet | |
wp_enqueue_style( 'my-theme', get_stylesheet_uri() ); |
var sys = require('util'), | |
rest = require('restler'); | |
var baseurl = "<<instance URL>>/rest/v10" | |
// get oAuth token | |
var jsonData = {"grant_type":"password","username":"<<username>>","password":"<<password>>","client_id":"sugar"}; | |
rest.postJson(baseurl+'/oauth2/token', jsonData).on('2XX', function(data) { | |
if ( data.error ) { | |
sys.puts("Error: " + data.error_message); |