Roll20 uses cookies to improve your experience on our site. Cookies enable you to enjoy certain features, social sharing functionality, and tailor message and display ads to your interests on our site and others. They also help us understand how our site is being used. By continuing to use our site, you consent to our use of cookies. Update your cookie preferences .
×
Create a free account

Can't access attributes of repeating section with getAttrByName and $X

Since the repeating section Roll20 Update, i've got an error with my API scripts when I use the following code :
origarmor=getAttrByName(originchar_id, "repeating_armor_$0_ArmorNotes");

"Error: No attribute or sheet field found for character_id -Jo4rw4Mf1ZXtV7emDZV named repeating_armor_$0_ArmorNotes"

When i use a macro with @{selected|repeating_armor_$0_ArmorNotes} i get the correct value.

A couple of month ago, i created a topic on this subject :
Old Topic

My API scripts still doesn't work and i'll soon launch a campaign using them. 

Is there any news on a ETA for the corrections for the API ?
July 22 (8 years ago)
Phil B.
Forum Champion
Sheet Author
I've mentioned this again to Riley, who is the only one of us that has done any work on the API, and he's put it on his list and will try to take a look at it next week. It probably just never got implemented on the API side. Sorry this has taken so long to fix.
No problem, so long as it is fixed.

I could wait, I didn't need it until now.

Thank you. 
July 31 (8 years ago)

Edited July 31 (8 years ago)
Jakob
Sheet Author
API Scripter
Another, related question: I do not know if it ever worked this way, but there currently seems to be no way to reliably get repeating sections by row index via findObjs (with name parameter repeating_xxx_$1_yyy). Can this be remedied as well?
Hi Phil, any news on this problem ?
August 11 (8 years ago)

Edited August 11 (8 years ago)
Phil B.
Forum Champion
Sheet Author
I keep reminding Riley, the API guy, but he's super busy with some other stuff. This was even brought up at the Advanced Roll20 panel at GenCon last weekend. He'll do it as soon as he has time.
Thank you for the news.
I hope to be able to re-use my scripts soon. I plan on using these campaigns next month.
It seems to be solved, i can now access the data using the old way:
origarmor=getAttrByName(originchar_id, "repeating_armor_0_ArmorNotes");

Thank you very much, it comes just in time for me.
August 23 (8 years ago)

Edited August 23 (8 years ago)
Phil B.
Forum Champion
Sheet Author
It happened literally last night! https://app.roll20.net/forum/post/3862777