This content has been marked as final. Show 3 replies
a get Canves Name Function dos not exists
You can get the current canvas via item
Get_Item_Property( 'item', ITEM_CANVAS )
A form can have multiple canvases, so not sure how to resolve that. And there is no way to get a canvas name directly.
But Get_Item_Property will return Item_Canvas for an item, if it is assigned to a canvas. So you could write code to get the form's first block (or subsequent blocks), and get the items within each block, and eventually find items assigned to a canvas.
The only possibility to do that is using Get_Item_Property function for current item, cause canvas belongs to items (one window can have more than once views). So, all you need is:
Get_Item_Property( :system.cursor_item, ITEM_CANVAS );