Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add the example of @customfunction #2

Open
oshliaer opened this issue Nov 5, 2018 · 0 comments
Open

Add the example of @customfunction #2

oshliaer opened this issue Nov 5, 2018 · 0 comments
Assignees

Comments

@oshliaer
Copy link
Owner

oshliaer commented Nov 5, 2018

https://docs.google.com/spreadsheets/d/1DVviAUj5FbEEOMDgPg0GSY8FGdDeynF22rilsumRIHo/edit?usp=sharing

var alasql = AlaSQLGS.load();
alasql.options.modifier = 'MATRIX';
alasql.aggr.GROUP_CONCAT = function(v,s){
  if(typeof v == "undefined") return s;
  if(typeof s == "undefined") return v; else return [s,v].join(', ');
};

function ALASQL(query, data) {
  var res = alasql(query, [data]);
  return res;
}
@oshliaer oshliaer self-assigned this Nov 5, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant