Hi
I want to include some custom function buttons for each row on the list page - the functions call various php functions using a decorated URL e.g. ../refresh.php?seriesCode=AUTUMN09 - where AUTUM09 is a value of a field shown on the list page.
I can do this now by placing the button code directly in the page using the Visual Editor. However I would really much prefer to use an inserted code snippet or custom view format as these are not lost when the page has to be reset. I don't like using the custom view formatiing as I need several buttons on each row all using the same fields and I would need to create dummy fields in the database to handle all the buttons.
When using the code snippet approach - which would be the best solution - I can't find a way of accessing the database fields inside the snippet for each row. I have tried making everything I can think of global using an event and then trying to access it inside the snippet function; but nothing seems to work. I can get access to the data in the final row, but not to the individual row contents. I have though about trying to get the values into session variables - but I have the same problem with knowing which variables to set and in which event.
Does anybody have a general solution for doing this that doesn't get lost every time the page needs to be reset.
thanks for your help
Mark