Seal Report Forum
»
Report Edition
»
Data Source Creation
»
Default Load Script - Get parameters value
Rank: Newbie
Groups: Registered
Joined: 12/17/2018(UTC) Posts: 1
Thanks: 1 times
|
Hi team, I'm woring with Seal Report and I'd like to get parameter value into Default load script. In the reports examples, all data are static and I'd like to read passthough any parameter al report and get this value and use into Defaul load script...any idea how?
thanks! Alex
|
|
|
|
Rank: Administration
Groups: Administrators
Joined: 12/20/2013(UTC) Posts: 1,209 Thanks: 14 times Was thanked: 206 time(s) in 199 post(s)
|
In the 'Default Load Script' of a LINQ Table, you can get a reference to the report being executed: Code:@{
MetaTable metaTable = Model;
DataTable table = metaTable.NoSQLTable;
ReportModel reportModel = metaTable.NoSQLModel;
Report report = (reportModel != null ? reportModel.Report : null);
List<ReportRestriction> restrictions = (reportModel != null ? reportModel.Restrictions : null);
//Change view parameter to display the information Tab
//report.ExecutionView.GetParameter("information_button").BoolValue = true;
}
then you can do what you want.
|
1 user thanked epf for this useful post.
|
|
|
Seal Report Forum
»
Report Edition
»
Data Source Creation
»
Default Load Script - Get parameters value
Forum Jump
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.