Discussions
Categories
Groups
Community Home
Categories
INTERNAL ENABLEMENT
POPULAR
PUBLIC CLOUD
PRIVATE CLOUD
Quick Links
MY LINKS
HELPFUL TIPS
Back to website
Home
Intelligence (Analytics)
Cascade Parameter Question
JavaNep
Hi have created a cascaded parameter i.e p_country and p_city
lets say country and city .
So, For selected country, respective City sd appear in p_city , but I want to provide value for list of city for each country ( where country list is obtained from SQL but City value is hardcoded) statically with map or array not from the datset .i mean scripting the values of city in form of array . What i have done is used cascaded parameter and on second parameter i.e p_city i have something like this :
on getSelectionValueList:
var value =[];
if (params["p_country"].value == "USA")
{
value[0]= "Dallas";
value[1] = "Columbus";
value;
}
My issue is my requrement works just fine if i make p_city as static in Value type from properties but gives error :" Parameters within a cascading parameter group should be dynamic type." , but if i continue with error it works fine and generates report according to requirement.When i change the value to Dynamic , it doesnt even read the script.
Is there a way to suppress that error or any suggestion. Please Help
Find more posts tagged with
Comments
kclark
Can you post the rptdesign with the sample db please?
JavaNep
Can we make one of the cascaded parameter above p_city static . That wd just solve my problem . If it doesnt give me error<br />
<br />
<blockquote class='ipsBlockquote' data-author="'kclark'" data-cid="113295" data-time="1358279428" data-date="15 January 2013 - 12:50 PM"><p>
Can you post the rptdesign with the sample db please?<br /></p></blockquote>