I want to set a SQL variable before the data set query executes. I tried putting it on the database URL with in the data sources definition (jdbc:mysql://DevARDServer:3306/vid_reporting?sessionVariables=
@User_UUID=';e5ce2cf6-4cf3-11e1-bccd-00155d006a32') and it works just fine for the first data set select. However, it does not apply it to the other data sets. The report has 3 data sets to get the data for the report. The first data set retreives the data properly but the other 2 do not.
I want to have a MySQL " set
@User_UUID=';e5ce2cf6-4cf3-11e1-bccd-00155d006a32'; " command execute before each data set select as the view has the
@User_UUID variable in the where clause.
Can you tell me how to have this session variable applied to the concurrent sessions created by the report generator so that each data set has the proper selection criteria.
Thank you for your assistance.