【BO-SDK】-(RAS) Add summary to a group_@old_devlib_03
void addSummary(ReportClientDocument reportClientDocument, IField fieldToSummarize)
throws TutorialException
{
try
{
/*
* Get a DataDefController object for the given report. This controller is needed
* in order to get the summary controller. It is also used to access the report's
* groups, although groups can be accessed for reading without this controller.
*/
DataDefController dataDefController = reportClientDocument.getDataDefController();
//Create a new summary field.
SummaryField summaryField = new SummaryField();
//Set the field that will be used to calculate the summary.
summaryField.setSummarizedField(fieldToSummarize);
/*
* Get a the first group in the report using the DataDefController object.
* Set this group for the summary field using the setGroup method.
*/
IGroup group = dataDefController.getDataDefinition().getGroups().getGroup(0);
summaryField.setGroup(group);
/*
* Set the operation that will be used to calculate the summary. In this
* case, the count operation is chosen.
*/
summaryField.setOperation(SummaryOperation.count);
/*
* Add the new summary to the report using the DataDefController object. The
* argument
* summary fields.
*/
dataDefController.getSummaryFieldController().add(
}
// If any part of the above procedure failed, redirect the user to an error page.
catch (ReportSDKException e)
{
throw new TutorialException("Error while adding summary.");
}
}
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/24167472/viewspace-1038829/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 【BO-SDK】-(RAS) Unmanaged RAS Session get_@old_devlib_05Sessiondev
- 【BO-SDK】-(RAS) Adding a new parameter_@old_devlib_04dev
- ACM summaryACM
- Mongoose SummaryGo
- Windows NT RAS 精確設定 (轉)Windows
- C# Code SummaryC#
- System design summary
- 利用電話線進行WindowsNT RAS(轉)Windows
- Summary Note Index for BasicFiles and SecureFilesIndex
- Programming languages Domain summaryAI
- LeetCode-Summary RangesLeetCode
- Microsoft Windows Bitmap File Format SummaryROSWindowsORM
- GUID UUID in Java SummaryGUIJava
- The Tokenizers Summary: [EOS],[BOS],[CLS],[SEP]
- 在應用程式中實現RAS撥號 (轉)
- add exttrail 和add rmttail總結AI
- 【文件學習】tensorboardX——summary writerORB
- Microsoft Application Architecture Solution SummaryROSAPP
- Asp.Net Control SummaryASP.NET
- Xcode變數概覽-summaryXCode變數
- git add all和git add .區別Git
- jQuery add()jQuery
- 【BO-SDK】SSO InfoView_1 (BOE SDK Java Applications @_2)ViewJavaAPP
- Summary Functions and Maps(pandas學習三)Function
- DataTransferItemList.add()
- git add errorGitError
- add field security
- An Algorithm Summary of Programming Collective Intelligence (4)GoIntel
- mysql 動態引數(Dynamic System Variable Summary)MySql
- Summary01 - cron任務、grep、find命令
- 2024 Mar. Week-3 Summary
- 【LeetCode 228_陣列】Summary RangesLeetCode陣列
- Summary For Forcing The Database Open With `_ALLOW_RESETLOGS_CORRUPTION`Database
- JavaScript select add()JavaScript
- 4.5.1.1 srvctl add asmASM
- 4.5.1.2 srvctl add databaseDatabase
- Dockerfile:ADD VS COPYDocker
- 撤銷git addGit