2022

Page tree

Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: Migrated to Confluence 4.0
  • Initialize the plugin by referencing the necessary files: 
    Code Block
    langjavascript
    <link rel="stylesheet" type="text/css" href="dbsyncwidget.min.css">
    
    <script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
    <script src="https://av-web.s3.amazonaws.com/ecw/dbsyncwidget.min.js"></script>
    
  • Add div on the page: 
    Code Block
    langjavascript
    <div id="dbsyncwidget"></div>

  • Add javascript initialization in the script tag:
    appName - name of application to connect. 
    validationUrl - API Url to check if application is connected example: https://<your_server>/ecw/verify/<connector>/<username>
    connectUrl - API Url to connector page example: https://<your_server>/ecw/connect/<process>/<connector>/<username>/<company>  
Code Block
langjavascript
<script>
var dbsyncwidget = null;
var dbsyncButton;


var options = {
	appName: '<Display Label of the Connecting App>',
	validationUrl: 'https://<your_server>/ecw/verify/<connector>/<username>',
	connectUrl: 'https://<your_server>/ecw/connect/<process>/<connector>/<username>/<company>'
};

$(document).ready(function () {
	dbsyncButton = $('#dbsyncwidget');
	dbsyncwidget = dbsyncButton.dbsyncwidget(options);
});
</script>

...