This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<apex:page standardController="zqu__Quote__c" tabStyle="zqu__Quote__c" sidebar="false"> | |
<apex:composition template="zqu__QuoteWizardTemplateNoForm"> | |
<apex:define name="PageBody"> | |
<zqu:CreateQuote subscriptionId="{!$CurrentPage.parameters.subscriptionId}" | |
billingAccountId="{!$CurrentPage.parameters.billingAccountId}" | |
opportunityId="{!$CurrentPage.parameters.oppId}" | |
crmAccountId="{!$CurrentPage.parameters.crmAccountId}" | |
renderBackButton="true" | |
title="MyTitle-Change this for lab exercise"/> | |
</apex:define> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
global class DefaultValues extends zqu.CreateQuoteController.PopulateDefaultFieldValuePlugin{ | |
global override void populateDefaultFieldValue | |
(SObject record, zqu.PropertyComponentController.ParentController pcc) | |
{ | |
super.populateDefaultFieldValue(record, pcc); | |
record.put('zqu__InitialTerm__c', 12); | |
record.put('zqu__RenewalTerm__c', 12); | |
record.put('zqu__ValidUntil__c', Date.today().addDays(30)); | |
record.put('zqu__StartDate__c', Date.today()); | |
record.put('zqu__PaymentMethod__c', 'Credit Card'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!doctype html> | |
<html lang="en"> | |
<head> | |
<meta charset="utf-8"> | |
<title>The HTML5 Starter Template</title> | |
<meta name="description" content="The HTML5 Template"> | |
<meta name="author" content="Example"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for app in $(heroku apps); do heroku apps:destroy --app $app --confirm $app; done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
echo "\n-----------------------------" | |
echo "Updating Node..." | |
echo "-----------------------------\n" | |
. ~/.profile | |
nvm install 7 | |
nvm alias default 7 | |
echo "\n-----------------------------" | |
echo "Updating Heroku CLI..." |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
var pg = require('pg'); | |
app.get('/db', function (request, response) { | |
pg.connect(process.env.DATABASE_URL, function(err, client, done) { | |
client.query('SELECT * FROM test_table', function(err, result) { | |
done(); | |
if (err) | |
{ console.error(err); response.send("Error " + err); } | |
else | |
{ response.render('pages/db', {results: result.rows} ); } |