The OneStream Community is temporarily frozen until June 29th due to the ongoing maintenance. Please read the blog post here to learn more.
Forum Discussion
kchampion
1 year agoNew Contributor III
SetDataCellsUsingMemberScript does not write all list items
Hello All,
SetDataCellsUsingMemberScript() seems to only write the last value added to list. I am successfully adding 14 records to the objMemberScriptValues list (I can loop through them and see ...
- 1 year ago
You need to move this line to be before the For loop starts:
Dim objMemberScriptValues As New List(Of MemberScriptAndValue)
MarcusH
1 year agoValued Contributor
You need to move this line to be before the For loop starts:
Dim objMemberScriptValues As New List(Of MemberScriptAndValue)
- kchampion1 year agoNew Contributor III
Thanks, I knew it was going to be something obvious! I still had to instantiate the objMemberScriptValue object As New within the loop otherwise it wrote the same row data to the list 14 times, declaring as New within the loop added the individual records to the list. Moving just the List object instantiation before the loop worked. Thanks!
Related Content
- 2 months ago
- 1 year ago