Modifying the S_account through an Extension

david_nwosu
Rookie Contributor
david_nwosu
Hi, guys, I have a sitecatalyst tag which has a report suite defined in that tag. I've also got a variable which is mapped to s_account. However i tried to add a new report suite through set data values and using the b object . This is not working. I've tried to add in more than one reportsuite by using my variable b['s_account']+=",testreportsuite". My reportsuite comes out as undefined. I believe this is because the extensions is proccessed before the tag. So my variable s_account outputs "undefined,testreportsuite". Why isn't the other report suite defined in the tag template not populating? Any help will be useful?
1 REPLY 1
Highlighted

Modifying the S_account through an Extension

son_hoang
Employee Emeritus
son_hoang
Hi David, The b['s_account'] var isn't created by the tag template. 'b' properties are only created by your data layer or extension, that's why it's undefined. To do what you're doing you'd need an extension running before this one that says b['s_account']= 'report_suite_name_here'