[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] [Newsgroup Home]
[news.eclipse.birt] Get the datasource URL in the property binding ?

Hi,

In a XML Datasource I've got a URL of XML filled with a default value. I've also filled property binding in this xml datasource in order to react at runtime with some parameters. The fact is when I click on preview tab on my report the property binding is called. So I'd like in this case (preview tab) to call the url of xml filled inside XML DataSource.

For this I've used an attribute in session if it is not filled, then this means that the default value should be used. However here I dont know to say return the default value already specified in XML DataSource.

// To comment only there for design time
var request = reportContext.getHttpServletRequest();
var login = request.getSession().getAttribute("login");

if (login != null) {
	"http://localhost:6060/pouet/xmlQuery.jsp?login="; + login;
}
else {
	// should return default value
}	

Regards,
Moi.