Community Tip - Have a PTC product question you need answered fast? Chances are someone has asked it before. Learn about the community search. X
Hello Windchill's gurus and Happy New Year everyone,
I'm on a team to migrate a Windchill 10 application to Windchill 11.
I found something strange with the customs TableBuilder, construct with an AbstractComponentBuilder :
First we have a lot of customs builder in our Windchill project, we found a workaround solution but it's not acceptable because it works before
and we need to find why it's not working anymore. It impacts a lot of builders in our project.
We have a Bean class that reference a line in the TableBuilder.
There's a getter called getFileName which work correctly on Windchill 10 to show the file name.
Then the TableBuilder :
Here is my problem : "factory.newColumnConfig(fileNameColumn, true)" //(fileNameColumn = "fileName")
When I refresh my builder in Windchill, the File Name column don't show anything.
When debugging I find the method TablesFileBean.getFileName() was never be called by the invoke method.
Instead the method TablesFileBean.getOid() was called.
The workaround solution was to change :
- the TablesFileBean.getFileName() by TablesFileBean.getFileName2()
- fileNameColumn = "fileName" by fileNameColumn = "fileName2"
With this solution the TableBuilder show the information correctly.
When debugging the method TablesFileBean.getFileName2() was used.
It looks like the Windchill 11 AbstractComponentBuilder used the value "fileName" for an other behavior.
Edit : another solution was to delete the method TablesFileBean.getOid() and it work too...
But I loose the possibility to use the oid of each of line.
Do you guys have any idea of why this behavior occurred in the new Windchill 11 ?
Greetings