Tom van Oost @ 10:17 AM on December 21, 2009
The grid Web Part is easily customizable. Earlier we already posted an example of a grid Web Part. Paste and replace the following xml fragment in the grid configuration section of your Web Part to show a class icon in the grid for every row.
<GridControlConfiguration><ClientOnObjectSelect>ShowObjectRequest</ClientOnObjectSelect> <AutoPostBackOnObjectSelect>false</AutoPostBackOnObjectSelect> <ShowSelectBox>false</ShowSelectBox><NumberOfRows>20</NumberOfRows> <AutoSortFirstColumn>true</AutoSortFirstColumn> <ShowRefreshButton>false</ShowRefreshButton><GridColumnConfigurations> <GridColumnConfiguration><Name>Id</Name><HtmlVisualization><![CDATA[<img src="0C/SmDemo/Resources/ClassImages/%CLASS_ID%.png" /> %TDM_ID%]]></HtmlVisualization> </GridColumnConfiguration></GridColumnConfigurations></GridControlConfiguration>
More >>
Tom van Oost @ 11:12 AM on November 24, 2009
This example is based on the ENOVIA SmarTeam R19 SmDemo database. This Web Part configuration shows all available SmarTeam documents in a grid with sort, search and group by support.
Paste the following code in the Data Retrieve Definition section of your Web Part:
<ExtendedDataRetrieveDefinition> <DataRole>FirstClass</DataRole> <DataMode>RetrieveObjects</DataMode> <Description>Generated</Description> <ClassFilterDefinitions> [...]
More >>
Tom van Oost @ 11:10 AM on November 19, 2009
The following example retrieves all datamodel classes and shows them into a grid. For this example we use the SqlDataRetrieveDefinition, which executes an Sql query on the database to retrieve information. The Sql query is not executed directly on the database, but uses the ENOVIA SmarTeam API.
Notes: The Web Parts always expect that the columns [...]
More >>