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)
script to use a column from dataset in script
shivani08
Hi,
I want to compare one of the column values to match in order to display data. I am not able to find the correct script syntax to use a column of the data set. Please if anyone is aware of the script let me know. I am stuck up here.
Find more posts tagged with
Comments
mwilliams
Hi shivani08,
If the report item you're scripting in is bound to the dataSet you're trying to access, you should be able to use row["column_name"]. Let me know.
shivani08
Hi Micheal,
Actually I wanted to write a script inside the script tab to access data. I used the following script but it gave me error.
var inv_type = reportContext.getParameterValue("TYPE");
var lang_id = inv_multilingual.acct_language; -- This were I think is the defect
if(inv_type.toUpperCase() != "DRAFT")
{
this.getMasterPage("Simple MasterPage").getStyle().backgroundImage = "";
}
else
{
if(lang_id == "ja")
{
this.getMasterPage("example").getStyle().backgroundImage;
}
else
{
this.getMasterPage("Simple MasterPage").getStyle().backgroundImage;
}
}
I think I am not putting the correct syntax.
mwilliams
shivani08,
There are many script methods you can access by selecting the script tab. What method are you putting your code in? On an element? Or on the report in general? Let me know.