Categories | Question details Back To List | ||
Calendar in a grid control Hi All. I am using a calendar in a grid control. You can see I am setting a global images directory. Samples of client and xml code below. I have everything working except the calendar control is not displaying any image buttons. It is also defaulting to 1 jan 1970. And using the wrong date format. So...................... How do I tell it to use "%d %b %Y" as a date format when its being called from within a grid? How do I get it to use the date in the cell as the starting point when it is displayed. And how do i get it to use my standard ("/ASPENv4/imgs") directory to pull its imgs from! Or are the img's for the calendar not in the pro_full.zip you get with the commercial version? Thanks in advance. Sample client ----------------------------- var dhxLayout; var dhxInLayout; var dhxGrid; var dhxTree; var dhxStatus; var dp; var dhxMenu; window.dhx_globalImgPath="/ASPENv4/imgs/"; window.dhx_globalIconPath = "/ASPENv4/imgs/"; var cur_Window = "gr_Default"; var cur_Grid; function OnLoad(){ //Main Window dhxLayout = new dhtmlXLayoutObject(document.body, "3L"); dhxLayout.cells("a").setText("Main Menu"); dhxLayout.cells("a").setWidth(200); dhxLayout.cells("b").hideHeader(); dhxLayout.cells("c").hideHeader(); dhxInLayout = new dhtmlXLayoutObject(dhxLayout.cells("a"), "2E"); dhxInLayout.cells("a").hideHeader(); dhxInLayout.cells("a").setHeight(200); dhxInLayout.cells("b").hideHeader(); //Status Bar dhxStatus = dhxLayout.attachStatusBar(); //Main Menu dhxMenu = dhxLayout.attachMenu(); dhxMenu.loadXML("fileExplorerMenu.xml"); //Main edit bar dhxInLayout.cells("a").attachObject(cur_Window); //Main Grid dhxGrid = dhxLayout.cells("b").attachGrid(); dhxGrid.attachEvent("onRowSelect",doOnRowSelected); dhxGrid.setImagePath("./imgs/"); //dhxGrid.enableAutoWidth(true); dhxGrid.init(); //Nav Tree dhxTree = dhxInLayout.cells("b").attachTree(); dhxTree.setImagePath("imgs/"); dhxTree.setIconPath = ("imgs/"); dhxTree.enableKeyboardNavigation(true); dhxTree.loadXML("./engine/get_Menu_XML.asp?CompanyID=<%=CompanyID%>&SID=<%=session.sessionID%>&ID=0"); dhxTree.setOnClickHandler(doOnTreeClick); //Pre-Load the grid LoadGrid("./engine/get_T_XML_list.asp?CompanyID=<%=CompanyID%>&PO=Mine", "gr_Tasks"); //Now set up the editable grid. dp = new dataProcessor("./Engine/updGrid.asp?CompanyID=<%=CompanyID%>&SID=<%=session.sessionID%>") //dp = new dataProcessor("./Engine/updGrid(test).asp?CompanyID=<%=CompanyID%>&SID=<%=session.sessionID%>") dp.init(dhxGrid) dp.enableDataNames(true); dp.enablePartialDataSend(true); dp.setUpdateMode("cell"); dp.defineAction("error", dpError); dp.defineAction("error", dpDebug); //specify transaction method - POST or GET (default is GET) dp.setTransactionMode("POST"); } Sample Server xml ----------------------- <rows total_count="12" pos="0"> − <head> <column type="sub_row" sort="int" width="20">E</column> <column type="ro" sort="int" width="20">D</column> <column type="ro" sort="int" width="100" id="f:JobID">Issue No</column> <column type="ed" sort="str" width="*" id="f:Address">Fault</column> <column type="dhxCalendar" sort="date" width="100" id="f:MustCompleteDate">Next Date</column> <column type="ro" sort="str" width="100" id="f:Client">Client</column> <column type="ed" sort="str" width="100" id="f:Text1">Next Action</column> − <column type="coro" sort="str" width="100" id="r:e:Allocated"> Rep <option value="463">Tony Zdraveski</option> <option value="464">Bruce Lock</option> <option value="606">Mitul Patel</option> <option value="607">Frankie Dib</option> <option value="608">Judi Baker</option> <option value="609">Annie Harper</option> <option value="610">John Sestan</option> </column> <column type="ro" sort="str" width="100" id="f:Contact">Contact</column> <column type="ro" sort="str" width="100" id="f:CPhone">CPhone</column> − <column type="coro" sort="str" width="100" id="f:StageID"> Stage <option value="313">New Issue</option> <option value="314">Assigned</option> <option value="315">Suspended</option> <option value="316">Invoiced</option> <option value="319">Complete</option> </column> − <column type="coro" sort="str" width="100" id="f:StatusID"> Status <option value="1">Open</option> <option value="2">Closed</option> <option value="3">Pending</option> </column> <column type="ro" sort="int" width="100" id="f:Invoice">Inv</column> − <afterInit> − <call command="attachHeader"> − <param> ,,#select_filter,#text_filter,#select_filter,#select_filter,#text_filter,#text_filter,#text_filter,#text_filter,#select_filter,#select_filter, </param> </call> </afterInit> </head> − <row id="1"> <userdata name="gURL">frmJob.asp?CompanyID=42&JobID=1</userdata> <userdata name="gTable">tblJobs</userdata> − <cell> <div> <hr> <span Style="Color:red">Bruce Lock</span> <span Style="Color:DarkGreen">Thu 14 May 2009 3:38PM</span> <hr> </div> <div style="padding-left: 10px"> Received Machines.</div> <div> <hr> <span Style="Color:red">Tony Zdraveski</span> <span Style="Color:DarkGreen">Thu 14 May 2009 3:45PM</span> <hr> </div> <div style="padding-left: 10px"> <br>------------<br>From: Annie Harper [annieh@unisoft.com.au]<br>Sent: Wednesday, 6 May 2009 4:17 PM<br>To: jai.narayan@2ndsworld.com.au<br>Cc: 'Frankie Dib (Frankie Dib)'; johns@unisoft.com.au; 'Mitul Patel'; chris.durlacher@2ndsworld.com.au<br>Subject: Re: 2nds World Online- Print Plus Setup<br><br>the quote is coming... have been playing catch up from the week I was at the conference.<br>Re draft of P+ docs I would need to check- Mitul who has a hand in this was away sick for some of last week so he too is playing catch up- apologies for this.<br>cheers<br><br>Annie<br> ----- Original Message ----- <br> From: Jai Narayan <br> To: 'Annie Harper' <br> Cc: 'Frankie Dib (Frankie Dib)' ; johns@unisoft.com.au ; 'Mitul Patel' ; chris.durlacher@2ndsworld.com.au <br> Sent: Wednesday, May 06, 2009 4:09 PM<br> Subject: RE: 2nds World Online- Print Plus Setup<br><br> Hi Annie & the Team at Unisoft,<br><br> Has there been any progress or update on this work/quote/draft of P+ documents.<br><br> Please let me know.<br><br> Jai Narayan CA<br><br> Financial Controller<br><br> 2nds World Group<br><br> Ph.02-9909 0100<br><br> Mob.0414 355572<br><br> From: Annie Harper [mailto:annieh@unisoft.com.au] <br> Sent: 22 April 2009 6:26 PM<br> To: jai.narayan@2ndsworld.com.au<br> Cc: Frankie Dib (Frankie Dib); johns@unisoft.com.au; 'Mitul Patel'; chris.durlacher@2ndsworld.com.au<br> Subject: Re: 2nds World Online- Print Plus Setup<br><br> sure will do<br><br> ----- Original Message ----- <br><br> From: Jai Narayan <br><br> To: Annie Harper <br><br> Cc: Frankie Dib (Frankie Dib) ; johns@unisoft.com.au ; 'Mitul Patel' ; chris.durlacher@2ndsworld.com.au <br><br> Sent: Wednesday, April 22, 2009 4:07 PM<br><br> Subject: 2nds World Online- Print Plus Setup<br><br> <br><br> Dear Annie<br><br> <br><br> Further to my earlier emails to Alvin & Frankie, we are now getting closer to the point of getting live with our Online Website.<br><br> For this reason, we need to put into motion the configuring of a Print Plus Server and document template changes for 2nds World Online Business.<br><br> The document headers for the 2nds World Online Entity are to have only the Head Office Address, which will be the Online Base.<br><br> Frankie has already set up the Online Entity(7) & Warehouse(1) in Business Edge.<br><br> <br><br> As done in the case of Caringbah set up, I would like Unisoft to configure a PC with P+ and ship it to us.<br><br> <br><br> I am attaching a draft sketch of a typical document header and footer for the Online P+ server and will appreciate if this can be formatted and sent back for our review.<br><br> Please contact Chris Durlacher for any clarification on the wording/format of this attached document or let me know if there are any broader issues.<br><br> <br><br> We are looking at going live with 2nds World Penrith in late June early July 2009 and will be in touch about licenses and P+ setup. We will be ear marked Entity 5 ( previously 2nds World Arncliffe) for this setup.<br><br> <br><br> Please let me know the cost estimates for the job <br><br> <br><br> Jai Narayan CA<br><br> Financial Controller<br><br> 2nds World Group<br><br> Ph.02-9909 0100<br><br> Mob.0414 355572</div> <div> <hr> <span Style="Color:red">Tony Zdraveski</span> <span Style="Color:DarkGreen">Thu 14 May 2009 3:46PM</span> <hr> </div> <div style="padding-left: 10px"> To:annieh@unisoft.com.au cc: bcc:<br>-------------------------------------------<br>Received box's today.<br><br>rgds</div> <div> <hr> <span Style="Color:red">Tony Zdraveski</span> <span Style="Color:DarkGreen">Thu 14 May 2009 3:57PM</span> <hr> </div> <div style="padding-left: 10px"> To:annieh@unisoft.com.au cc:johns@unisoft.com.au bcc:<br>-------------------------------------------<br>hi guys,<br><br>Just a note to let you know th at I have emailed Alvin requesting his time for assistance in 2nds World Print plus install.<br><br>I need a current mobile number for Alvin if either of you do not have it please advise where I can get this from.<br><br>regards,<br><br></div> <div> <hr> <span Style="Color:red">Bruce Lock</span> <span Style="Color:DarkGreen">Fri 15 May 2009 6:16PM</span> <hr> </div> <div style="padding-left: 10px"> FYI � The Print+ templates for the online stores are ready for dispatch. <br><br>Frankie : <br><br>� The entire config is located on Artemis under /u/printplus_dev/tbeprint.second/ <br><br>� TBE report maps will need to be setup, refer to /u/printplus_dev/tbeprint.second/etc/tbeprint.conf file<br><br>o eg. Online � Invoice = rptWebInvoice<br><br>� We will also need clarification from Alvin on the following items:<br><br>o Installing Perl modules on Linux <br><br>o Configuring and deploying Fax and Email functionality for Print+ (on the Linux OS Level)<br><br><br>Kind Regards,<br>Mitul Patel<br>Numara Software Australia<br>Suite 1, 651 Canterbury Road<br>Surrey Hills, VIC 3127<br></div> <div> <hr> <span Style="Color:red">Bruce Lock</span> <span Style="Color:DarkGreen">Fri 15 May 2009 7:01PM</span> <hr> </div> <div style="padding-left: 10px"> To:mitul.patel@numarasoftware.com.au;Frankie@unisoft.com.au cc:techsupp@unisoft.com.au;annieh@unisoft.com.au bcc:<br>-------------------------------------------<br>Hi Gents,<br><br>Unfortunately I am out of Melbourne on Sunday, and I am trying to ensure I have a complete list of questions to ask Alvin when he comes in.<br><br>Mitul has suggested:<br><br>- Installing Perl modules on Linux<br>- Configuring and deploying Fax and Email functionality for Print+ (on the Linux OS Level)<br><br>Further I would like to know:<br>- Why was the perl scripts not ported to SUSE?<br>- Why was SUSE chosen?<br><br>Tony would Like to Know:<br>- Can we re-direct fax services from the Auburn printer to another state while we fix this issue?<br><br>I am sure there are a million other questions!<br><br>Please feel free to crank out as many as you can think of.<br><br>Best regards<br>Bruce</div> <div> <hr> <span Style="Color:red">Bruce Lock</span> <span Style="Color:DarkGreen">Fri 15 May 2009 7:03PM</span> <hr> </div> <div style="padding-left: 10px"> To:mitul.patel@numarasoftware.com.au cc:techsupp@unisoft.com.au bcc:<br>-------------------------------------------<br>Hi Mitul,<br><br>Thanks for letting us know about those images for seconds world, will save us a lot of time!<br><br>Are all system configs stored in that location?<br><br>How do I organise myself a log on to the network to view things? or is that my job? 8)<br><br>Best Regards<br>Bruce</div> <div> <hr> <span Style="Color:red">Bruce Lock</span> <span Style="Color:DarkGreen">Wed 20 May 2009 10:19AM</span> <hr> </div> <div style="padding-left: 10px"> Print server images are kept.<br><br>Server images //artemis/u/printplus_dev<br><br></div> <div> <hr> <span Style="Color:red">Bruce Lock</span> <span Style="Color:DarkGreen">Tue 26 May 2009 5:59PM</span> <hr> </div> <div style="padding-left: 10px"> Server Tested today with Suiming, need to add IP addresses of new site nad templates to suite in order to ship</div> <div> <hr> <span Style="Color:red">Tony Zdraveski</span> <span Style="Color:DarkGreen">Tue 2 Jun 2009 12:20PM</span> <hr> </div> <div style="padding-left: 10px"> Received Email from Jai at 2nds World, he advises that he weill get back to me with IP adresses and gateway for Penrith store as soon as it is available from his IT consultants. PC will be sitting here waiting for these details and will then be updated and sent out.</div> </cell> <cell> <img height="10" width="10" title="This job is Over Due. Click to add a new note" src="images/Urgent.gif"> </cell> <cell>01</cell> <cell>Set up Print server for Penrith.</cell> <cell>16 May 2009</cell> <cell>2nds World</cell> <cell>Client will call to organise installation</cell> <cell>Bruce Lock</cell> <cell></cell> <cell/> <cell>Assigned</cell> <cell>Pending</cell> <cell>0</cell> </row> Answer posted by dhxSupport on Jul 01, 2009 03:52 >>I have everything working except the calendar control is not displaying any image buttons. Your codebase\imgs\ folder should contain __dhxCal_skin_Yahoolike folder from the dhtmlxCalendar package. (dhtmlxCalendar\codebase\imgs\__dhxCal_skin_Yahoolike\) >>It is also defaulting to 1 jan 1970 You have to define date format using set setDateFormat() method which availible in PRO version only. You can find more information about formating date values here http://dhtmlx.com/docs/products/dhtmlxGrid/doc/articles/Cell_values_formating.html#grid_art_formatcells Answer posted by block on Jul 01, 2009 17:01 Hi All. I have the PRO version. That worked just fine thanks. Regards
|