а

How to load events from my own database


#1

Hi!..I am trying to create a web app for a school project and this is the best free plugin I’ve found so far. The problem is that I need to load events from my own database. Basically what I want to do is I want to organize games and I am using a Postgres as a DBMS. So my table would be something like Game(starting_hour, ending_hour, date and some other info) and what I would like to do is to use the scheduler just for displaying purposes (setting it as read-only) and actually input that data using a form and rendering the scheduler again every time a new game is added but I can’t seem to find how to load an event without using XML but my own database instead.

I’ve been reading and I’m a bit overwhelmed with all the concepts of connector, dataprocessor, templates, etc…I would reeeeeeeeeeeeeally appreciate some help with this matter. Thanks for your help!


#2

Hello,

Do you use wordpress/joomla plugin version?

Kind regards,
Ilya


#3

Nope :frowning:


#4

As you need only show data - you can skin connectors and use simple php (or any other server side script) script as data source

You script will need to read data from DB and output it as XML text ( or as JSON - if its more simple in your case )

Format of xml can be checked here
docs.dhtmlx.com/doku.php?id=dhtm … ntegration

On client side you only need to use

scheduler.load("yourscript.php")

#5

I also encountered with same problem. As I search for the problem there are many suggestions but not worked any of it.


#6

Hello, @tampeta!

Did you read the section “How to Start with dhtmlxScheduler”?
https://docs.dhtmlx.com/scheduler/howtostart_guides.html
There are some useful tutorials, that describe how to use Scheduler together with different server-side platforms.

If you’ve applied the solutions above, can you tell me, what kind of difficulties do you face?