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

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

Recommended Posts

Posted

i am looking to make an image show up when select an item type.

I have an image field

and i have a model# field.

I was wondering how i would make a script that would grab an image from a folder named the same as its model number so when you type in the model number the image shows up.

Anyone know how this is done? I would love some help.

Thanks in advance

mattyj

  • Newbies
Posted

Hi Mattyj,

Your Images should be stored in a FMtable (or separate file)called items f.i containing at least 2 fields

ReferenceID number autoenter incrementing

Image Container

You need to create following additional elements in order to display the referenced Image.

1. Create a new table called Globals with fields

gSelectedRef global number

gEnteredImage Calculation

2.In Database Setup Link Globals->gSelectedRef to item->ReferenceID call the relation Selected

3.Create a new Layout based on Globals TO

Position the gSelectedRef field and the gEnteredImage fields in this Layout

4. Now define gEnteredImage Calculation to be equal to Selected::Image.

Now whenever You enter a referenceID into gSelectedRef the related image will show up

Remark :P It could be advisable to format the gSelectedRef field as a Popup list showing all available ReferenceID on File avoiding thus the typing errors.

Do not hesitate to contact me if this was unclear or You needed additional help.

This topic is 5898 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.