Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
THRUST SERVICES & TOOLS
CLOUD EDITIONS
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Unable to get dataset parameter in the Table Eventhandler
Jyothy
I am able to get dataset parameter of a table in scripted dataset beforeopen method in following way.
clientid = String.valueOf(dataSet.getInputParameterValue("clientid"));
I need the same paarmeter in the OnPrepare event of TableEventHandler.
Pls advice.
Find more posts tagged with
Comments
mwilliams
Hi Jyothy,
Is clientID a report parameter that the user enters?
Jyothy
No, its a not report parameter. It a parameter binded to a table element from its parent element i.e List element.
If its a report parameter, I could have got it directly from reportContext form TableEventHandler.
Jyothy
Attached the rpt design file for reference.
I need to get client id in TABLEventHandler CLASS which is set as dataset parameter from binding tab of table element.
mwilliams
Jyothy,
Ok, I see now. Can you explain more about the purpose of getting this value? What you're trying to do? Thanks.
Jyothy
Michael,
Based on this parameter i need to get the column headers dynamically. So its very imp for me to get this parameter in TableEventHandler.
Its very urgent ..Can you pls let me the solution.
Regards
Jyothy Anjuri
mwilliams
Jyothy,
Since you're assigning the parameter value in the table through the binding tab, you should just be able to grab that same value in your script rather than trying to get the dataSet parameter value.
mwilliams
Also, if the values you're wanting to display as the headers are in your dataSet, you could use data elements in your header row rather than labels.
Jyothy
Can i not get dataset parameter binded in Binding tab in Java Table event handler?
I need it as i need to query the database the column names based on this parameter.
Is there a solution to het it in Hava Table Event Handler?
If I get in script how can i get it/ and is there a way i can access it from EventHandler class?
Regards
JYothy