Community Tip - Did you get an answer that solved your problem? Please mark it as an Accepted Solution so others with the same problem can find the answer easily. X
i edited the file below, added the scroll="false" in the renderTable tag. I've got Tomcat in development mode so it shouldbevisibleonce the page is reloaded, but I'm not seeing the change. Should I need toreboot and clear the Tomcat cache?
codebase\netmarkets\jsp\changeTask\affectedItemsTable.jsp
sd
In Reply to Dave DeMay:
Inside components.tld (line 1106 in 9.1 M040) there is an attribute that is optional called 'scroll' and it is placed in the renderTable tag in the jsp file. Possible values are true or false. Set it false.
I have used it before to stop tables in create part and doc wizard from creating scrollbars when they have numerous attributes. May be buggy. I think this is what you want though.
Thanks for the replies. I've got a couple of replies, and also an answer from PTC's Tech Support.
Regarding the issue please note that removing the scroll bar is not a good idea because this has some performance impact. Still if you want to do that then you can use scroll=false in renderTable tag attribute. There are other attributes like useJSCA=false but again setting this will remove some Windchill 9.1 specific features as this will disable HSCA to use JCA.
Putting in the useJSCA="false" on a per table basis will disable the scrolling on that table, but it also disables other "new 9.1" functionality, such as column resizing and multi-column sorting...
So what we were trying to solve was the ability to export the contents of these scrolling tables. So Tech Support suggested that I add the Export action to the table's toolbar. To do this follow these steps below:
First find the table that you want to edit, go to codebase\config\actions
The files you want to look at are *-actionModels.xml. So my example I went to ChangeManagement-actionModels.xml
Searched for change task, found a couple occurences, the one I wanted was <model name="changeTask.affectedItems.table.view">
Copy the entire <model> to </model> tag
Paste that into the custom-actionModels.xml file. This is where you edit what you want on the toolbars.
I found in another actionModel table the actions for the export actions and pasted them into that model, so my modified model looked like
<model name="changeTask.affectedItems.table.view">
<description>Toolbar actions for the affected objects table for the change task info page</description>
<action name="list_copy" type="object"/">
<action name="separator" type="separator"/">
<action name="edit" type="changeTask"/">
<action name="exportTableCSV" type="object"/">
<action name="exportTableHTML" type="object"/">
<action name="exportTableTEXT" type="object"/">
</model>
The two excel and xml export options didn't work here, they complained about session data expired, so I omitted them.
From a windchill shell type the following command
>windchill com.ptc.netmarkets.util.misc.StandardNmActionService
this will reload the action models and you can reload the web page and the new actions will appear, no restart of Windchill required.