Page 1 of 1

How to regData on web?!

Posted: Thu Jun 19, 2008 12:32 pm
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.