Plugin Developer Discussion

Discussion for FogBugz Plugin developers

Need a plugin similar to Filter export

I have a need to build a plugin similar to filter export.

The idea is that for currently listed cases (in the grid) i want to show a print view of cases with specific fields.

Any pointers would be appriciated.
Thanks
Nikhil Singhal Send private email
Wednesday, November 18, 2009
 
 
Hi Nikhil-
If you have a look at (your fogbugz install)/Plugins/examples/FilterExport/filterexport.was, you'll see that it's only about 250 lines of Wasabi, which should easy to translate into C# if you're comfortable working there.

What will be the same:
You'll still want to implement IPluginFilterToolbar and IPluginGridColumn

What will be different:
Instead of Implementing IPluginBinaryPageDisplay, you'll want to implement IPluginPageDisplay, and then do something very much like what BinaryPageDisplay is doing in the the FilterExport plugin, except instead of encoding as CVS, write a function to display the listview data as a page formatted as you want.

Good luck!
Thanks,
Brett
Brett Kiefer Send private email
Wednesday, November 18, 2009
 
 
Thanks Brett. That worked like a charm.
Nikhil Singhal Send private email
Wednesday, November 18, 2009
 
 
Only half on topic: I'm currently working on a more generic variant which allows the user to not only create a CSV file, but apply any XSLT transformation, so that you could also generate HTML, XMLSS, WORDML, XSL-FO or whatever you like. Not sure when I'll be done, though.
Arsène von Wyss Send private email
Thursday, December 3, 2009
 
 
I have developed a pretty print plugin for a grid/list view.

I will soon share it.

Thanks
Nikhil
Nikhil Singhal Send private email
Thursday, December 3, 2009
 
 

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics
 
Powered by FogBugz