Layale Zakhour

Forum Replies Created

Viewing 10 replies – 1 through 10 (of 10 total)
  • Author
    Replies
  • in reply to: How to Schedule a TCL Procedure #85476
    Layale Zakhour
    Participant

      Charlie Bursell wrote:

      Unfortunately, the Cloverleaf timer it set up more to handle absolute times than periodic times.

      in reply to: How to Iterate #85279
      Layale Zakhour
      Participant

        Well received! Thanks a lot Jim!! Found it in spam folder.

        in reply to: How to Iterate #85277
        Layale Zakhour
        Participant

          Jim Kosloskey wrote:

          email me (my email is at the bottom of this post) and I will send you the proc.

          Hi Jim,

          I sent you an email. Awaiting your response. Thank you for your support!

          in reply to: How to Iterate #85275
          Layale Zakhour
          Participant

            Hi Jim,

            Thank you for your response.

            Quote:

            When I have the situation where I have a string which could have any number of elements in a separated list, I have a generic Tcl proc which converts that list to a true Tcl list.

            Then I use the List ITERATE along with another generic proc I have to pop one element at a time from the produced true Tcl list. Using a technique to control the ITERATE I stay in that ITERATE until the list is empty.

            Do you mind sharing the Tcl proc that converts a list to a true Tcl list? Also do you mind sharing a screenshot on how to Iterate on a list? I’m still a newbie.

            Thanks a lot.

            in reply to: How to Iterate #85273
            Layale Zakhour
            Participant

              Charlie Bursell wrote:

              I’m not Jim but it seems to me if you want to do this in Xlate you will have to define a schema for the XML layout.

              If it were me, and it is not, rather than creating a schema for something this simple I would just do it in Tcl

              Thanks Charlie. I’m keeping the tcl code as my last option. I’m hopeless on Cloverleaf but I still expect the tool to have the capabilities to translate the message without writing code  ðŸ˜•  

              I prepared an XML schema but let’s say I have CategoryID = 1 which contains 2 items, I could not produce the iteration below:

              Chair

              Desk

              I tried to use a database lookup table which returns the 2 items for CategoryId=1, but the table returns a tcl list.

              in reply to: How to Call an API #85016
              Layale Zakhour
              Participant

                Thank you for the info. Well what’s the best way to call a REST web service and a SOAP web service in Cloverleaf? Im using version 6.2. how do we do that using the CAA-WS component?

                in reply to: How to Call an API #85014
                Layale Zakhour
                Participant

                  Thank you for your reply Levy. I created a python script that calls the URL and parses the result. How can I pass input from a database table to the python script in Cloverleaf? and how can I write the output to the database?

                  in reply to: Simple Xlate Example #84997
                  Layale Zakhour
                  Participant

                    Turned out that my work was correct. Opened the results in Notepad++ and Excel instead of Notepad and the results were good. Awkward output in Notepad.

                    in reply to: Simple Xlate Example #84994
                    Layale Zakhour
                    Participant

                      Dunno why when the route message is set to raw, all the records appear in the flat file and when the route message is set to xlate, I start having either one row as a result, or the whole messages one after another without any newline between them, they look like a paragraph.

                      in reply to: Simple Xlate Example #84991
                      Layale Zakhour
                      Participant

                        Hi Robert,

                        I have tried to set the option “Each row as message” before but at the end I got only one row in the flat file that shows the current row being read. For instance, the first time I open the file, I see row #1, then few second later, I see row #2 instead of row#1 while row#1 is replaced with row #2.

                      Viewing 10 replies – 1 through 10 (of 10 total)