0 Replies Latest reply: Dec 17, 2012 3:32 AM by 935332 RSS

    OUAF and XPath

    935332
      Hi All,
      I would like to use a random number in one of my OUAF Service Scripts.
      Do you know if the random function is implemented in the Framework and what would be the syntax ?
      I tried many things with and without “Math.” prefix or "xs:" and "fn:" namespaces with rand() or random() function :
      move "round(xs:double(Math.random() * 1000))" to $h;
      But nothing worked, giving me an exception like "Detail: unknown function 'Math.random"…
      Thanks in advance,
      Kind regards

      Edited by: Mapa4 on 16 déc. 2012 23:46

      Edited by: Mapa4 on 16 déc. 2012 23:48

      Edited by: Mapa4 on 16 déc. 2012 23:51

      Edited by: Mapa4 on 17 déc. 2012 10:32