Expand my Community achievements bar.

Radically easy to access on brand approved content for distribution and omnichannel performant delivery. AEM Assets Content Hub and Dynamic Media with OpenAPI capabilities is now GA.

Remove current row instance

Avatar

Level 4

Hello folks,

I have a table(PersonsTable) as the following:

First NameLast Name
DavidLansDelete Person
JoeMagicanDelete Person
JohnBryceDelete Person

Now, I want to remove the person row which I clicked on it's Delete Person button.

What is the code for it?

Thank you,

Yair

3 Replies

Avatar

Level 10

You need to determine which instance the current row has.

This can be done in the following way

_Row.removeInstance(Row.instanceIndex);

Avatar

Level 4

Hi,

Can you please show me the full syntax reference?

What is _Row? what is Row.instanceIndex?

Yair

Avatar

Level 10

Well, the syntax depends on the name of your rows.

In my example the rows are named "Row".

_ is the short expression to call the properties and methods of the instance manager.

_Row.removeInstance(); can also be written as Row.instanceManager.removeInstance()