logo

Warning: The forum is now for consultation only. Please use GitHub Discussions to post any questions or comments.


Welcome Guest ! To enable all features please Login or Register.

Notification

Icon
Error

Options
Go to last post Go to first unread
alfecu  
#1 Posted : Wednesday, August 31, 2022 10:41:26 PM(UTC)
alfecu

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
epf  
#2 Posted : Thursday, September 1, 2022 10:12:31 AM(UTC)
epf

Rank: Administration

Groups: Administrators
Joined: 12/20/2013(UTC)
Posts: 1,209
Switzerland

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.
thanks 1 user thanked epf for this useful post.
alfecu on 9/2/2022(UTC)
Users browsing this topic
Guest
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.