Signaling Events from a Tile Item
Posted: Wed Mar 07, 2018 3:55 am
I have a Tile Item that contains a button. I would like to bubble up the button's click event (via signal) to up to the parent component like the PRIM_TILE.ItemClick event.
I've defined a "Remove" event in the Tile, but I can't subscribe to it.
This gives me an error stating PRIM_TILE<MYTILEP01> does not contain an event REMOVE.
Ok, I understand that, as the event is on MYTILEP01 not on PRIM_TILE.
I've also tried using the iterator such as MyTiles<>.Remove but that gives me the "Expression is not an iterator" error.
How do you signal events up from a Tile?
I think I could do this with an application scoped object, but is there a way to do it with one?
Thanks,
Joe
I've defined a "Remove" event in the Tile, but I can't subscribe to it.
This gives me an error stating PRIM_TILE<MYTILEP01> does not contain an event REMOVE.
Code: Select all
evtroutine handling(#MyTiles.Remove)
* trigger deletion
endroutine
I've also tried using the iterator such as MyTiles<>.Remove but that gives me the "Expression is not an iterator" error.
How do you signal events up from a Tile?
I think I could do this with an application scoped object, but is there a way to do it with one?
Thanks,
Joe