webapp.js.dbCheck.js Maven / Gradle / Ivy
function check() {
var sourceUrl = document.getElementById('sourceUrl').value;
var sourceUserName = document.getElementById('sourceUserName').value;
var sourcePassword = document.getElementById('sourcePassword').value;
var sourceEncode = document.getElementById('sourceEncode').value;
var sourceType = document.getElementById('sourceType').value;
Hello.check(sourceUrl, sourceUserName, sourcePassword, sourceEncode, sourceType, callback);
}
function checkMap() {
var namespace = document.getElementById('namespace').value;
var name = document.getElementById('name').value;
var dataSourceId = document.getElementById('dataSourceId').value;
Hello.checkMap(namespace, name, dataSourceId, callback);
}
function callback(msg) {
DWRUtil.setValue('result', msg);
}
function checkNamespaceTables() {
var namespace = document.getElementById('namespace').value;
var name = document.getElementById('name').value;
var dataSourceId = document.getElementById('dataSourceId').value;
Hello.checkNamespaceTables(namespace, name, dataSourceId, callback2);
}
function callback2(msg) {
var result = document.getElementById('result');
if (/.*Find schema.*/.test(msg)) {
result.innerHTML = "" + msg + "";
} else {
result.innerHTML = msg;
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy