The business JS file that triggers the button query

image.png

{
  name:'train',
  text:'Training list',
  title:'Training List',
  icon:'fa fa-mortar-board',
  classname:'btn btn-xs btn-info btn-dialog',
  extend: "data-area='[\"70%\",\"70%\"]'",
  url: function(row) {
    return'train/train/index?s_id=' + row.id;
  }
}

The business JS file being queried

image.png

queryParams: function(params) {
  var sId = Fast.api.query('s_id');
  if(sId > 0) {
    params.filter = JSON.parse(params.filter);
    params.op = JSON.parse(params.op);
    params.filter.s_id = sId;
    params.op.s_id = '=';
    params.filter = JSON.stringify(params.filter);
    params.op = JSON.stringify(params.op);
  }
  return params;
}
Likes(0)

Comment list count 0 Comments

No Comments