Skip to main content
Inspiring
October 1, 2014
Question

How to get name of table cell ? Also, how to set name and label property on table itself?

  • October 1, 2014
  • 1 reply
  • 361 views

I am trying to use below API:

PMString tableName = "myTable";

ErrorCode error = Utils<Facade::IPageItemNameFacade>()->SetUserAssignedPageItemName(tableUIDRef, tableName);

But this is not setting up the table name, also I am getting error = 1.

Also, I am not getting the API to get the name of table cell(which is the read only property)

This topic has been closed for replies.

1 reply

Inspiring
October 1, 2014

Hello kapoor_aman27,

a table is not a page item. The page item name is stored in the interface IPageItemName of the kDrawablePageItemBoss. So you must get the page item of your table and set the name of the page item.

Markus

Inspiring
October 1, 2014

Hi,

yes table is not a page Item. But still for table cells, we have a read only name property on them. I want to retrieve that name in C++.

is there any API I can use?

Harbs.
Legend
October 1, 2014

Cells are funny objects.

If I'm not mistaken the only way to find the cell is to loop through tables and cells until you find the one you are looking for. FWIW, I believe cell names are inferred from the id of the parent table and the cell coordinates.