Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 4513 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

I have a container field in a table that contains pictures that are linked only. I would like to make the file more portable by having the pictures embedded instead of linked as I don't always have network access to the server where the pictures are stored. I have tried to run a loop script that copies and pastes from the original container field into a new one but it only copies the link. Insert picture function dialogue box only seems to give you the option of adding a file path and not a field itself. Is there a way of doing this or will I need to do it manually?

Posted

In your looping script, use a variable as path for Insert Picture. For each loop iteration, set this variable dynamically to your stored file path.

Posted

use a variable as path for Insert Picture.

Thanks for your reply, could you give me a little more info on how to do this please? I haven't got round to using variables yet.

Posted

Basically (meaning: without error trapping and the usual script paraphernalia) it looks like this:

Go to Record/Request [ First ]

Loop

Set Variable [ $path ; Value: yourTable::imagePathField ]

Go To Field [ yourTable::yourContainerField ]

Insert Picture [ "$path" ] // that's how it shows in the script, but you write/insert the variable name without quotes. Also make sure to uncheck the Store only a reference option

Go to Record/Request [ Next ; Exit after last ]

End Loop

Maybe best to experiment with a subset of a few records until you've got it right.

Posted

Basically (meaning: without error trapping and the usual script paraphernalia) it looks like this:

Go to Record/Request [ First ]

Loop

Set Variable [ $path ; Value: yourTable::imagePathField ]

Go To Field [ yourTable::yourContainerField ]

Insert Picture [ "$path" ] // that's how it shows in the script, but you write/insert the variable name without quotes. Also make sure to uncheck the Store only a reference option

Go to Record/Request [ Next ; Exit after last ]

End Loop

Maybe best to experiment with a subset of a few records until you've got it right.

Thanks for the detailed explanation, I'll try it at work tomorrow.

This topic is 4513 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.