Xlate STRING Action – Using fields, temp variables?

Homepage Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Xlate STRING Action – Using fields, temp variables?

  • Creator
    Topic
  • #55283
    Jim Kosloskey
    Participant

    Cloverleaf 6.1.1.

    I am trying to put together some training.

    It does not appear in 6.1.1 that the arguments to the various STRING Action functions (for example xlateStrSubstring) allows the use of temp variable  as arguments.

    The format is ‘xlateStrSubstring first last’ It woild be nice to be able to do something like this ‘xlateStrSubString @my_first @my_last’. I guess if Temp Variable could be referenced then I would think using actual Data Fields or even ITERATE Variables would be useful.

    I think it would make the Action more functional. For example multiple STRING Actions could be aggregated in the same Xlate to achieve more complex solutions.

    Does anyone know if this can be done in 6.1.2 or 6.2?

    Thanks

    email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

Viewing 4 reply threads
  • Author
    Replies
    • #84802
      Levy Lazarre
      Participant

      Jim,

      I can confirm that this doesn’t work in 6.1.2. Triggers a “bad index” error.

      The index must be an integer or end+-

      I haven’t played with 6.2 yet, but I don’t think this functionality is there either.

    • #84803
      Jim Kosloskey
      Participant

      Levy,

      Thanks for checking. Now I know.

      I guess I will do a poll to get the communities feel before considering an Enhancement Request.

      email: jim.kosloskey@jim-kosloskey.com 29+ years Cloverleaf, 59 years IT - old fart.

    • #84804
      Lina Patel
      Participant

      Xlate date field is YYYYMMDD or YYYYMMDDmmss

      I only need YYYYMMDD

      xlateStrSubstring 0 5

      xlateStrSubstring 1 6

      Above two functions do not seem to work,

      How can I obtain YYYYMMDD in Xlate.

      Thank you!

    • #84805
      Levy Lazarre
      Participant

      Lina,

      To get the first 8 characters, you should use:

      Code:


      xlateStrSubstring 0 7

      I hope this helps.

    • #84806
      Lina Patel
      Participant

      Of course – Thank you! 🙂

      See it now…

Viewing 4 reply threads
  • The forum ‘Cloverleaf’ is closed to new topics and replies.

Forum Statistics

Registered Users
5,117
Forums
28
Topics
9,293
Replies
34,435
Topic Tags
286
Empty Topic Tags
10