AL/snippets/report.json

101 строка
2.9 KiB
JSON

{
"Snippet: Report": {
"prefix": "treport",
"body": [
"report ${1:Id} ${2:MyReport}",
"{",
"\tUsageCategory = ${3|ReportsAndAnalysis,Administration,Documents,History,Lists,None,Tasks|};",
"\tApplicationArea = ${4|All,Basic,Suite,Advanced|};",
"\tDefaultRenderingLayout = ${17:LayoutName};",
"\t",
"\tdataset",
"\t{",
"\t\tdataitem(${6:DataItemName}; ${5:SourceTableName})",
"\t\t{",
"\t\t\tcolumn(${8:ColumnName}; ${7:SourceFieldName})",
"\t\t\t{",
"\t\t\t\t${9}",
"\t\t\t}",
"\t\t}",
"\t}",
"\t",
"\trequestpage",
"\t{",
"\t\tAboutTitle = '${10:Teaching tip title}';",
"\t\tAboutText = '${11:Teaching tip content}';",
"\t\tlayout",
"\t\t{",
"\t\t\tarea(Content)",
"\t\t\t{",
"\t\t\t\tgroup(${12:GroupName})",
"\t\t\t\t{",
"\t\t\t\t\tfield(${14:Name}; ${13:SourceExpression})",
"\t\t\t\t\t{",
"\t\t\t\t\t\t${15}",
"\t\t\t\t\t}",
"\t\t\t\t}",
"\t\t\t}",
"\t\t}",
"\t",
"\t\tactions",
"\t\t{",
"\t\t\tarea(${16:processing})",
"\t\t\t{",
"\t\t\t\taction(${17:ActionName})",
"\t\t\t\t{",
"\t\t\t\t\t${18}",
"\t\t\t\t}",
"\t\t\t}",
"\t\t}",
"\t}",
"\t",
"\trendering",
"\t{",
"\t\tlayout(${19:LayoutName})",
"\t\t{",
"\t\t\tType = ${20:Excel};",
"\t\t\tLayoutFile = '${21:mySpreadsheet.xlsx}';",
"\t\t}",
"\t}",
"\t",
"\tvar",
"\t\t${22:myInt}: ${0:Integer};",
"}"
],
"description": "Snippet: Report"
},
"Snippet: Data Item": {
"prefix": "tdataitem",
"body": [
"dataitem(${1:DataItemName}; ${2:SourceTableName})",
"{",
"\tcolumn(${3:ColumnName}; ${4:SourceFieldName})",
"\t{",
"\t\t${0}",
"\t}",
"}"
],
"description": "Snippet: Report Data Item"
},
"Snippet: Column": {
"prefix": "tcolumn",
"body": [
"column(${1:ColumnName}; ${2:SourceFieldName})",
"{",
"\t${0}",
"}"
],
"description": "Snippet: Column"
},
"Snippet: Report Layout": {
"prefix": "treportlayout",
"body": [
"layout(${0:LayoutName})",
"{",
"\tType = ${1:Excel};",
"\tLayoutFile = '${2:mySpreadsheet.xlsx}';",
"}"
],
"description": "Snippet: Report Layout"
}
}