We can dynamically set any of the argument values of the CopyTable() function.
This is handy: It lets us use DomainName() and ProjectName() to sidestep having to hard-code some of the argument values.
For instance:
CopyTable("<%=DomainName()%>:<%=ProjectName()%>/Reports/<%=CurrentDate("ppp:ffff")%>/CostModels/Default/.TableTransform:Timestamp/.Summary/!SORT/!LIMIT%5B0%2C2147483647%2Cadd_total%5D/!LIMIT_COLUMNS%5B%5D/","<%=DomainName()%>:<%=ProjectName()%>","Timestamp2","<%=CurrentDate("ppp:ffff")%>")
The CopyTable() function is normally placed in the Server Action field in a report button's Properties.
But I don't know a way for the button to dynamically pull in a destination project name from a cell in a data table, because a button component (unlike an HTML component) in a report does not have an object context.
An HTML component can be configured to look just like a report button.
Then we can set its object context, which grants the component full access to any relevant data tables.
It can then pull in the name of a destination project from a table cell.
But I don't think CopyTable() works when placed in an HTML component.