Binding from business objects
Posted: Thu May 14, 2009 9:13 am
I have the following piece of code which works fine in the begin render event of the report:
'get rows for this bill
Dim rows As Collections.Generic.List(Of EValuate.QuoteRow) = EValuate.BillEditorBAL.GetQuotationTradePackageBillRows(New guid(ProjectId),new guid("8E4D68DF-9749-4575-B1BF-1791C023E35B"))
'register the collection
Me.RegData("QuoteRow",rows)
Ideally I want to run this code on the click event of a button so that the guid is passed in:
'get rows for this bill
Dim rows As Collections.Generic.List(Of EValuate.QuoteRow) = EValuate.BillEditorBAL.GetQuotationTradePackageBillRows(New guid(ProjectId),)
'register the collection
Me.RegData("QuoteRow",rows)
If i run the code from anywhere other than the begin render event of the report it doesn't work. QuoteRow ends up with the right amount of data but i can't see the contents.
Please help?!?
'get rows for this bill
Dim rows As Collections.Generic.List(Of EValuate.QuoteRow) = EValuate.BillEditorBAL.GetQuotationTradePackageBillRows(New guid(ProjectId),new guid("8E4D68DF-9749-4575-B1BF-1791C023E35B"))
'register the collection
Me.RegData("QuoteRow",rows)
Ideally I want to run this code on the click event of a button so that the guid is passed in:
'get rows for this bill
Dim rows As Collections.Generic.List(Of EValuate.QuoteRow) = EValuate.BillEditorBAL.GetQuotationTradePackageBillRows(New guid(ProjectId),)
'register the collection
Me.RegData("QuoteRow",rows)
If i run the code from anywhere other than the begin render event of the report it doesn't work. QuoteRow ends up with the right amount of data but i can't see the contents.
Please help?!?