I have a field "xml", with the content of an xml-file...
I want to make a link, so that it is opening a new windows, with the xml-content in it.
In fact sideview already do this, but only for the module code :
Can you clarify your question? It's not entirely clear what you're asking. Do you want to make a simple link or do you want to make a clickable table? When the user clicks this you want to pass the string value of your
xml field, but do you want to pass it to another view or to another web based application? by module code do you mean the Splunk view XML?
Oh I see! You want the XML content to be displayed in the new window. Yes this can be done. I'll try and post an answer soon.
There are two ways broadly speaking.
The first is to do what the Sideview Utils app does - basically write
a custom controller in python. It would be a completely different
custom controller than the Sideview one, because the Sideview one only
knows how to go get the XML source of a Splunk view and display it.
But basically you would use a Redirector module to pass appropriate arguments to the controller and it would display the XML field. Probaby easiest arguments to pass are the existing searchid $results.sid$, and the offset of the given row, and the field name.
I delayed responding thinking I might have time to post specifics illustrating the second
way, or that I might think of a way to do it without any custom code. Sorry but I don't think I have time to make a working prototype for you.
It sound complicated for my know-how level... I hope I can achieve it or let it developp by so...
Do you can tell me a "Controller" name, I can look at in Splunk, to have an example ?
I've found http://davidwalsh.name/downloadify that seems to do at least a part of the job... in case of a js workaround