Note: This demo does not use Redwood Design Patterns and is meant to show technical functionality rather than the best practices in UI design.
This recipe shows you how to implement an editable table using Buffering Data Provider with Service Data Provider where users can edit multiple existing rows or create new rows, before they submit all their changes in one transaction to the backend service. The recipe also demonstrates how to implement validation. It ensures, for example, that a change to an employee's salary remains within the minimum and maximum values for that employee's job classification.
Employees
First Name
Last Name
Job
Salary
Salary Range
Actions
Ellen
Abel
Sales Representative
$6000 - 12000
Sundar
Ande
Sales Representative
$6000 - 12000
Mozhe
Atkinson
Stock Clerk
$2008 - 5000
David
Austin
Programmer
$4000 - 10000
Hermann
Baer
Public Relations Representative
$4500 - 10500
Shelli
Baida
Purchasing Clerk
$2500 - 5500
Amit
Banda
Sales Representative
$6000 - 12000
Elizabeth
Bates
Sales Representative
$6000 - 12000
Sarah
Bell
Shipping Clerk
$2500 - 5500
David
Bernstein
Sales Representative
$6000 - 12000
Laura
Bissot
Stock Clerk
$2008 - 5000
Harrison
Bloom
Sales Representative
$6000 - 12000
Alexis
Bull
Shipping Clerk
$2500 - 5500
Anthony
Cabrio
Shipping Clerk
$2500 - 5500
Gerald
Cambrault
Sales Manager
$10000 - 20000
Nanette
Cambrault
Sales Representative
$6000 - 12000
John
Chen
Accountant
$4200 - 9000
Kelly
Chung
Shipping Clerk
$2500 - 5500
Karen
Colmenares
Purchasing Clerk
$2500 - 5500
Curtis
Davies
Stock Clerk
$2008 - 5000
Lex
De Haan
Administration Vice President
$15000 - 30000
Julia
Dellinger
Shipping Clerk
$2500 - 5500
Jennifer
Dilly
Shipping Clerk
$2500 - 5500
Louise
Doran
Sales Representative
$6000 - 12000
Bruce
Ernst
Programmer
$4000 - 10000
Alberto
Errazuriz
Sales Manager
$10000 - 20000
Britney
Everett
Shipping Clerk
$2500 - 5500
Daniel
Faviet
Accountant
$4200 - 9000
Pat
Fay
Marketing Representative
$4000 - 9000
Kevin
Feeney
Shipping Clerk
$2500 - 5500
Jean
Fleaur
Shipping Clerk
$2500 - 5500
Tayler
Fox
Sales Representative
$6000 - 12000
Adam
Fripp
Stock Manager
$5500 - 8500
Timothy
Gates
Shipping Clerk
$2500 - 5500
Ki
Gee
Stock Clerk
$2008 - 5000
Girard
Geoni
Shipping Clerk
$2500 - 5500
William
Gietz
Accountant
$4200 - 9000
Kimberely
Grant
Sales Representative
$6000 - 12000
Douglas
Grant
Shipping Clerk
$2500 - 5500
Nancy
Greenberg
Finance Manager
$8200 - 16000
Danielle
Greene
Sales Representative
$6000 - 12000
Peter
Hall
Sales Representative
$6000 - 12000
Michael
Hartstein
Marketing Manager
$9000 - 15000
Shelley
Higgins
Accounting Manager
$8200 - 16000
Guy
Himuro
Purchasing Clerk
$2500 - 5500
Alexander
Hunold
Programmer
$4000 - 10000
Alyssa
Hutton
Sales Representative
$6000 - 12000
Charles
Johnson
Sales Representative
$6000 - 12000
Vance
Jones
Shipping Clerk
$2500 - 5500
Payam
Kaufling
Stock Manager
$5500 - 8500
Alexander
Khoo
Purchasing Clerk
$2500 - 5500
Steven
King
President
$20080 - 40000
Janette
King
Sales Representative
$6000 - 12000
Neena
Kochhar
Administration Vice President
$15000 - 30000
Sundita
Kumar
Sales Representative
$6000 - 12000
Renske
Ladwig
Stock Clerk
$2008 - 5000
James
Landry
Stock Clerk
$2008 - 5000
David
Lee
Sales Representative
$6000 - 12000
Jack
Livingston
Sales Representative
$6000 - 12000
Diana
Lorentz
Programmer
$4000 - 10000
Jason
Mallin
Stock Clerk
$2008 - 5000
Steven
Markle
Stock Clerk
$2008 - 5000
James
Marlow
Stock Clerk
$2008 - 5000
Mattea
Marvins
Sales Representative
$6000 - 12000
Randall
Matos
Stock Clerk
$2008 - 5000
Susan
Mavris
Human Resources Representative
$4000 - 9000
Samuel
McCain
Shipping Clerk
$2500 - 5500
Allan
McEwen
Sales Representative
$6000 - 12000
Irene
Mikkilineni
Stock Clerk
$2008 - 5000
Kevin
Mourgos
Stock Manager
$5500 - 8500
Julia
Nayer
Stock Clerk
$2008 - 5000
Donald
OConnell
Shipping Clerk
$2500 - 5500
Christopher
Olsen
Sales Representative
$6000 - 12000
TJ
Olson
Stock Clerk
$2008 - 5000
Lisa
Ozer
Sales Representative
$6000 - 12000
Karen
Partners
Sales Manager
$10000 - 20000
Valli
Pataballa
Programmer
$4000 - 10000
Joshua
Patel
Stock Clerk
$2008 - 5000
Randall
Perkins
Shipping Clerk
$2500 - 5500
Hazel
Philtanker
Stock Clerk
$2008 - 5000
Luis
Popp
Accountant
$4200 - 9000
Trenna
Rajs
Stock Clerk
$2008 - 5000
Den
Raphaely
Purchasing Manager
$8000 - 15000
Michael
Rogers
Stock Clerk
$2008 - 5000
John
Russell
Sales Manager
$10000 - 20000
Nandita
Sarchand
Shipping Clerk
$2500 - 5500
Ismael
Sciarra
Accountant
$4200 - 9000
John
Seo
Stock Clerk
$2008 - 5000
Sarath
Sewall
Sales Representative
$6000 - 12000
Lindsey
Smith
Sales Representative
$6000 - 12000
William
Smith
Sales Representative
$6000 - 12000
Stephen
Stiles
Stock Clerk
$2008 - 5000
Martha
Sullivan
Shipping Clerk
$2500 - 5500
Patrick
Sully
Sales Representative
$6000 - 12000
Jonathon
Taylor
Sales Representative
$6000 - 12000
Winston
Taylor
Shipping Clerk
$2500 - 5500
Sigal
Tobias
Purchasing Clerk
$2500 - 5500
Peter
Tucker
Sales Representative
$6000 - 12000
Oliver
Tuvault
Sales Representative
$6000 - 12000
Jose Manuel
Urman
Accountant
$4200 - 9000
Peter
Vargas
Stock Clerk
$2008 - 5000
Clara
Vishney
Sales Representative
$6000 - 12000
Shanta
Vollman
Stock Manager
$5500 - 8500
Alana
Walsh
Shipping Clerk
$2500 - 5500
Matthew
Weiss
Stock Manager
$5500 - 8500
Jennifer
Whalen
Administration Assistant
$3000 - 6000
Eleni
Zlotkey
Sales Manager
$10000 - 20000
Select Row
Recipe
Create a Table component that displays editable rows of employees. For changes to salary, you'll use a
custom validator to ensure that the salary remains within a valid range. All changes are
stored in a buffer until the user clicks Save, at which time a REST call posts the changes
to the backend service.
Create a Table to Display Employees
Use Visual Builder's Add Data Quick Start to add a Table component to your page. As this Quick Start creates
a variable of type Service Data Provider by default, you'll
need to create a new variable of type Buffering Data Provider and configure your Table
component's
data property to reference the new variable.
In the Component Palette, drag a Table component and drop
it on the Page Designer.
In the Properties pane, use the
Quick
Start Add Data
to add employee data to the table. Add the fields that you want to render and make editable. For this
recipe, it will be employee name, job, and salary.
Create
a
new variable, employeesBDP, of type Buffering Data Provider.
Configure its dataProvider required property to be employeesListSDP.
In the
Properties pane for the Table component, change the data property to point to
[[ $variables.employeesBDP.instance ]] instead of employessListSDP.
Note the use of instance at the end of the property value.
In the TableBeforeRowEditChain action chain, add an Assign
Variables action (JSON chain version here) where you assign the current row
data (rowData) to the currentRowBuffer page variable.
Add an ojBeforeRowEditEnd event listener to the Table component.
The generated TableBeforeRowEditEnd action chain needs two new parameters added to it as
input params. In the Properties pane beside Parameters,
click Add to create the following two parameters:
currentRowBuffer of type EmployeeType
event of type Any
To map these two new parameters, open the Event Listeners tab and select the
TableBeforeRowEditEnd action chain under the tableBeforeRowEditEnd event. In the
Properties
pane, map the new parameters to $page.variables.currentRowBuffer and $event
respectively.
In the TableBeforeRowEditEnd action chain, add an If action and test if
cancelEdit parameter is false. If false, changes need to be stored
into employeesBDP. Storing changes is
implemented using a Call Variable action for variable employeesBDP and function
updateItem with
parameters:
Important: Both the ojBeforeRowEdit and ojBeforeRowEditEnd events must have asynchronous behaviour
enabled for the editable Table component to work.
Locate tableBeforeRowEdit event under Event Listeners and enable Async Handling
option in properties. Do the same for tableBeforeRowEditEnd event.
The final JSON code should look like this:
In the Table component's Properties pane, set the edit-mode property to rowEdit.
Each table cell needs to be enhanced to make it editable:
Drag and drop an oj-bind-text component onto the first table column which needs to be
editable. This generates a cell
template for the column.
In the Structure view of the page, right click the oj-bind-text node and select
Surround and If from the context menu to
generate a condition for when to render the text component. Set the condition for the
oj-bind-if to
[[$current.mode === 'navigation']]. When table row is in navigation read-only mode, the
text
component renders the column value.
Drop an oj-input-text component or any required component into the same cell next to the
oj-bind-if
condition, and wrap it again in an If condition, but this time set the condition to
[[ $current.mode === 'edit']] to show an editable input text component when the table row
is in edit mode.
Remove label-hint and readonly properties from the input text component and
bind the
value property to the corresponding property from currentRowBuffer. For
example,
{{ $variables.currentRowBuffer.firstName }}.
Use similar steps to make the other table columns editable. The Table component is now editable, and when
run
changes are stored in an instance of the buffering data provider. An example of what the finished table cell
templates
might look like follows:
Validation ensures that row changes are submitted only when changed row data is valid. For example, each
employee entry
must have a first and last name, and changes to an employee's salary must remain within the range for the
employee's
paygrade.
Add an class="editable" attribute to all the editable components that need to be validated in
the editable table row cell templates.
Write a custom function in the page's PageModule class called isFormValid to
validate all components with the editable value for the class attribute:
isFormValid(event) {
const detail = event.detail;
if (detail !== undefined && detail.cancelEdit === true) {
// skip validation
return true;
}
// iterate over editable fields which are marked with "editable" class
// and make sure they are valid:
let table = event.target;
if (table === undefined) {
table = event.detail.originalEvent.target;
}
let editables = table.querySelectorAll(".editable");
for (let i = 0; i < editables.length; i++) {
let editable = editables.item(i);
editable.validate();
// Table does not currently support editables with async validators
// so treating editable with 'pending' state as invalid
if (editable.valid !== "valid") {
return false;
}
}
return true;
}
In the TableBeforeRowEditEndChain action chain, add an If action to the start of the action
chain to execute existing logic when $page.functions.isFormValid(event). That is, changes
should only be saved when row data are valid.
When row data are invalid it is important to prevent a user from leaving the table row. To keep a table
row in edit mode
regardless of where user clicks until the user enters valid data, set the Prevent Default property to
false on
the TableBeforeRowEditEnd event listener. In the Event Listeners tab, select the
tableBeforeRowEditEnd event (and not the
action chain for that event) and, in the Properties pane, set the Prevent Default condition to
[[!$functions.isFormValid($event)]].
Track and Save Changes
Saving changes involves collecting them from the Buffering Data Provider instance, marking changes as being
submitted, creating a single batch
REST Call payload to store all changes in one transaction, and finally marking changed items in the
Buffering Data Provider as submitted.
Drag a Button component and drop it above the Table component. Name it Save.
In the Events tab of the Properties pane for the Save button, add a Quick Start: 'ojAction' event and a
corresponding action chain named SubmitChanges.
In the SubmitChanges JavaScript action chain, multiple supporting functions need to be added to the
SubmitChanges
action chain. The setStatusTo function sets Buffering Data Provider items to submitting,
submitted, or
unsubmitted states. The createBatchPayload function generates the payload with all changes.
The recommended way to add a new record is described in the Table
Add Row recipe.
The solution presented here is an alternative approach to insert a new blank row, and make it editable.
All records in the Table component must have a unique key value.
For a newly-inserted record, which does not yet have a unique ID assigned by a backend database, we need
to generate a unique value.
In its simplest form, it can be a new page variable, named nextIdValue with a default
value that starts with a high number that guarantees uniqueness when used in combination with existing
records. This is
the approach that this recipe follows. If you haven't yet, add the nextIdValue variable now.
Add two new page variables, scrollPosition and editRow both of type
Any.
In the Properties pane, change the Table component to use these variables from the
scroll-position="{{ $page.variables.scrollPosition }}" and
edit-row="{{ $page.variables.editRow }}" properties. This allows us to programatically scroll
the table to a row, and to initiate row editing.
Drag a Button component and drop it above the Table component. Name it Insert Row.
In the Events tab of the Properties pane for the Button component, add a Quick Start: 'ojAction' event
and
a corresponding action chain named InsertRow.
In the InsertRow action chain, we add actions to increase the value of
nextIdValue, create a blank record with default values, insert the row into
employeesBDP using the addItem function call, scroll to the position of the
newly-inserted row, and make the row editable. The code for these actions is similar to the following:
Add an extra column, Actions, to the Table component to display a Delete button to perform the delete operation
on each row.
Drag a Button component and drop it on the Table component as a new column. Change the appearance of the
Button
component so that it renders an icon without borders
(class="vb-icon vb-icon-delete-trash-can").
In the Events tab of the Properties pane for the Delete button, add a Quick Start: 'ojAction' event, and a
corresponding
action chain named DeleteRow.
In the DeleteRow action chain, remove a row using a Call Variable action that calls the
removeItem method:
$page.variables.employeesBDP.instance.removeItem({ metadata: { key: current.key }, data: current.row});
Feedback
Please post your feedback or ask questions about any Visual Builder Cookbook recipe at Visual Builder Customer Connect forum. Thank you.
Download batch-editable-table-bdp Recipe
Download this recipe source code either as Visual Builder Web Application or Visual Builder App UI. After download, import the ZIP file into your Visual Builder instance.
License Agreement
Copyright (c) 2019, 2025 Oracle and/or its affiliates. All rights reserved.
The Universal Permissive License (UPL), Version 1.0
Subject to the condition set forth below, permission is hereby granted to any person obtaining a copy of this software, associated documentation and/or data (collectively the "Software"), free of charge and under any and all copyright rights in the Software, and any and all patent rights owned or freely licensable by each licensor hereunder covering either (i) the unmodified Software as contributed to or provided by such licensor, or (ii) the Larger Works (as defined below), to deal in both
(a) the Software, and
(b) any piece of software and/or hardware listed in the lrgrwrks.txt file if one is included with the Software (each a “Larger Work” to which the Software is contributed by such licensors),
without restriction, including without limitation the rights to copy, create derivative works of, display, perform, and distribute the Software and make, use, sell, offer for sale, import, export, have made, and have sold the Software and the Larger Work(s), and to sublicense the foregoing rights on either these or other terms.
This license is subject to the following condition:
The above copyright notice and either this complete permission notice or at a minimum a reference to the UPL must be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
********************************************************************************
Oracle elects to use only the GNU Lesser General Public License version 2.1
(LGPL) for any software where a choice of LGPL/GPL license versions are made
available with the language indicating that LGPLv2.1/GPLv2 or any later version
may be used, or where a choice of which version of the LGPL/GPL is applied is
unspecified.
********************************************************************************
THIRD-PARTY COMPONENT FILE LICENSE
(path in the installation) (see license text reproduced below)
--------------------------------------------------------------------------------
js/libs/chai/chai-4.2.0.js MIT
js/libs/crossroads/crossroads.js MIT
js/libs/es6-promise/es6-promise.js MIT
js/libs/hammer/hammer-2.0.8.js MIT
js/libs/history/history.iegte8.js MIT
js/libs/js-signals/signals.js MIT
js/libs/jquery/jquery-3.5.1.js MIT
js/libs/jquery/jquery-ui-1.12.1.custom.js MIT
js/libs/jquery/jqueryui-amd-1.12.1/core.js MIT
js/libs/jquery/jqueryui-amd-1.12.1/draggable.js MIT
js/libs/jquery/jqueryui-amd-1.12.1/mouse.js MIT
js/libs/jquery/jqueryui-amd-1.12.1/position.js MIT
js/libs/jquery/jqueryui-amd-1.12.1/sortable.js MIT
js/libs/jquery/jqueryui-amd-1.12.1/widget.js MIT
js/libs/knockout/knockout-3.5.1.js MIT
js/libs/knockout/knockout-mapping-latest.js MIT
js/libs/oj/v9.1.0/min/ojcspexpressionevaluator.js (cspexpressionevaluator.js) MIT
js/libs/oj/v9.1.0/min/ojexpparser.js (expparser.js) MIT
js/libs/oj/v9.1.0/min/ojknockout.js (knockout-fast-foreach.js) MIT
js/libs/oj/v9.1.0/min/ojselectcombobox.js (Select2.js) Apache 2.0
js/libs/oj/v9.1.0/min/ojtree.js (jsTree.js) MIT
js/libs/oj/v9.1.0/ojL10n.js (requireJS i18n) MIT
js/libs/proj4js/dist/proj4.js Proj4js
js/libs/require/require.js MIT
js/libs/require/text.js MIT
js/libs/require-css/css.min.js (require-css) MIT
js/libs/webcomponents/custom-elements.min.js custom-elements
scss/oj/v9.1.0/3rdparty/normalize/normalize.scss MIT
js/libs/touchr/touchr.js MIT
js/libs/oj/v9.1.0/min/ojvcomponent.js (petit-dom.js) MIT
/*!
* chai
* Copyright(c) 2011-2014 Jake Luer <jake@alogicalparadox.com>
* MIT Licensed
*/
/*
* expression-eval - v2.0.0
* https://github.com/donmccurdy/expression-eval
* Copyright (c) 2017 Don McCurdy
* Licensed under the MIT license
*/
/*
* jsep - v0.3.4
* https://github.com/soney/jsep
* Copyright (c) 2013 Stephen Oney, http://jsep.from.so/
* Licensed under the MIT license
*/
/*!
Knockout Fast Foreach v0.6.0 (2016-07-28T11:02:54.197Z)
By: Brian M Hunt (C) 2015 | License: MIT
*/
/*
* petit-dom - v0.2.2
* https://github.com/yelouafi/petit-dom
* Copyright (C) 2017 Yassine Elouafi;
* Licensed under the MIT license
*/
/**
* webcomponents/custom-elements - v1.1.2
*
* Copyright (c) 2015 The Polymer Authors. All rights reserved.
* Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
*
* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer
* in the documentation and/or other materials provided with the distribution.
* Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software
* without specific prior written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING,
* BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT
* SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*/
/*
* proj4js - v2.5.0
* http://proj4js.org/
* Copyright (C) 2014 Mike Adair, Richard Greenwood, Didier Richard, Stephen Irons, Olivier Terral and Calvin Metcalf;
* Licensed under the Proj4js license
*/
/*
* require-css - v0.1.10
* https://github.com/guybedford/require-css
* Copyright (C) 2013 Guy Bedford;
* Licensed under the MIT license
*/
/*! Hammer.JS - v2.0.4 - 2014-09-28
* http://hammerjs.github.io/
*
* Copyright (c) 2014 Jorik Tangelder;
* Licensed under the MIT license */
/*
* Foundation Responsive Library
* http://foundation.zurb.com
* Copyright 2014, ZURB
* Free to use under the MIT license.
* http://www.opensource.org/licenses/mit-license.php
*/
Normalize.scss
Copyright (c) Nicolas Gallagher and Jonathan Neal
/*
RequireJS i18n 2.0.2 Copyright (c) 2010-2012, The Dojo Foundation All Rights Reserved.
Available via the MIT or new BSD license.
see: http://github.com/requirejs/i18n for details
*/
/* This component is based on original code from:
jsTree 1.0-rc3 http://jstree.com/
"Copyright (c) 2010 Ivan Bozhanov (vakata.com)
Licensed same as jquery - under the terms of either the MIT License or
the GPL Version 2 License
http://www.opensource.org/licenses/mit-license.php
http://www.gnu.org/licenses/gpl.html"
*/
/**
* @preserve Copyright 2012 Igor Vaynberg
*
* This software is licensed under the Apache License, Version 2.0 (the "Apache License") or the GNU
* General Public License version 2 (the "GPL License"). You may choose either license to govern your
* use of this software only upon the condition that you accept all of the terms of either the Apache
* License or the GPL License.
*
* You may obtain a copy of the Apache License and the GPL License at:
*
* http://www.apache.org/licenses/LICENSE-2.0
* http://www.gnu.org/licenses/gpl-2.0.html
*
* Unless required by applicable law or agreed to in writing, software distributed under the
* Apache License or the GPL Licesnse is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
* CONDITIONS OF ANY KIND, either express or implied. See the Apache License and the GPL License for
* the specific language governing permissions and limitations under the Apache License and the GPL License.
*/
/** @license
* crossroads <http://millermedeiros.github.com/crossroads.js/>
* Author: Miller Medeiros | MIT License
* v0.12.0 (2013/01/21 13:47)
*/
ES6-Promise
Copyright (c) 2014 Yehuda Katz, Tom Dale, Stefan Penner and contributors
/*!
* History API JavaScript Library v4.1.0
*
* Support: IE8+, FF3+, Opera 9+, Safari, Chrome and other
*
* Copyright 2011-2013, Dmitrii Pakhtinov ( spb.piksel@gmail.com )
*
* http://spb-piksel.ru/
*
* Dual licensed under the MIT and GPL licenses:
* http://www.opensource.org/licenses/mit-license.php
* http://www.gnu.org/licenses/gpl.html
*
* Update: 2014-03-24 13:14
*/
/*! jQuery UI - v1.11.4 - 2015-03-18
* http://jqueryui.com
* Includes: core.js, widget.js, mouse.js, position.js, draggable.js, sortable.js
* Copyright 2015 jQuery Foundation and other contributors; Licensed MIT */
/*!
* jQuery JavaScript Library v2.2.3
* http://jquery.com/
*
* Includes Sizzle.js
* http://sizzlejs.com/
*
* Copyright 2005, 2014 jQuery Foundation, Inc. and other contributors
* Released under the MIT license
* http://jquery.org/license
*
* Date: 2014-12-18T15:11Z
*/
/** @license
* JS Signals <http://millermedeiros.github.com/js-signals/>
* Released under the MIT license
* Author: Miller Medeiros
* Version: 1.0.0 - Build: 268 (2012/11/29 05:48 PM)
*/
/**
* @license RequireJS text 2.0.12 Copyright (c) 2010-2014, The Dojo Foundation All Rights Reserved.
* Available via the MIT or new BSD license.
* see: http://github.com/requirejs/text for details
*/
/*
RequireJS 2.3.6 Copyright (c) 2010-2015, The Dojo Foundation All Rights Reserved.
Available via the MIT or new BSD license.
see: http://github.com/jrburke/requirejs for details
*/
/*!
* Knockout JavaScript library v3.5.0
* (c) Steven Sanderson - http://knockoutjs.com/
* License: MIT (http://www.opensource.org/licenses/mit-license.php)
*/
===
======
========================= Apache-2.0 =========================
The following applies to all products licensed under the Apache 2.0 License:
You may not use the identified files except in compliance with the Apache
License, Version 2.0 (the "License.")
You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0.
A copy of the license is also reproduced below.
Unless required by applicable law or agreed to in writing, software distributed
under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and limitations
under the License.
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
===
======
========================= MIT =========================
The MIT License
Copyright (c) __YEARS__, __NAMES__
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in
all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
THE SOFTWARE.
===
======
========================= Proj4js =========================
Mike Adair madairATdmsolutions.ca
Richard Greenwood richATgreenwoodmap.com
Didier Richard didier.richardATign.fr
Stephen Irons stephen.ironsATclear.net.nz
Olivier Terral oterralATgmail.com
Calvin Metcalf cmetcalfATappgeo.com
Copyright (c) 2014, Mike Adair, Richard Greenwood, Didier Richard, Stephen Irons, Olivier Terral and Calvin Metcalf
Permission is hereby granted, free of charge, to any person obtaining a copy of this software and associated documentation files (the "Software"), to deal in the Software without restriction, including without limitation the rights to use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of the Software, and to permit persons to whom the Software is furnished to do so, subject to the following conditions:
The above copyright notice and this permission notice shall be included in all copies or substantial portions of the Software.
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
Visual Builder Cookbook Help
Browse through the samples to view implementations of common usage patterns developed using Visual Builder. Each sample displays a page with the implementation, plus some high-level steps that describe how to implement the sample using Visual Builder.
If you want to examine the source code to gain a better understanding of the sample, each recipe can be downloaded as a self contained Visual Builder application. Download it and install it into your Visual Builder instance.
If you require training on using Visual Builder, check out the free Oracle University course - Develop Visual Applications using Visual Builder - which includes lessons and labs to get you started. This course, which provides a Visual Builder environment for its lab practices, teaches the core, fundamental skills for developing with Visual Builder and more fully utilizing these recipes.
Other useful links to learn more about Visual Builder: