Bug 154697 Dataset - Property Binding and Dynamic parameter
Content in a dynamic list box parameter are NOT reload after a query actualization. Example: - A hidden parameter called COUNTRY. - A Dynamic list box parameter called CUSTOMERS filtered by COUNTRY. COUNTRY param is set only via URL (&country=USA) Expected: only USA customers list on viewer paramenter window. I had test query actualization via: - Dataset parameter (where country = ?) - beforeOpen() - Property Binding on dataset. Result: - empty list box if not default value assigned to parameter.(no matter country parameter value i set via URL). - custormer list filtered by default value. (no matter country parameter value i set via URL). for more details and examples, see on newsgroup for same subject. Regards, Mauro
viewer/org.eclipse.birt.report.viewer/birt/WEB-INF/classes/org/eclipse/birt/report/service/BirtViewerReportService.java
{
				ViewerAttributeBean attrBean = (ViewerAttributeBean) request
						.getAttribute( IBirtConstants.ATTRIBUTE_BEAN );
				assert attrBean != null;
				reportDesignName = attrBean.getReportDesignName( );
				if ( reportDesignName != null )
				{
					
					
					if ( reportDesignName.endsWith( "\\" ) 
							|| reportDesignName.endsWith( "/" ) ) 
						reportDesignName = null;
				}
			}
		}
		return reportDesignName;
	}
	/*
	 * Convert engine parameters (IScalarParameterDefn and IParameterGroupDefn)
	 * into service api parameters (ParameterDefinition and
	 * ParameterGroupDefinition)
	 * 
	 * @param params a Collection of IScalarParameterDefn or IParameterGroupDefn
	 * @param task the task to use to get selection list for a parameter @param
	 * includeGroups if true, include groups (ParameterGroupDefinition) in the
	 * result, otherwise flatten the result (i.e. include the contents of the
	 * groups in the result)
	 * 
	 * @return a Collection of ParameterDefinition and ParameterGroupDefinition,
	 * or a Collection of only ParameterDefinition if includeGroups == false