Jump to content

picture from other database


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

Recommended Posts

Hello everybody,

i have a question

i have a cdml page that i want to use online but there' s one problem, i have a field that has a picture that changes for example when a product is ordert the customer can see where his product is in the company with a color(picture)

can i show this field on my cdml page with the color in this field? how? (when i use [Fmp-field] i get to see a code (33448)..)

and when there is another color does that change automaticly?

how can i do this?

i have tried an FMP-image tag

i get this in my CDML file

FMPro?-db=database.fp5&key=33448&-img

i have a separate db with the pictures en from there it is linked or something to other databases so when my field is green it gets the green picture from that file with pictures and then it is shown in the field that has to be green.. and if someone want' s it red it becomes red with the red picture from that other database..

i hope you understand it crazy.gif

thnx

Link to comment
Share on other sites

<img src="FMPro?-db=opdrachtbon.fp5&key=33448&-img"> this code i see on my CDML page when it should be gray and

<img src="FMPro?-db=opdrachtbon.fp5&key=33448&-img"> this code when it should be yellow

tihs is what i get with your code but the images are visable in filemaker without problems

Link to comment
Share on other sites

In my experience you can use the <img src="[FMP-Image: Containerfield]"> syntax only for images from the current database. A calculation that gets the image from another file will not display in CDML.

In your case this probably means using an inline in conjunction with an FMP-IF to display the image. For example

[FMP-IF: Field .eq. 1]

[FMP-InlineAction: -db=images, -lay=images, ImageName="gray",-find]<img src="[FMP-Image: Imagefield]">[/FMP-InlineAction]

[FMP-Else]

[FMP-InlineAction: -db=images, -lay=images, ImageName="green",-find]<img src="[FMP-Image: Imagefield]">[/FMP-InlineAction]

[/FMP-IF]

Hope this helps,

Wouter

Link to comment
Share on other sites

  • 2 months later...

I have an interesting problem along these lines.

I have a pic database. I find a record and then I find the pics related to the found record with a form.

It goes to the pic.html format file and displays some of the images only. The rest have the little blue question mark where the image should be.

When I return and do it again (same record) it shows different images and different ones have the blue question mark. I can do it forever and it always shows a new set of images with a new set not shown.

Any thoughts on this?

Thanks.

Link to comment
Share on other sites

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