Copy link to clipboard
Copied
Hi NG,
i hope you can help me....
I started with spry and i have some problems.
1. I use XMLDataSet to get Values from XML.
First thing, i used nested XMLDataSets, to get nested datas.
It works, but i have Problem with sort.
When i use spry:sort and than the nested Set it adjust only the nested values (like colors and size under the main set.
My Target is, that when the user sort by nested value, the whole table is sort by the nested sort.
How can i make this?
2. I have function to fix price output from 10000 to 10.000
It works, but now i find out, to sort by price it works only if i set column to number. But...than my function is not working anymore, because i need string. Is there any idea to doubble the price value and define one as number and one as string? than i can use one for sort and one for price output?
Here the code:
<script type="text/javascript">
function FormatEUR(region, lookupFunc) {
var i;
var j=0;
var ergebnis="";
var zahl_number="{price}";
var zahl_string=zahl_number+'';
zahl=(lookupFunc(zahl_string));
i=zahl.length;
while (i >= 0) {
ergebnis=zahl.substr(i,1)+ergebnis;
j++;
if (j==4) {
ergebnis="."+ergebnis;
j=0;
}
i--;
}
return ergebnis;
}
</script>
3. How can i make a preloader? I need lot of time to get XML values, so it looks not good. Is there some link for example?
THANKS!!!
You are more likely to get help with this question by posting in the Spry Forum.
Copy link to clipboard
Copied
You are more likely to get help with this question by posting in the Spry Forum.
Get ready! An upgraded Adobe Community experience is coming in January.
Learn more