Skip to content

Commit

Permalink
Add new method stub to KPI classes created via command (#1260)
Browse files Browse the repository at this point in the history
  • Loading branch information
isc-bsaviano authored Oct 30, 2023
1 parent 9809670 commit af2b039
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions src/commands/newFile.ts
Original file line number Diff line number Diff line change
Expand Up @@ -835,6 +835,17 @@ Method %OnLoadKPI() As %Status
Return $$$OK
}
${
kpiType == "sql"
? `/// Return a SQL statement to execute.\nMethod %OnGetSQL(ByRef pSQL As %String)`
: kpiType == "mdx"
? `/// Return an MDX statement to execute.\nMethod %OnGetMDX(ByRef pMDX As %String)`
: `/// Get the data for this KPI manually.\nMethod %OnExecute()`
} As %Status
{
Return $$$OK
}
/// This callback is invoked from a dashboard when an action defined by this dashboard is invoked.
ClassMethod %OnDashboardAction(pAction As %String, pContext As %ZEN.proxyObject) As %Status
{
Expand Down

0 comments on commit af2b039

Please sign in to comment.