swa:ResultSetGrid extra column on export

14 views
Skip to first unread message

Mike Glamm

unread,
Jul 1, 2019, 5:59:09 PM7/1/19
to TopBraid Suite Users
Hello TopBraid Suite Users,

I'm displaying a SPARQL result set in a SWP using swa:ResultSetGrid.  The data columns are graphUri, uri, parentLabel, and label.  It displays as expected on screen.  I'm also using the parameter arg:exports="true" to display the options for export (Excel, CSV, Print).  When I use any of the export options, an extra "uri" column is inserted before my four columns, and it contains the same data as my "uri" column.  Why is this happening, and do any parameters exist to prevent it from occurring?  This is on a 6.1.1 EDG server, if the version is relevant.

Thanks,
Mike

Pat Doyle

unread,
Jul 2, 2019, 9:58:29 AM7/2/19
to TopBraid Suite Users
Mike,

There is logic to handle this on the front end, but there's one piece missing from the SWP side of swa:ResultSetGrid in order to get it working properly in this case.  

To do this as it currently stands, you should be able to override swa:ResultSetGrid and pass the 'data-only-export-visible-columns' value in the Table Container div as well.  If this option is set to true - it should do exactly what it sounds like - and only export the columns that are visible to the user, hiding the extra URI column we use to ensure each row has a unique key associated with it. 

Attached is a simple file that should override swa:ResultSetGrid with the proper parameter added and set to true - so the front end will pick it up during the export process.  For 6.3 we'll be making sure this parameter is built into the version of swa:ResultSetGrid that we ship so that the override is not needed.  

Hope it helps,
Pat

--
You received this message because you are subscribed to the Google Groups "TopBraid Suite Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to topbraid-user...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/topbraid-users/902cd085-e9cd-402b-b9da-dddbd3e3415d%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
CustomResultSetGrid.ui.ttlx
Reply all
Reply to author
Forward
0 new messages