Jump to content

Add Picture


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

Recommended Posts

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

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

This topic is 5707 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
 Share

×
×
  • Create New...

Important Information

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