SimonK Posted December 23, 2004 Share Posted December 23, 2004 I'm trying to write a script which inserts a picture into a container field based on the text in another field. Not having any luck with either the Insert Picture command or the Set Field command. Any help? Link to comment Share on other sites More sharing options...
FileMakin' Tom Posted December 23, 2004 Share Posted December 23, 2004 Place your pictures in a global repeating container. Then create a container calc: Case[FieldA = "Ishkabibble", GetRepetition[Container,1], FieldA = "Frumbubble", GetRepetition[Container,2], etc. etc. etc. Tom Link to comment Share on other sites More sharing options...
-Queue- Posted December 23, 2004 Share Posted December 23, 2004 Note: GetRepetition( field, 1 ) = field, when the calculation is non-repeating. Link to comment Share on other sites More sharing options...
SimonK Posted December 23, 2004 Author Share Posted December 23, 2004 Thanks for the help. I don't yet understand all of the abilities of global repeating containers, didn't even realise you could have a container calculation. But what I'm after is: Retrieve the ImageName FieldImageName = "123_4AB.jpg" Insert picture file 123_4AB.jpg into the ImageContainer field for that record. Then I will just create a loop to work through all the records in the database. There are over 5,000 records in the database. Thanks again for the answers... Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.