Skip to content

Commit

Permalink
Added custom export to csv action logic
Browse files Browse the repository at this point in the history
  • Loading branch information
Sleeckx committed Jan 31, 2017
1 parent 5e9cdf6 commit 0fb2f2f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/Libs/Vidyano/vidyano.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4898,6 +4898,17 @@ namespace Vidyano {
}
}

export class ExportToCsv extends Action {
constructor(service: Service, definition: ActionDefinition, owner: ServiceObjectWithActions) {
super(service, definition, owner);
}

protected _onExecute({ menuOption, parameters, selectedItems, skipOpen, noConfirmation, throwExceptions }: IActionExecuteOptions): Promise<PersistentObject> {
this.service._getStream(null, "Query.ExportToCsv", this.parent, this.query, null, this._getParameters(parameters, menuOption));
return Promise.resolve(null);
}
}

export class ShowHelp extends Action {
constructor(service: Service, definition: ActionDefinition, owner: ServiceObjectWithActions) {
super(service, definition, owner);
Expand Down

0 comments on commit 0fb2f2f

Please sign in to comment.