Loading ...
Sorry, an error occurred while loading the content.

Re: [Clip] Re: Pulling from an external file

Expand Messages
  • Lee Underwood
    Don, So what you re saying is that I would enter the information into three .ini files and then run three different templates? If that is the case, wouldn t it
    Message 1 of 19 , Nov 17, 2005
    • 0 Attachment
      Don,

      So what you're saying is that I would enter the information into
      three .ini files and then run three different templates? If that is
      the case, wouldn't it just be easier to set-up three templates with
      wizards and run them?

      Perhaps I'm a little confused ...

      Lee


      On 11/17/2005 04:01 PM, Don - htmlfixit.com wrote:
      ........................................................

      > > I hope that helps. again, I appreciate it. It's not so much setting
      > > up the wizards; it's just trying to figure out how to obtain the data
      > > from an external file.
      > >
      > > Lee
      >The easy way is to use a custom ini file for each of the files you are
      >doing in my humble opinion. From help here are the ini functions:
      >
      ........................................................


      --
      No virus found in this outgoing message.
      Checked by AVG Anti-Virus.
      Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date: 11/16/2005
    • acummingsus
      ... [ . . ] ... Ok. Now I ve seen two out of the three templates. Also I ve not yet seen the (solo) data source file. If you just want access to a file: Don
      Message 2 of 19 , Nov 17, 2005
      • 0 Attachment
        --- In ntb-clips@yahoogroups.com, Lee Underwood <leeu@c...> wrote:
        [ . . ]
        > I hope that helps. again, I appreciate it. It's not so much setting
        > up the wizards; it's just trying to figure out how to obtain the data
        > from an external file.

        Ok. Now I've seen two out of the three templates. Also I've not yet
        seen the (solo) data source file.

        If you just want access to a file: Don gave you great idea but I
        think that is mostly applicable given a constant, (albeit global as in
        with/includes many choices) non changing data source (unless you edit
        the .ini file each time your data source the data changes).

        If all you want is access to a file:

        ^$GetFileText$

        You can either browse to the file to be snagged, OR if it is easy to
        just open the file, then open it and then

        ; get content of file
        ^!Set %myfile%=^$GetFileText(^**)$
        ; close the file where content came from
        ^!Menu file/close
        ; view content in variable
        ^!Info ^%myfile%
        ; --- end ---

        Alan.
      • Don - htmlfixit.com
        I may not have been clear. I am not suggesting that you use THE Notetab ini file. You can create as many ini files as you wish. If you make an ini file for
        Message 3 of 19 , Nov 17, 2005
        • 0 Attachment
          I may not have been clear. I am not suggesting that you use THE Notetab
          ini file. You can create as many ini files as you wish. If you make an
          ini file for each javascript, then you can have a clip run that ini
          file, load the variables, run three template files in a row, one for
          each output page, and you save and you are set.
        • Lee Underwood
          Ah, that clears it up. I didn t think you meant THE NoteTab INI file. I just thought you meant creating three ini files, then creating three more from the
          Message 4 of 19 , Nov 17, 2005
          • 0 Attachment
            Ah, that clears it up. I didn't think you meant THE NoteTab INI file.
            I just thought you meant creating three ini files, then creating
            three more from the templates, using the ini.

            O.k., so you are saying to put the data into an ini file (according
            to what you mentioned previously), then have each template file pull
            from the ini file. Is that correct?

            Thanks for the patience Don.

            Lee


            On 11/17/2005 10:18 PM, Don - htmlfixit.com wrote:
            ........................................................

            >I may not have been clear. I am not suggesting that you use THE Notetab
            >ini file. You can create as many ini files as you wish. If you make an
            >ini file for each javascript, then you can have a clip run that ini
            >file, load the variables, run three template files in a row, one for
            >each output page, and you save and you are set.
            >
            >
            >
            >Fookes Software: http://www.fookes.us, http://www.fookes.com
            >Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
            >
            >Yahoo! Groups Links
            >
            >
            >
            >
            >
            >
            >
            >
            >
            >--
            >No virus found in this incoming message.
            >Checked by AVG Anti-Virus.
            >Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date: 11/16/2005
            ........................................................


            --
            No virus found in this outgoing message.
            Checked by AVG Anti-Virus.
            Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date: 11/16/2005
          • Don - htmlfixit.com
            ... Yes Lee, and you can have a clip that prompts you for the data, loads it into the custom ini file, calls template one, puts the proper data into it, then
            Message 5 of 19 , Nov 17, 2005
            • 0 Attachment
              Lee Underwood wrote:
              > Ah, that clears it up. I didn't think you meant THE NoteTab INI file.
              > I just thought you meant creating three ini files, then creating
              > three more from the templates, using the ini.
              >
              > O.k., so you are saying to put the data into an ini file (according
              > to what you mentioned previously), then have each template file pull
              > from the ini file. Is that correct?
              >
              > Thanks for the patience Don.
              >
              > Lee

              Yes Lee, and you can have a clip that prompts you for the data, loads it
              into the "custom" ini file, calls template one, puts the proper data
              into it, then saves it, calls template two, then puts the data into it
              then saves it, then calls template three and puts the data into it, then
              saves it ... later you can modify the ini file if the data changes
              (example to correct a typo), and then re run the clip.

              The alternative is to store the data in a file and then parse the file
              pulling things out of it. That can be done as well.
            • Lee Underwood
              Don, Thanks. That sounds like what I want. I ll try to figure it out from the info you gave me previously. Thanks for all your help. Lee On 11/17/2005 11:49
              Message 6 of 19 , Nov 18, 2005
              • 0 Attachment
                Don,

                Thanks. That sounds like what I want. I'll try to figure it out from
                the info you gave me previously. Thanks for all your help.

                Lee


                On 11/17/2005 11:49 PM, Don - htmlfixit.com wrote:
                ........................................................

                >Yes Lee, and you can have a clip that prompts you for the data, loads it
                >into the "custom" ini file, calls template one, puts the proper data
                >into it, then saves it, calls template two, then puts the data into it
                >then saves it, then calls template three and puts the data into it, then
                >saves it ... later you can modify the ini file if the data changes
                >(example to correct a typo), and then re run the clip.
                >
                >The alternative is to store the data in a file and then parse the file
                >pulling things out of it. That can be done as well.
                ........................................................


                --
                No virus found in this outgoing message.
                Checked by AVG Anti-Virus.
                Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date: 11/16/2005
              • rpdooling
                Lee, If you store the data in a separate, delimited file, or are retrieving from such a file, take a look at the clips in the Sample Code library under the
                Message 7 of 19 , Nov 18, 2005
                • 0 Attachment
                  Lee,

                  If you store the data in a separate, delimited file, or are retrieving
                  from such a file, take a look at the clips in the Sample Code library
                  under the heading "Delimited Text" The three clips "Copy Fields,"
                  "Search Fields," and "Copy Data Column" give a decent introduction to
                  using NoteTab as a simple database and how to open an external tab
                  delimited file and search it.

                  Also if you go this route, the ModifyRecordSet clips (by Björn Braden)
                  in the library here (or maybe they were in the NoteTab site library)
                  are good for examining and entering data into tab-delimited files.

                  rpd

                  --- In ntb-clips@yahoogroups.com, Lee Underwood <leeu@c...> wrote:
                  >
                  > Don,
                  >
                  > Thanks. That sounds like what I want. I'll try to figure it out from
                  > the info you gave me previously. Thanks for all your help.
                  >
                  > Lee
                  >
                  >
                  > On 11/17/2005 11:49 PM, Don - htmlfixit.com wrote:
                  > ........................................................
                  >
                  > >Yes Lee, and you can have a clip that prompts you for the data,
                  loads it
                  > >into the "custom" ini file, calls template one, puts the proper data
                  > >into it, then saves it, calls template two, then puts the data into it
                  > >then saves it, then calls template three and puts the data into it,
                  then
                  > >saves it ... later you can modify the ini file if the data changes
                  > >(example to correct a typo), and then re run the clip.
                  > >
                  > >The alternative is to store the data in a file and then parse the file
                  > >pulling things out of it. That can be done as well.
                  > ........................................................
                  >
                  >
                  > --
                  > No virus found in this outgoing message.
                  > Checked by AVG Anti-Virus.
                  > Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date:
                  11/16/2005
                  >
                • rpdooling
                  Lee, Sorry the ModifyRecordSet collection is at the NoteTab site (not here on Yahoo). It s in the Other Libraries collection. http://www.notetab.com/other.php
                  Message 8 of 19 , Nov 18, 2005
                  • 0 Attachment
                    Lee,

                    Sorry the ModifyRecordSet collection is at the NoteTab site (not here
                    on Yahoo). It's in the Other Libraries collection.

                    http://www.notetab.com/other.php

                    I learned a lot about accessing external, delimited files with these
                    clips: looping through records (any line with a hard return) and
                    fields (any delimited text), which it sounds like what you want to do.
                    If your external file is not delimited, try to think of a way to make
                    it so, as it's your best bet for searching and accessing the data.

                    rpd

                    --- In ntb-clips@yahoogroups.com, Lee Underwood <leeu@c...> wrote:
                    >
                    > Don,
                    >
                    > Thanks. That sounds like what I want. I'll try to figure it out from
                    > the info you gave me previously. Thanks for all your help.
                    >
                    > Lee
                    >
                    >
                    > On 11/17/2005 11:49 PM, Don - htmlfixit.com wrote:
                    > ........................................................
                    >
                    > >Yes Lee, and you can have a clip that prompts you for the data,
                    loads it
                    > >into the "custom" ini file, calls template one, puts the proper data
                    > >into it, then saves it, calls template two, then puts the data into it
                    > >then saves it, then calls template three and puts the data into it,
                    then
                    > >saves it ... later you can modify the ini file if the data changes
                    > >(example to correct a typo), and then re run the clip.
                    > >
                    > >The alternative is to store the data in a file and then parse the file
                    > >pulling things out of it. That can be done as well.
                    > ........................................................
                    >
                    >
                    > --
                    > No virus found in this outgoing message.
                    > Checked by AVG Anti-Virus.
                    > Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date:
                    11/16/2005
                    >
                  • Lee Underwood
                    Thanks. I ll give it a look. I appreciate it. Lee On 11/18/2005 09:34 AM, rpdooling wrote: ... ........................................................ -- No
                    Message 9 of 19 , Nov 18, 2005
                    • 0 Attachment
                      Thanks. I'll give it a look. I appreciate it.

                      Lee


                      On 11/18/2005 09:34 AM, rpdooling wrote:
                      ........................................................

                      >Lee,
                      >
                      >Sorry the ModifyRecordSet collection is at the NoteTab site (not here
                      >on Yahoo). It's in the Other Libraries collection.
                      >
                      >http://www.notetab.com/other.php
                      >
                      >I learned a lot about accessing external, delimited files with these
                      >clips: looping through records (any line with a hard return) and
                      >fields (any delimited text), which it sounds like what you want to do.
                      >If your external file is not delimited, try to think of a way to make
                      >it so, as it's your best bet for searching and accessing the data.
                      >
                      >rpd
                      >
                      >--- In ntb-clips@yahoogroups.com, Lee Underwood <leeu@c...> wrote:
                      > >
                      > > Don,
                      > >
                      > > Thanks. That sounds like what I want. I'll try to figure it out from
                      > > the info you gave me previously. Thanks for all your help.
                      > >
                      > > Lee
                      > >
                      > >
                      > > On 11/17/2005 11:49 PM, Don - htmlfixit.com wrote:
                      > > ........................................................
                      > >
                      > > >Yes Lee, and you can have a clip that prompts you for the data,
                      >loads it
                      > > >into the "custom" ini file, calls template one, puts the proper data
                      > > >into it, then saves it, calls template two, then puts the data into it
                      > > >then saves it, then calls template three and puts the data into it,
                      >then
                      > > >saves it ... later you can modify the ini file if the data changes
                      > > >(example to correct a typo), and then re run the clip.
                      > > >
                      > > >The alternative is to store the data in a file and then parse the file
                      > > >pulling things out of it. That can be done as well.
                      > > ........................................................
                      > >
                      > >
                      > > --
                      > > No virus found in this outgoing message.
                      > > Checked by AVG Anti-Virus.
                      > > Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date:
                      >11/16/2005
                      > >
                      >
                      >
                      >
                      >
                      >
                      >
                      >
                      >Fookes Software: http://www.fookes.us, http://www.fookes.com
                      >Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
                      >
                      >Yahoo! Groups Links
                      >
                      >
                      >
                      >
                      >
                      >
                      >
                      >
                      >
                      >--
                      >No virus found in this incoming message.
                      >Checked by AVG Anti-Virus.
                      >Version: 7.1.362 / Virus Database: 267.13.4/175 - Release Date: 11/18/2005
                      ........................................................


                      --
                      No virus found in this outgoing message.
                      Checked by AVG Anti-Virus.
                      Version: 7.1.362 / Virus Database: 267.13.4/175 - Release Date: 11/18/2005
                    • rpdooling
                      The Search Fields clip in NoteTab s own SampleCode Library is the probably simplest and most useful example for grabbing data from a delimited file. rpd ...
                      Message 10 of 19 , Nov 18, 2005
                      • 0 Attachment
                        The "Search Fields" clip in NoteTab's own SampleCode Library is the
                        probably simplest and most useful example for grabbing data from a
                        delimited file.

                        rpd

                        --- In ntb-clips@yahoogroups.com, Lee Underwood <leeu@c...> wrote:
                        >
                        > Thanks. I'll give it a look. I appreciate it.
                        >
                        > Lee
                        >
                        >
                        > On 11/18/2005 09:34 AM, rpdooling wrote:
                        > ........................................................
                        >
                        > >Lee,
                        > >
                        > >Sorry the ModifyRecordSet collection is at the NoteTab site (not here
                        > >on Yahoo). It's in the Other Libraries collection.
                        > >
                        > >http://www.notetab.com/other.php
                        > >
                        > >I learned a lot about accessing external, delimited files with these
                        > >clips: looping through records (any line with a hard return) and
                        > >fields (any delimited text), which it sounds like what you want to do.
                        > >If your external file is not delimited, try to think of a way to make
                        > >it so, as it's your best bet for searching and accessing the data.
                        > >
                        > >rpd
                        > >
                        > >--- In ntb-clips@yahoogroups.com, Lee Underwood <leeu@c...> wrote:
                        > > >
                        > > > Don,
                        > > >
                        > > > Thanks. That sounds like what I want. I'll try to figure it out from
                        > > > the info you gave me previously. Thanks for all your help.
                        > > >
                        > > > Lee
                        > > >
                        > > >
                        > > > On 11/17/2005 11:49 PM, Don - htmlfixit.com wrote:
                        > > > ........................................................
                        > > >
                        > > > >Yes Lee, and you can have a clip that prompts you for the data,
                        > >loads it
                        > > > >into the "custom" ini file, calls template one, puts the proper
                        data
                        > > > >into it, then saves it, calls template two, then puts the data
                        into it
                        > > > >then saves it, then calls template three and puts the data into it,
                        > >then
                        > > > >saves it ... later you can modify the ini file if the data changes
                        > > > >(example to correct a typo), and then re run the clip.
                        > > > >
                        > > > >The alternative is to store the data in a file and then parse
                        the file
                        > > > >pulling things out of it. That can be done as well.
                        > > > ........................................................
                        > > >
                        > > >
                        > > > --
                        > > > No virus found in this outgoing message.
                        > > > Checked by AVG Anti-Virus.
                        > > > Version: 7.1.362 / Virus Database: 267.13.3/173 - Release Date:
                        > >11/16/2005
                        > > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >Fookes Software: http://www.fookes.us, http://www.fookes.com
                        > >Fookes Software Mailing Lists: http://www.fookes.us/maillist.htm
                        > >
                        > >Yahoo! Groups Links
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >
                        > >--
                        > >No virus found in this incoming message.
                        > >Checked by AVG Anti-Virus.
                        > >Version: 7.1.362 / Virus Database: 267.13.4/175 - Release Date:
                        11/18/2005
                        > ........................................................
                        >
                        >
                        > --
                        > No virus found in this outgoing message.
                        > Checked by AVG Anti-Virus.
                        > Version: 7.1.362 / Virus Database: 267.13.4/175 - Release Date:
                        11/18/2005
                        >
                      Your message has been successfully submitted and would be delivered to recipients shortly.