How can I get the tableid from a map of records
Thanks
How can I get the tableid from a map of records
Thanks
You have an instance of the Map class and some records inside, right? The Map doesn’t guarantee that all records belong to the same table - you would have to iterate through all of them and check it by yourself. If you know that only records for a single table were inserted, simply pick the first record only and examine its TableId.
I was thinking extracting the tablename from mapIterator mi.toString() .
Do you think its a viable solution?
No, I don’t see any advantage. Use something like this:
Common c;
MapEnumerator e = map.getEnumerator();
while (e.moveNext())
{
c = e.currentValue();
info(tableId2name(c.TableId));
}