:: Forum >>
Need to have lowercase filename
I am evaluating the Grid and it took me over 2 hours to finally figure out why my coding using this as an example didn't work. It's because I was using a filename that had uppercase and lowercase characters. Once I changed it to all lowercase, the XML was then loaded.
Jeff C.
Thursday, November 9, 2006
Huh? I use a mixed case filename without any problems.
John Sourcer
Friday, November 10, 2006
Windows itself isn't filename case sensitive, if you are deploying from linux you should pay attention to this.
Matthieu Hendriks
Friday, November 10, 2006
Sure Matthieu but this would still not mean that you cannot have uppercase letters in the setURL method!
John Sourcer
Friday, November 10, 2006
I am trying it on a IIS server and could not get the data to load when I was using the filename XMLFile1.xml. I then just happened to try it all in lowercase and suddenly the data was loaded.
Jeff C.
Friday, November 10, 2006
We have a similar thing. We use the tab component to switch datasets for the grid (xml as well). The tabs are "A", "B", "C", etc.
But the dataset is a.xml, b.xml, c.xml.
So, what I did was easy, when a TAB is clicked it sets a variable to the value of the tab but converts it to lowercase.
So, it is something like:
objTab.onItemClicked = function(event, index){
var tabValue = objTab.getItemValue(index).toLowerCase();
document.xmlName = tabValue;
loadQueue(tabValue);
};
The loadQueue is a js function that actually loads in the new dataset and refreshes the grid.
function loadQueue(jsStr) {
var xmlName = "https://www.pjm.com/planning/project-queues/xml/gen_queue_"+jsStr+".xml";
table.setURL(xmlName);
table.request();
table.refresh;
}
It's been working fine for me since about March.
We are using an AIX environment for our webserver, so case-sensitivity is an issue. But we have web standards that dictate ALL file names are lowercase.
Carl
Saturday, November 11, 2006
This topic is archived.
Back to support forum
Forum search