Page 1 of 1

Report using XML DataSource

Posted: Sat Jun 11, 2011 1:41 am
by jignesh
I seen some question related to this topic , in which it is describe that we can either generate xml at client side or on server side....

Can any one guide me how exactly we can store xml at client side ? what are the configuration that need to be done in this case in which files ?

Also I want to give xml path dynamically to my mrt file how is this possible ?

If someone has any working example please snap working code here if possible....

Thanks

Report using XML DataSource

Posted: Tue Jun 14, 2011 2:28 am
by Vladimir
Hello,

The XML data file format will be standard for ADO.NET, please see the 'DataFormat.xml' attached file. You can create it with any text editor, or programmatically on the server side using PHP script.
Also I want to give xml path dynamically to my mrt file how is this possible?
1. Set the FlexAdapterXmlData option to False in the 'config.xml' file
2. Configure an XML data provider as you need in the 'database_xml.php' file. For example:

Code: Select all

function sti_xml_get_data($data_path, $schema_path)
{
	$data = file_get_contents($data_path); // You can set this path dynamically
	return $data;
}
Thank you.