Results 1 to 4 of 4

Thread: Script help

  1. #1
    Join Date
    Apr 2013
    Posts
    226

    Unanswered: Script help

    v10

    Hi,

    Ok, bare with me, as I am just starting out with the scripts. I noticed an action "extract image/file" so thought I would be able to write a script to extract all my images to a folder somewhere when I press a button.

    I attached the following script to a button:

    [$testvariable] = Records from Folder("Testfolder", "No limitation")
    For Each Record From [$testvariable]
    Extract Image/File (Testform Details: testimage, [$_myfiles])
    Next Item

    This doesn't actually do much, the dialogue box opens up allowing me to select records from the Testfolder but nothing ultimately happens. Presumably I am missing a step here?

    EDIT: Mind you it could be the same problem whereby export to CSV files is not picking up the image fields. I created a new database from scratch today. It has four records each with two images. I do a csv export selecting all the fields but the csv file is not populated with the image location (out\filename). That column is empty. And no folder of images is created. Export to web page is the same, images don't show. This is the html for that part of the page:

    <td valign=top><img src=''></td>
    <td valign=top><img src=''></td>

    A bug? Could someone else try this to confirm whether it is peculiar to me or not?

    Thanks again.

    Matty
    Last edited by matty1965; 04-13-13 at 18:41.

  2. #2
    Join Date
    Sep 2011
    Location
    Australia
    Posts
    264
    Provided Answers: 2
    See previous post about images.
    Regards
    David

  3. #3
    Join Date
    Apr 2013
    Posts
    226
    Quote Originally Posted by tamcind View Post
    See previous post about images.
    Regards
    David
    Thanks David.

    For my project each record has two unique images and no record will have the same image. I need to be able to export them in various formats. BD won't be of much use to me if once the images are in there is no way of getting them out. I'm sure this worked in 9.42.

    Ideally I need end users to be able to scan directly into the record rather than scanning and saving a file then adding the file to an image field - it's extra steps that I don't want the user to have to be bothered with.

    Matty

  4. #4
    Join Date
    Sep 2011
    Location
    Australia
    Posts
    264
    Provided Answers: 2
    Just a quick responce. I think you might need path and file name for each image extracted, that is path variable and unique file name variable for each step. Not really used this function.
    Update.
    Did a test and seemed to work ok exporting each image to a separate file on drive c:, in fact really do not need variable for file name - I used a field name and some common text as part of file name. Ie Extract Image/File (Photo: Photo, C:\my_photo[Notes].gif)
    Last edited by tamcind; 04-14-13 at 08:53.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •