Raymond Gonzalez Posted February 16, 2007 Share Posted February 16, 2007 Hello, if a record has a "photo" field and a "name" field, is there a way that the "photo" field will be filled with a picture that i name with the same info as the "name" field. Thanks! Link to comment Share on other sites More sharing options...
Genx Posted February 16, 2007 Share Posted February 16, 2007 Huh? Where's the path field? Link to comment Share on other sites More sharing options...
Raymond Gonzalez Posted February 16, 2007 Author Share Posted February 16, 2007 maybe im not explain it the right way. Let me put an example. Lets say i have "file.fp7" and a folder with 3 pictures: "James.jpg", "Jhon.jpg" and "Peter.jpg". In file.fp7, there is a record with two fields "Name" and "Photo", i want that if in "Name" i put "James", automatically the photo container will be "James.jpg". Tell me if i explained myself better. Thanks! Link to comment Share on other sites More sharing options...
Genx Posted February 16, 2007 Share Posted February 16, 2007 Where is the folder with 3 pictures... Is it in the same folder as file.fp7? Link to comment Share on other sites More sharing options...
Raymond Gonzalez Posted February 17, 2007 Author Share Posted February 17, 2007 yes, it would be in the same folder. Link to comment Share on other sites More sharing options...
Genx Posted February 17, 2007 Share Posted February 17, 2007 create a calculation result container and try: "image:" & "yourFolderName/" & nameField & ".jpg" image:yourFolderName/James.jpg Link to comment Share on other sites More sharing options...
Raymond Gonzalez Posted February 17, 2007 Author Share Posted February 17, 2007 hello! i tried it and it didnt work. Is there another way to do it? Link to comment Share on other sites More sharing options...
Raymond Gonzalez Posted February 17, 2007 Author Share Posted February 17, 2007 sorry! i did it and it did work. But how about if i want the picts embedded, how would i do that?! thanks! Link to comment Share on other sites More sharing options...
Genx Posted February 17, 2007 Share Posted February 17, 2007 It does work, See Attached. imageExample.zip Link to comment Share on other sites More sharing options...
Genx Posted February 17, 2007 Share Posted February 17, 2007 Embedded? Only if you actually use the insert picture script step... Go To Field[YourImageField] Insert Picture[] Link to comment Share on other sites More sharing options...
Raybaudi Posted February 17, 2007 Share Posted February 17, 2007 Try this: Set variable [$path; value: Substitute ( Get(FilePath);["file" ; "image"];[Get ( FileName ) & ".fp7" ; yourDB::name & ".jpg" ])] Go to field [yourDB::photo] Insert Picture["$path"] You can make the "photo" field a button that fires this script or you can use EventScript plugin and an auto-enter calculation for field "name" that will fire this script Link to comment Share on other sites More sharing options...
Recommended Posts
This topic is 6271 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 accountSign in
Already have an account? Sign in here.
Sign In Now