After long researching I found solution of my questions. First in my jndi query component query required attribute value and that attribute value I want to pass through url for this I select one component parameter and write javascript code as below
function()
{
cname = Dashboards.getQueryParameter('name');
}
you can also this script to your component under pre execution and add parameter name as cname value also cname and my query will select * from table name where cname=${cname}
. and in my iframe url I pass argument as below
http://localhost:8080/pentaho/content/pentaho-cdf-dd/Render?solution=demo&path=&file=pass_parameter.wcdf&userid=joe&password=password&name=Linux
and it shows me a results which I want.