Jump to content
Sign in to follow this  
knaap

picture from other database

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

Share this post


Link to post
Share on other sites

This how you would display an image from a field:

<img src="[FMP-Image: mypicturefield]">

You could use this in conjunction with [FMP-If] to determine which which image is displayed. (A number of ways exist, depends on how your databases are organized.)

Good Luck.

Garry

Share this post


Link to post
Share on other sites

i tried it with that code but i get numbers if it's grey i get 33448 and when it's yellow i get 33446 on my cdml page and that should be a picture

i don't know how i can solve this

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

Generally we have images "outside" the database and we use field values to construct URLs to them. Hence, we are a bit vague on exact direct methods.

Are you using a Relationship to link to the image? Have you tried an InlineAction?

Good Luck.

Garry

Share this post


Link to post
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

Share this post


Link to post
Share on other sites

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.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

Sign in to follow this  

×
×
  • Create New...

Important Information

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