Exit
  • Global community
    • Language:
      • Deutsch
      • English
      • Español
      • Français
      • Português
  • 日本語コミュニティ
  • 한국 커뮤니티
0

DWCS3: SPRY XMLDataSet - beginner problems

Explorer ,
May 05, 2009 May 05, 2009

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!!!

TOPICS
Server side applications
427
Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines

correct answers 1 Correct answer

LEGEND , May 06, 2009 May 06, 2009

You are more likely to get help with this question by posting in the Spry Forum.

Translate
LEGEND ,
May 06, 2009 May 06, 2009
LATEST

You are more likely to get help with this question by posting in the Spry Forum.

Translate
Report
Community guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines