Importing table data

Clovertech Forums Read Only Archives Cloverleaf Cloverleaf Importing table data

  • Creator
    Topic
  • #52455
    Tom Arrowsmith
    Participant

      Is there a way to import data into a table instead if typing it all in from scratch (or cut and pasteing from a spreadsheet one value at a time)?

      I have a table defined in a spreadsheet that has 322 rows of data … would rather not do this one row at a time….

      Thanks!

      tom

    Viewing 6 reply threads
    • Author
      Replies
      • #74266
        Shaun Beckman
        Participant

          Tom,

          Take a look at this post by Garry Fisher.

          https://usspvlclovertch2.infor.com/viewtopic.php?t=308&highlight=table+creator

          I have used it several times and it works well. I think you’ll have to convert your spreadsheet into a csv before using though.

        • #74267
          James Cobane
          Participant

            Tom,

            Attached is a simple script to convert a .csv file to a Cloverleaf table.  You’ll need to modify the first line of code for your environment.

            Hope this helps.

            Jim Cobane

            Henry Ford Health

          • #74268
            garry r fisher
            Participant

              Hi Shaun,

              It’s good to see that my simple efforts are still in use and appreciated.

              Tom – I wrote the table creator for exactly the situation you refer to. I got fed up with typing them in every time.

              Whichever solution you go for – mine or James or I hope it meets your needs.

              Regards

              Garry

            • #74269
              Tim Pashon
              Participant

                OK.

              • #74270
                Tim Pashon
                Participant

                  Tim Pashon wrote:

                  OK.

                • #74271
                  Jim Kosloskey
                  Participant

                    If it is Tcl, you can put it in the Master Site tclprocs directory if you are utilizing the Master Site.

                    You can put it in a site tclprocs dirctory but then you have to be in that site to execute.

                    You can place it in the HCIROOT tclprocs directory but then it will be removed with an upgrade to the next Cloverleaf release.

                    Many options – pick the one that fits your situation.

                    Don’t forget to do a mktclindex wherever you put it.

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

                  • #74272
                    Steve Pringle
                    Participant

                      With acknowledgement and thanks to James Cobane for posting the tcl code – I’ve updated it to work with Cloverleaf version 5.8 tables.

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