Auto complte in for loading working…
But when I open light box, the combo value is empty…
Autofill dropdown Client not working in scheduler light box combo…
Both responses are like the below
Auto complete response below works good…
<?xml version='1.0' encoding='utf-8' ?>customer1-last , customer1-firstcustomer2-last , customer2-firstcustomer3-last , customer3-firstcustomer4-last , customer4-firstcustomer5-last , customer5-firstBourne , Jason
by selected id response when light box opens:
<?xml version='1.0' encoding='utf-8' ?>customer4-last , customer4-first
Instead it is showing a popup with the above message
As u the working XML has more than one for autocomplete. That was fine. But when light box opens it is single record it showing as pop up.
Browser console shows this in chrome…
Uncaught TypeError: Cannot read property ‘nodeName’ of null dhtmlxscheduler.js:35
dtmlXMLLoaderObject.doXPath dhtmlxscheduler.js:35
(anonymous function) dhtmlxscheduler_editors.js:6
check
Do you have some kind of sample of an online demo, where issue can be reconstructed ?
Hmm… I don’t have it online… but clearly the the query it is making with id when light box opens it is going different path… but when it going via mask field same xml snippet is valid, i think it is going in different path… does XML needs special way…as i pasted in my first message response has all tags and message is utf-8…not sure what to do…
Can you use firebug or chrome dev tools, repeat the scenario and post here the url in the problematic case, and the correct one.
if(navigator.userAgent.indexOf(“Safari”)!=-1||navigator.userAgent.indexOf(“Konqueror”)!=-1)_KHTMLrv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf(“Safari”)+7,5)),_KHTMLrv>525?(_isFF=!0,_FFrv=1.9):_isKHTML=!0;else if(navigator.userAgent.indexOf(“Opera”)!=-1)_isOpera=!0,_OperaRv=parseFloat(navigator.userAgent.substr(navigator.userAgent.indexOf(“Opera”)+6,3));else if(navigator.appName.indexOf(“Microsoft”)!=-1){if(_isIE=!0,(navigator.appVersion.indexOf(“MSIE 8.0”)!=-1||navigator.appVersion.indexOf(“MSIE 9.0”)!=
-1||navigator.appVersion.indexOf(“MSIE 10.0”)!=-1)&&document.compatMode!=“BackCompat”)_isIE=8}else _isFF=!0,_FFrv=parseFloat(navigator.userAgent.split(“rv:”)[1]);
dtmlXMLLoaderObject.prototype.doXPath=function(a,b,c,d){if(_isKHTML||!_isIE&&!window.XPathResult)return this.doXPathOpera(a,b);if(_isIE)return b||(b=this.xmlDoc.nodeName?this.xmlDoc:this.xmlDoc.responseXML),b||dhtmlxError.throwError(“LoadXML”,“Incorrect XML”,[b||this.xmlDoc,this.mainObject]),c!=null&&b.setProperty(“SelectionNamespaces”,“xmlns:xsl=’”+c+"’"),d==“single”?b.selectSingleNode(a):b.selectNodes(a)||[];else{var e=b;b||(b=this.xmlDoc.nodeName?this.xmlDoc:this.xmlDoc.responseXML);b||dhtmlxError.throwError(“LoadXML”,
“Incorrect XML”,[b||this.xmlDoc,this.mainObject]);b.nodeName.indexOf(“document”)!=-1?e=b:(e=b,b=b.ownerDocument);var f=XPathResult.ANY_TYPE;if(d==“single”)f=XPathResult.FIRST_ORDERED_NODE_TYPE;var g=[],h=b.evaluate(a,e,function(){return c},f,null);if(f==XPathResult.FIRST_ORDERED_NODE_TYPE)return h.singleNodeValue;for(var k=h.iterateNext();k;)g[g.length]=k,k=h.iterateNext();return g}};function w(){if(!this.catches)this.catches=[];return this}w.prototype.catchError=function(a,b){this.catches[a]=b};
Url works: localhost:8080/fa/customers?pos= … 1879618751
Request URL:http://localhost:8080/fa/customers?pos=0&mask=c&a_dhx_rSeed=1381879618751
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:/
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:JSESSIONID=086FE713F3C2F4FEFD7FBDF856A9D8F9
Host:localhost:8080
Referer:http://localhost:8080/fa/Scheduler
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36
X-Requested-With:XMLHttpRequest
Query String Parametersview sourceview URL encoded
pos:0
mask:c
a_dhx_rSeed:1381879618751
Response Headersview source
Content-Length:365
Content-Type:text/plain;charset=ISO-8859-1
Date:Tue, 15 Oct 2013 23:26:58 GMT
Server:Apache-Coyote/1.1
URL fails:
localhost:8080/fa/customers?id=1 … 1878283958
Request URL:http://localhost:8080/fa/customers?id=101&uid=1381878283958
Request Method:GET
Status Code:200 OK
Request Headersview source
Accept:/
Accept-Encoding:gzip,deflate,sdch
Accept-Language:en-US,en;q=0.8
Connection:keep-alive
Cookie:JSESSIONID=7D1BE87FA18417A3EC510A689F0701B3
Host:localhost:8080
Referer:http://localhost:8080/fa/Scheduler
User-Agent:Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_4) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/30.0.1599.69 Safari/537.36
X-Requested-With:XMLHttpRequest
Query String Parametersview sourceview URL encoded
id:101
uid:1381878283958
Response Headersview source
Content-Length:121
Content-Type:text/plain;charset=ISO-8859-1
Date:Tue, 15 Oct 2013 23:46:22 GMT
Server:Apache-Coyote/1.1
Can I use Json format instead of xml to load option when light box opens up?
The url itself is valid.
Server side code based on connector will generate valid response in both cases. The only difference is that in the first case url has “pos” and “mask” parameter and hasn’t them in the second case - but both parameter is fully optional
The predefined “combo” section will work with xml only.
But you can create a custom section and use can use any kind of logic and custom controls inside of it.
what do u think the issue is then?
If you are using custom code - there must be problem with xml generation.
If connector based code was used - I’m not sure, its hard to say without a demo, where issue can be checked.
it is custom, got it working… but there may be a bug in dhtmlx scheduler when handling combo reponses.