Trying to Add Row in the Template Repeater Dataset

Trying to create dynamic template repeater through scripting which works fine at some extent. But, can’t seem to add new Row:

Current State of template parameters property of Repeater :

Initialized Value of self.templates - Dataset [4R ⅹ 7C]
[<Row:7 columns>, <Row:7 columns>, <Row:7 columns>, <Row:7 columns>]

Trying to add Following Row:

remix_compound_id,  Remix Compound,  4, -1,  Dataset [1990R ⅹ 2C], False, ''

But, when I try to Either add with
System.dataset.addRow or system.dataset.toDataSet(column, rows)
it errors out as :

java.lang.ClassCastException: java.lang.ClassCastException: class org.python.core.PyObjectDerived cannot be cast to class org.python.core.PySequence (org.python.core.PyObjectDerived and org.python.core.PySequence are in unnamed module of loader @38a26330)

Any Idea ?
Many thanks in Advance

Anyone ?

Can you post the dataset behind the template repeater and the script you’re using to add a row?

1 Like

@zacht, Amm, I just realized I was trying to append list instead of list of lists !!
Got it working, thanks !!