0

1

I am trying to write a plugin that will format cases in a way that will print out nicely on index cards, so we can more easily tie together our paper/card Scrum system with a master electronic copy.*

I've got the plugin hooked up via the extras menu, currently, which just throws up a bit of HTML via IPluginRawPageDisplay.

But what I really want to do is add to the menu that appears at the bottom of a list view of cases (i.e. alongside Spam, Resolve, Edit etc), and then in my plugin get the list of cases that were selected from that list view.

Can you provide me with a couple of pointers or code snippets?

*Note: The Pretty Print plugin is very similar to what I want, but I cannot use it as there are no formatting options. I guess another difference is I don't want to print the whole filtered view, just the selected items from that.

flag

1 Answer

2

Plugins can access your current filter (with api.Filter.GetCurrentFilter()), so if you want to be able to click a button in the case list to show that filter in your custom view, I would just use javascript in IPluginJS (which is replacing the deprecated IPluginStaticJS) to add the link to the page where you want it. Alternatively, you can use IPluginFilterToolbarMenu to put the link in the filter toolbar menu.

I will email you now to discuss this in more detail.

link|flag

Your Answer

Not the answer you're looking for? Browse other questions tagged or ask your own question.