Forum Replies Created
-
AuthorReplies
-
Charlie Bursell wrote:
Unfortunately, the Cloverleaf timer it set up more to handle absolute times than periodic times.
Well received! Thanks a lot Jim!! Found it in spam folder.
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!
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.
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.
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?
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?
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.
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.
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.
-
AuthorReplies