Bug in PDF coloring for month mode

Looks like the xml generated by

scheduler.toXML() is different in the “month” mode.

All other modes generate the event color as both the background color and the color attribute for the body element. But as shown below, the month mode has the color attribute as transparent and that is making the pdf lose the color details. This looks like a bug. Can you please address this and publish a newer version??



Hi,
please, provide a complete demo or link to a page with a problem.

My bad. I am using the scheduler.toPDF() function.

This is part of a bigger project so I will have to create another demo and send it to you. But you can plug in this json data below into the call and check it out in the meanwhile.

<input type="button" name="print" value="print" onclick="scheduler.toPDF('http://localhost:9080/scheduler-pdf/generate','fullcolor')" style='position:absolute; right:472px; top:0px;'>

[{“id”:"#BCR113180N",
“start_date”:“2012-11-22 00:00:00”,
“end_date”:“2012-11-22 00:00:00”,
“text”:“BCR113180NTracker13679BCR.rep”,
“details”:“BCR113180NTracker13679BCP.rep”,
“color”:"#8A2BE2",
“category”:null,“subCategory”:null},
{“id”:"#AUM12032PW",
“start_date”:“2012-11-16 00:00:00”,
“end_date”:“2012-11-16 00:00:00”,
“text”:“AUM12032PWAUMProductionsupportPershingconversioonBP211.”,
“details”:“AUM12032PWAUMPP211.”,
“color”:"#A52A2A",
“category”:null,
“subCategory”:null},
{“id”:“NET12320CK”,
“start_date”:“2012-11-23 00:00:00”,
“end_date”:“2012-11-23 00:00:00”,
“text”:“NET12320CKNewLABCER10.112.15.2”,
“details”:“NET123204UCLABCER10.112.15.2”,
“color”:"#8A2BE2",
“category”:null,
“subCategory”:null},
{id":"#AUM1118805",
“start_date”:“2012-11-19 00:00:00”,
“end_date”:“2012-11-19 00:00:00”,
“text”:“AUM1118805AUMProductionsupporta”,
“details”:“AUM1118805AUMPversionSalesconnMFAccountsUMcode.”,
“color”:"#8A2BE2",
“category”:null,
“subCategory”:null}]

I even tried this with the DHTMLX url provided with the samples but the result is the same.


Hi,
it looks like that style of event html-object is #000. You should change it to #000000 to support exporting real colors.

The issue is with the way it uses data originally loaded via JSON. I did some more testing to confirm this.

  1. I load the sample data shown before via JSON.
  2. Use the scheduler.toPDF() and point it to the PDFGenerator servlet.
  3. The resulting xml that is passed to the servlet, as shown before, misses the colors.

Now, I loaded the same data but as xml. This time the resulting xml had the colors as both the background color and the color attributes.

So definitely looks like a bug. Can you please try the same?

Hi,
could you provide scheduler initialization code to try to replay it at a local machine.

Here is the relevant portion for the init

$(document).ready(function() { scheduler.config.multi_day = true; scheduler.config.server_utc=false; scheduler.config.xml_date="%Y-%m-%d %H:%i"; scheduler.config.details_on_dblclick = true; scheduler.config.details_on_create = true; scheduler.init('scheduler_here',new Date(),"month"); scheduler.parse('${JSON_DATALIST}',"json"); var calendar = scheduler.renderCalendar({ container:"cal_here", navigation:true, handler:function(date){ scheduler.setCurrentView(date, scheduler._mode); } }); scheduler.linkCalendar(calendar); scheduler.setCurrentView(scheduler._date, scheduler._mode);

Hi,
I tried to repeat it at a local machine, but it works correctly. Could you provide me a complete demo with a problem?