Expand my Community achievements bar.

SOLVED

addInstance doesn't work when table has no rows

Avatar

Level 1

I am trying to add a row to an empty table (no rows) and it seems that addInstance doesn't work.

table.row.instanceManager.addInstance(1);

Is there a different syntex if the table has no rows?

Thanks

1 Accepted Solution

Avatar

Correct answer by
Level 10

Try using the underscore shortcut for the instance manager, it lets you get at objects that don't exist yet.

So

table.row.instanceManager.addInstance(1);

becomes

table._row.addInstance(1);

View solution in original post

2 Replies

Avatar

Correct answer by
Level 10

Try using the underscore shortcut for the instance manager, it lets you get at objects that don't exist yet.

So

table.row.instanceManager.addInstance(1);

becomes

table._row.addInstance(1);