Python and Javascript equivalents for the Cloverleaf TCL extensions

Clovertech Forums Cloverleaf Python and Javascript equivalents for the Cloverleaf TCL extensions

  • Creator
    Topic
  • #120144
    Marc Pleijers
    Participant

      Hi forum,

      Does anyone know whether there is any information available about the Python and Javascript equivalents of the TCL extensions for Cloverleaf and where to find this information.
      I’m looking for the equivalents of the TCL commands like
      msgcreate, msgset, msgget, msgcopy, msgmetaget, msgmetaset, tbllookup, dblookup, the Counter file commands and how to handle disposition lists in TPS style Javascript or Python scripts.

      Besides some templates and some small examples no information could be found in the documentation of Cloverleaf.

      We are currently using Cloverleaf 20.1 and 2022.09 so selecting Python or Javascript scripts directly can already be done in the GUI.

      Thanks in advance for any reaction.

      Kind regards

      Marc Pleijers

      Senior Integration Consultant

      Enovation BV The Netherlands

      Marc Pleijers
      Senior Integration Consultant
      Enovation BV
      The Netherlands

    Viewing 0 reply threads
    • Author
      Replies
      • #120155
        Todd Hamilton
        Participant

          Marc,

          I found the best way to get documentation for Python and JavaScript scripting (custom development) is to simply use the CL Java class documentation (javadoc).  Since Cloverleaf python and JavaScript are actually Java implementations of Python and JavaScript, simply using the Java class documentation and doing an in-memory(in brain) translation works for me. for python, Java classes become Python classes. For Javascript Java classes become JavaScript prototypes/objects.

          Todd

          todd.hamilton.omaha@gmail.com
          (402) 660-2787

          • #120158
            Marc Pleijers
            Participant

              Hi Todd

              Thanks for the response.

              That was just the hint I needed.

              I’m already checking it using the CloverleafJavaUpocAPI documentation that is part of the documentation delivered with Cloverleaf.

              Kind regards,

              Marc

              Marc Pleijers
              Senior Integration Consultant
              Enovation BV
              The Netherlands

        Viewing 0 reply threads
        • You must be logged in to reply to this topic.