How to regData on web?!

Stimulsoft Reports.NET discussion
Post Reply
Larusso
Posts: 32
Joined: Tue May 20, 2008 9:27 am
Location: Poland

How to regData on web?!

Post by Larusso »

I've got report where I must load data from database manually in report connect event:

Dim ds As New Data.DataSet
ds.Tables.Add(Provider.User1(WebApp.CurrentSession.User.ID))
ds.Tables.Add(Provider.CaseDef(WebApp.CurrentSession.User.ID))
ds.Tables.Add(New Data.DataTable("kredyt"))
ds.Tables.Add(New Data.DataTable("CaseHeader"))
e.Report.Dictionary.Databases.Clear()
e.Report.Dictionary.DataSources.Clear()
e.Report.RegData(dbName, ds)
e.Report.Dictionary.Synchronize()

Unfortunately mapping of those data sources doesn't work
User.GetData("ID", ComboBox1.SelectedIndex) In web dialog returns DBNull while the same ComboBox1, populated was by User.NAME from the same table.
In rendering ti's the same problem. when I RegData all textboxes in data components populated by for example User.ID, User.NAME returns 0.
Post Reply