![]() | |
![]() |
| | Thread Tools | Display Modes |
#1
| |||
| |||
|
#2
| |||
| |||
|
#3
| |||
| |||
|
|
Harry, As far as I'm aware there is no known solution. Write to those FileMaker guys at filemaker.com, as I have done. I have searched for a solutions and so have others, but found nothing. Ursus "Harry" <harry104 (AT) zonnet (DOT) nl> schreef in bericht news:1164390855.247667.320460 (AT) 45g2000cws (DOT) googlegroups.com... Hi all, I've got a migration problem when I moved on to FM 8.5. My situation in short: I have reports with text and images. Images are referenced from calculated results and represented in container fields. Works great! If I get an error message (The file cannot be found: "filename.jpg"), it is written in an invisible color in the container field so it doesn't show in the report. Same with borders: by default, no borders are shown for the fields. But now, in version 8.5, I run in to a problem. Whenever I get an error message as above when an image is not available, the border of the container field is non-suppressable (I can edit the behaviour of the border but it doesn't help!) and shows with bold borders in reports. The text in the container field can be suppressed (by using white font color). Has anybody gotten a solution to help me out? I've tried some tricks, see below. I've worked on several solutions to find all containers that contain errors / no images so I can delete all contents. Íf I get this, a normal container field is left and this field acts normal and doesn't show a bold border. 1) Get (LastError): doesn't work because a calculated reference doesn't result in an error. Just showing the image does and that is not a script step on which LastError can report. 2) GetAsText (container): doesn't work because the calculated reference of the filename is returned, not the error text. Please help me out! Harry |
#4
| |||
| |||
|
#5
| |||
| |||
|
|
I used (FMP6) to create a new calc field = Case(YrTable::Image > 0; "X"; "") which has an 'X' if there is an image to show and nothing if not. I suppose it works the same way in FM7-8. I don't know if this could be of any help for you. Remi-Noel "Harry" <harry104 (AT) zonnet (DOT) nl> a écrit dans le message de news: 1164390855.247667.320460 (AT) 45g200...oglegroups.com... Hi all, I've got a migration problem when I moved on to FM 8.5. My situation in short: I have reports with text and images. Images are referenced from calculated results and represented in container fields. Works great! If I get an error message (The file cannot be found: "filename.jpg"), it is written in an invisible color in the container field so it doesn't show in the report. Same with borders: by default, no borders are shown for the fields. But now, in version 8.5, I run in to a problem. Whenever I get an error message as above when an image is not available, the border of the container field is non-suppressable (I can edit the behaviour of the border but it doesn't help!) and shows with bold borders in reports. The text in the container field can be suppressed (by using white font color). Has anybody gotten a solution to help me out? I've tried some tricks, see below. I've worked on several solutions to find all containers that contain errors / no images so I can delete all contents. Íf I get this, a normal container field is left and this field acts normal and doesn't show a bold border. 1) Get (LastError): doesn't work because a calculated reference doesn't result in an error. Just showing the image does and that is not a script step on which LastError can report. 2) GetAsText (container): doesn't work because the calculated reference of the filename is returned, not the error text. Please help me out! Harry |
#6
| |||
| |||
|
|
Sure there is a solution. You can test for the presence of the file by attempting to "re-import" the reference. Here is an example script: Set Error Capture [On] Set Variable [#imagepath; Value:GetValue(YourTable::YourContainerField; 3)] Go to Field [YourTable::YourContainerField] Insert Picture [Reference; "$imagepath"] Show Custom Dialog ["Result"; Get ( LastError )] If the file exists, you will have a result of 0. If it is missing, you will get a result of 100. "Ursus" <ursus.kirk (AT) wanadoo (DOT) nl> wrote in message news:45685fde$0$73783$dbd4d001 (AT) news (DOT) wanadoo.nl... Harry, As far as I'm aware there is no known solution. Write to those FileMaker guys at filemaker.com, as I have done. I have searched for a solutions and so have others, but found nothing. Ursus "Harry" <harry104 (AT) zonnet (DOT) nl> schreef in bericht news:1164390855.247667.320460 (AT) 45g2000cws (DOT) googlegroups.com... Hi all, I've got a migration problem when I moved on to FM 8.5. My situation in short: I have reports with text and images. Images are referenced from calculated results and represented in container fields. Works great! If I get an error message (The file cannot be found: "filename.jpg"), it is written in an invisible color in the container field so it doesn't show in the report. Same with borders: by default, no borders are shown for the fields. But now, in version 8.5, I run in to a problem. Whenever I get an error message as above when an image is not available, the border of the container field is non-suppressable (I can edit the behaviour of the border but it doesn't help!) and shows with bold borders in reports. The text in the container field can be suppressed (by using white font color). Has anybody gotten a solution to help me out? I've tried some tricks, see below. I've worked on several solutions to find all containers that contain errors / no images so I can delete all contents. Íf I get this, a normal container field is left and this field acts normal and doesn't show a bold border. 1) Get (LastError): doesn't work because a calculated reference doesn't result in an error. Just showing the image does and that is not a script step on which LastError can report. 2) GetAsText (container): doesn't work because the calculated reference of the filename is returned, not the error text. Please help me out! Harry |
#7
| |||
| |||
|
|
Doesn't work that way in FileMaker 7/8. "Remi-Noel Menegaux" <rnmenegaux_AT_free.fr> wrote in message news:456888de$0$19657$426a74cc (AT) news (DOT) free.fr... I used (FMP6) to create a new calc field = Case(YrTable::Image > 0; "X"; "") which has an 'X' if there is an image to show and nothing if not. I suppose it works the same way in FM7-8. I don't know if this could be of any help for you. Remi-Noel "Harry" <harry104 (AT) zonnet (DOT) nl> a écrit dans le message de news: 1164390855.247667.320460 (AT) 45g200...oglegroups.com... Hi all, I've got a migration problem when I moved on to FM 8.5. My situation in short: I have reports with text and images. Images are referenced from calculated results and represented in container fields. Works great! If I get an error message (The file cannot be found: "filename.jpg"), it is written in an invisible color in the container field so it doesn't show in the report. Same with borders: by default, no borders are shown for the fields. But now, in version 8.5, I run in to a problem. Whenever I get an error message as above when an image is not available, the border of the container field is non-suppressable (I can edit the behaviour of the border but it doesn't help!) and shows with bold borders in reports. The text in the container field can be suppressed (by using white font color). Has anybody gotten a solution to help me out? I've tried some tricks, see below. I've worked on several solutions to find all containers that contain errors / no images so I can delete all contents. Íf I get this, a normal container field is left and this field acts normal and doesn't show a bold border. 1) Get (LastError): doesn't work because a calculated reference doesn't result in an error. Just showing the image does and that is not a script step on which LastError can report. 2) GetAsText (container): doesn't work because the calculated reference of the filename is returned, not the error text. Please help me out! Harry |
#8
| |||
| |||
|
|
Set Error Capture [On] Set Variable [#imagepath; Value:GetValue(YourTable::YourContainerField; 3)] |
|
Go to Field [YourTable::YourContainerField] Insert Picture [Reference; "$imagepath"] |
|
Show Custom Dialog ["Result"; Get ( LastError )] If the file exists, you will have a result of 0. If it is missing, you will get a result of 100. |
#9
| |||
| |||
|
|
Bill, I'm not completely new to FM but I can't figure out your script proposal... |
#10
| |||
| |||
|
![]() |
| Thread Tools | |
| Display Modes | |
| |