Trend from Reports

Trend from Reports

Hi again! :)
I've created some reports(.xrs) in Report Generator and show them in runtime via "Report Generator" screen type.
I want to add on this screen button "Show Trend". After clicking this button, new screen with thend must be shown(with variables from report).
I know, how to modify function to open trend with necessary variables(http://www.copadata.com/forums/showpost.php?p=3414&postcount=4). But i can't understand, how can i get the list of variables, that is used in opened report.xrs?

This is a migrated post! Originally posted on 13.03.2015 by user diemon. Please be aware that information can be outdated.