How to use the table.name function in table

To help you get started, we’ve selected a few table examples, based on popular ways it is used in public projects.

Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.

github apache / griffin / ui / js / controllers / viewrule-ctrl.js View on Github external
$http.get(getModelUrl).then(function successCallback(data){
          $scope.ruleData = data.data;
          $scope.sourceLength = $scope.ruleData.evaluateRule.rules.split('AND').length;
          console.log($scope.sourceLength);

          // console.log(JSON.parse($scope.ruleData.source.config));
          $scope.sourceDB = $scope.ruleData.source.config.database;
          console.log($scope.sourceDB);
          $scope.targetDB = $scope.ruleData.target.config.database;
          $scope.sourceTable = $scope.ruleData.source.config["table.name"];
          $scope.targetTable = $scope.ruleData.target.config["table.name"];
          console.log($scope.targetTable);
          console.log($scope.targetDB);
          console.log($scope.ruleData.evaluateRule.rules.split('AND'));
//          $scope.targetLength = $scope.ruleData.evaluateRule.rules.split(';').length;

          $scope.getNumber = function(n){return new Array(n);}
        // }).error(function(data){
        //   // errorMessage(0, 'Save model failed, please try again!');
        //   toaster.pop('error', data.message);
        // });
         },function errorCallback(response) {
          toaster.pop('error', 'Error when geting record', response.message);
github apache / griffin / ui / js / controllers / rule-ctrl.js View on Github external
$http.get(getModelUrl).then(function successCallback(data){
  			  $scope.deletedRow = data.data;
              $scope.sourceTable = $scope.deletedRow.source.config["table.name"];
              $scope.targetTable = $scope.deletedRow.target.config["table.name"];
  		  });
        // $scope.deletedRow = row;
github apache / griffin / ui / angular / src / app / job / job-detail / job-detail.component.ts View on Github external
data => {
        this.measureData = data;
        this.measureName = this.measureData.name;
        this.measureType = this.measureData["dq.type"].toLowerCase();
        this.processType = this.measureData["process.type"].toLowerCase();
        for (let item of this.measureData["data.sources"]) {
          let config = item.connectors[0].config;
          let tableName = config.database + "." + config["table.name"];
          this.tableInfo.push(tableName);
        }
      },
      err => {
github apache / griffin / ui / angular / src / app / measure / measure-detail / measure-detail.component.ts View on Github external
fetchData(value, index) {
    var data = this.ruleData["data.sources"][index].connectors[0];
    var size = value + "size";
    var zone = value + "zone";
    var where = value + "where";
    var path = value + "path";
    var database = value + "DB";
    var table = value + "Table";
    this[size] = data["data.unit"];
    this[zone] = data["data.time.zone"];
    this[where] = data.config.where;
    if (data.predicates.length !== 0) {
      this[path] = data.predicates[0].config.path;
    }
    this[database] = data.config.database;
    this[table] = data.config["table.name"];
  }