Report.Name
Returns/set the name of the report.
C# Example
Using a custom parameter in a C# node:
//Connect to the dataset var iss = InputContainer[0].DataSource; //Retrieve the maximum number of calories //allowed per day. This will be a parameter //specified in the C# node's Parameters section. //In this case, we are assuming an Integer parameter //named MaxCal that is set to a something like 2000. var MaxCal = NodeParameters["MaxCal"]; //Iterate through our dataset. We are assuming that //the 8th variable is a column of daily calorie counts-- //if a day is above our MaxCal value, then add it to the report. //Note that we are also assuming that the date for the record //is in the first column and we will include that next to the //calorie value. string reportStr; for (int i = 1; i <= iss.NumberOfCases(); ++i) { if (iss.Value(i,8) > MaxCal) { reportStr += iss.Text(i,1) + "\t" + iss.Value(i,8).ToString() + "\n"; } } //Create a report of our findings. var orpt = Application.Reports.New(); orpt.SelectionText = "Days with Calories Above " + MaxCal.ToString() + "\n------------------------------\n\n" + reportStr; //Rename the report and add it to the output. orpt.Name = "Calorie Report"; OutputContainer.Add(orpt);
Copyright © 2020. Cloud Software Group, Inc. All Rights Reserved.