I have a problem to fetch data from my rails applications. It is Rails 2.3 and xml files (rxml) and I use DHTMLX. They are close in may ways. I used the same techniques initialize and load the data from the rxml file. Rail processes rxml into xml with full of data.However, I followed the guide http://docs.webix.com/datatable__external_configuration.html to make xml file in rails but webix not showing anything in the datatable I setup. tried
{ view:"datatable", datatype:"xml", url:"rest->/finance/clients/" }
{ view:"datatable", datatype:"xml", url:"/finance/clients/" }
don’t work. /finance/clients/ is working is DHTMLX.
My rxml file is
xml.instruct! :xml, :version=>"1.0"
xml.data do
xml.config do
xml.columns do
xml.column "id" => "name", "title" => t('name')
xml.column "id" => "address", "title" => t('address')
xml.column "id" => "phone", "title" => t('phone')
xml.column "id" => "email", "title" => t('email')
end
end
@clients.each do |client|
xml.item "id" => client.id, "name" => client.name, "address" => client.address, "phone" => client.phone, "email" => client.email
end
end
The guide is helpful but not enough and internet source about webix is not enough either.
I hope you can help me. Thank you.