cancel
Showing results for 
Search instead for 
Did you mean: 

Customize datalist grid view

giedriuss
Champ in-the-making
Champ in-the-making
Hi,

I am new Alfresco user. I recently read tutorial and I succeeded making a custom datalist. I was wondering if it is possible to customize the datagrid view of my custom datalist. For instance I have a column in my datalist that is attachment (image) I want to show that image in datagrid of that datalist instead of showing link to the image file.

Also is it possible to create a filter that would filter datalist contents in datagrid view depending on one or few columns?


Thanks
Giedrius
2 REPLIES 2

arnoldschrijve1
Champ on-the-rise
Champ on-the-rise
Regarding your first question: You could extend the client-side Alfresco.component.DataGrid component defined in <share-webapp-dir>/components/data-lists/datagrid.js.
If you override function DataGrid__setupDataTable you could assign your own formatters to your custom datalist columns.

On your second question: Extending the existing filter mechanism with additional filters probably involves either altering or replacing the <alfresco-webapp-dir>/WEB-INF/classes/alfresco/templates/webscripts/org/alfresco/slingshot/datalists/filters.lib.js, or extending/modifying webscript data.post.desc.xml (where data.post.json.js handles the filtering).

Hope this helps.

krups
Champ in-the-making
Champ in-the-making
thanks Arnold