Community Tip - Learn all about the Community Ranking System, a fun gamification element of the PTC Community. X
I can modify column title at design time, but how to modify it at run time?
You can't at runtime, but you can do a trick with a localization name, you can set the title to a localization name, and change title through changing localization token content.
Best Regards,
Carles.
Hey Carles can you give an example on how you did this? I created a new token with the name of the infotable field name, but when I went to change the grid config, I tried "toggling" the column title to localization and left the text box next to it empty, but it reverts back after saving. Do I need to put something in there? If so, what? It will be different based on the info table being bound (I am dynamically changing the data shape at runtime).
Thanks!
Hi Yale Evans,
As Infotable DataShape is changing at runtime; you might be using the Show All column property of the Grid widget.
So, as an alternative; you can use Rename Field to rename the Infotable field name and then show it in the grid.
var params = {
t: "InfoTableName" /* INFOTABLE */,
from: "OldFieldName" /* STRING */,
to: "NewFieldName" /* STRING */
};
// result: INFOTABLE
var result = Resources["InfoTableFunctions"].RenameField(params);
I hope it helps.
Yes, thanks so much!