Forum Discussion
Hi Angelalp,
I think the functionality I want exists in Client\javascript\item_window.js which refers to ItemsGrid
Looking in \Client\javascript\ItemsGrid there seems to be 3 files:
MainGridFactory.js defines which scripts to use for each ItemType - I think I want to create an Overload for my custom ItemType
BaseItemTypeGrid.js calls:
visiblePropNds = aras.getvisiblePropsForItemType(currItemType);
aras.uiInitItemsGridSetups(currItemType, visiblePropNds);
By creating my customItemTypegrid.js I believe I could populate the visiblePropNds with my custom nodes.
I have not yet found how getvisiblePropsForItemType or uiInitItemsGridSetups works, but that is where I plan to look next. uiInitItemsGridSetups takes the ItemType as an argument, so this too may need modification to work.
I'm not great at JavaScript, so I haven't tried modifying anything yet.
Many thanks,
Martin.
Hello,
The getVisiblePropsForItemType function will return the properties on an ItemType that have is_hidden set to True.
I'm less familiar with the uiInitItemsGridSetups function, but I believe it checks to make sure that the column order and column widths in the current user's Preferences are valid. These Preferences are used to reload the order and width of the columns that a user had set the last time they viewed the grid.
Chris
Christopher Gillis
Aras Labs Software Engineer