Expand my Community achievements bar.

Adobe Summit 2025: AEM Session Recordings Are Live! Missed a session or want to revisit your favorites? Watch the latest recordings now.

Mark Solution

This conversation has been locked due to inactivity. Please create a new post.

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);

Avatar

Level 1

Works Great.  Thanks.