Using beanshell to increment search results
Submitted by Monday, 4 April, 2011 - 13:31on
I have an xml with products:
The problem is that all serial numbers are the same. It is easy enough to search for the serial number but I want to increment the value, maybe using beanshell, for every new search hit. Is that possible? My thought was to convert the serial number to an int and increase the number but I guess this requires a global variable to be used as a counter. Can beanshell use global/persistent variables in the search dialog in jEdit? I am a fairly good java programmer but a novice with bsh and would very much appreciate some hints about where to start.