<https://lh3.googleusercontent.com/-1TlMwoFEkHY/VvaqRZk8m3I/AAAAAAAACTI/JtXMYSdtDzc41g7cSbt_EtPfJjcFAVWDA/s1600/Naamloos.jpg>

I am trying to use the DHTMLX javascript library in order to present and 
work with a resource/ timeline scheduler. see image.
There are 2 methods to load data into the schedule scheduler.parse and 
scheduler.load.
The scheduler.parse is working as expected.

scheduler.config.xml_date="%Y-%m-%d %H:%i";
var events = {{=XML(rows)}};    
scheduler.init('scheduler_here', new Date(),"month");
scheduler.parse(events, "json");

in the controller rows is genererated by
rows=db(query).select(db.rentals.id, db.rentals.startdate.with_alias(
'start_date'),db.rentals.enddate.with_alias('end_date'), db.rentals.
reservationcode.with_alias('text')).json()

However if I try to use the scheduler.load method I don't get any data 
loaded.
scheduler.load("{{=URL('rentals_load')}}","json"); 


The controller looks like
def rentals_load():
    query=db.rentals.id>0
    rows=XML(db(query).select(db.rentals.id, db.rentals.startdate.with_alias
('start_date'),db.rentals.enddate.with_alias('end_date'), db.rentals.
reservationcode.with_alias('text')).json())
    return dict(rows=rows)

Anybody experience with DHTLMX? 
Any Suggestions?

Thanx and Greetings from sunny Bonaire

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Reply via email to