Results 1 to 3 of 3

Thread: Copy weblist items

  1. #1
    Junior Member
    Join Date
    Dec 2007
    Answers
    3

    Copy weblist items

    How can I copy the items form weblist to a txt file

    I want to record all the items in the weblist to a text file how can I do it. can any one help....


  2. #2
    Expert Member
    Join Date
    Oct 2007
    Answers
    375

    Smile Re: Copy weblist items

    Hi Rohini,

    I am not sure in which automation tool are you looking at achieving this. Anyways, below is a simple VbScript code that should work in almost all autmation tools ( With a bit of tweaking in terms of syntax alone). Keep the entire thing in a singlel function

    Let us assume the weblist object name is Weblist1

    ---Getting the Weblist items into a Array-----------

    dim iCount
    dim vArr()
    dim i

    iCount = Weblist1.getItemCount()

    for i = 0 to iCount
    vArr(i) = Weblist1.getItem(i)
    next

    NOTE : incase output of Array is required, put in a msgbox(vArr(i).toString)

    -----Writing output of Array to a notepad file-------
    dim strFilePath
    dim fObject
    dim wFileWrite

    strFilePath = "C:\Working\Output.txt"
    set fObject = CreateObject("Scripting.FileSystemObject")
    set wFileWrite = fObject.CreateTextFile(strFilePath,true)

    wFileWrite.writeline(vArr())

    wFileWrite.close()

    NOTE : It is possible sometimes that 'wFileWrite.writeline(vArr())' could fail. Incase it does so, try using a loop -

    for i = 0 to vArr().UBound
    wFileWrite.writeline(vArr(i))
    next

    Do let me know incase of any issues....

    Cheers.....


  3. #3
    Banned
    Join Date
    Oct 2007
    Answers
    173

    Re: Copy weblist items

    allowed size for attach comments increased 50->128
    new template to put things above the search box in left margin: templates/ks_lefttopbox.koala.tmpl . Empty for default skin, but you can redefine it in your themes. Unused in NOMARGIN modes.
    if an included template do not exist, issue a warning but do not abort anymore
    fonts: websbar is in arial (less wide), rather than verdana
    searchmulti updated to work with the new search from beta 18 Dec 2003 (fix by Nathan Neulinger). Automatically use old code on 01 Feb 2003 release.
    documented that searchmulti should also be set for authentication via "valid user" in bin/.htaccess (otherwise search in read-protected web/topics will not work)
    bugfix: 'Z' accesskey for cancel in preview view was broken
    bugfix: Cancel in edit/preview and existing topic was returning to WebHome, not the topic
    documented that we must use the GNU versions of grep, sed and cc. Can be setted in config file


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
About us
Applying for a job can be a stressful and frustrating experience, especially for someone who has never done it before. Considering that you are competing for the position with a at least a dozen other applicants, it is imperative that you thoroughly prepare for the job interview, in order to stand a good chance of getting hired. That's where GeekInterview can help.
Interact