Top Experts [learn more]Top 4-10

9743 K

2458 K

1525 K
4. tcmeyers
5. kbata
6. Martie
7. Hammerton
8. rrenfrow
9. bneeman
10. plegler
Welcome, Guest. Please login or register.
December 19, 2014, 12:37:36 AM

Login with username, password and session length
Search:     Advanced search
FMWebschool releases more educational FMStudio webinars - check them out here:
27830 Posts in 6157 Topics by 1525 Members
Latest Member: alkyred
* Home Help Search Calendar Login Register
|-+  Recent Posts
Pages: [1] 2 3 ... 10

 on: December 18, 2014, 03:40:33 PM 
Started by PhanMan - Last post by webko
Trap for the relevant error (401 from memory) and use an If statement to do something different...



 on: December 18, 2014, 03:10:39 PM 
Started by PhanMan - Last post by PhanMan
I have a recordset that I want to count how many records have "New" in a "status" field.  Then i would use the "getFoundSetCount" to display the number of records found.  This works however if there are no records meeting the criteria, the page displays an error which I don't want it to go to an error page. 

Is there a way to display the count on the page as 0 instead of having forward to an error page and also display the count when it meets the criteria?

 on: November 26, 2014, 12:19:06 PM 
Started by starlucks - Last post by jruzinok
Ok, got it working.

Please shoot me an email...



 on: November 25, 2014, 07:30:37 PM 
Started by starlucks - Last post by jruzinok
This is quite puzzling... I will look at it more later. But I was able to make an image appear on another page, using your code.

<?php require_once('Connections/FMConnection.php'); ?>
if(isset($_GET['recid']) && isset($_GET['image']) && $_GET['image'] == 'image') {
$cruises_find $FMConnection->newFindCommand('PROMOTIONS');
$cruises_findCriterions = array('Publish to web'=>'=='.fmsEscape('Yes'),'Category'=>'=='.fmsEscape('Cruise'),'zctDatePassed'=>'=='.'No',);
$cruises_findCriterions as $key=>$value) {



$cruises_result $cruises_find->execute(); 

FileMaker::isError($cruises_result)) fmsTrapError($cruises_result,"error.php"); 


$cruises_row current($cruises_result->getRecords());

$cruises__BUSINESSES5_portal fmsRelatedRecord($cruises_row'BUSINESSES 5');
$cruises__SELECTEDMOREINFO_portal fmsRelatedRecord($cruises_row'SELECTED MORE INFO');
$cruises__itineraryselected_portal fmsRelatedRecord($cruises_row'itinerary selected');
$cruises__PROMOTIONSselectednote_portal fmsRelatedRecord($cruises_row'PROMOTIONS selected note');
$cruises__Selecteddocument_portal fmsRelatedRecord($cruises_row'Selected document');
$cruises__selectedEVENTitinerary_portal fmsRelatedRecord($cruises_row'selected EVENT itinerary');
$cruises__EVENTitinerary2_portal fmsRelatedRecord($cruises_row'EVENT itinerary 2');
$cruises__ReeceLovesTravelexchangerate2_portal fmsRelatedRecord($cruises_row'Reece Loves Travel exchange rate 2');
$cruises__RLTcountryguides2_portal fmsRelatedRecord($cruises_row'RLT country guides 2');
$cruises__COMPANYINFO_portal fmsRelatedRecord($cruises_row'COMPANY_INFO');
$cruises__PROMOTIONSmoreinfo_portal fmsRelatedRecord($cruises_row'PROMOTIONS more info');
$cruises__packageitinerary2_portal fmsRelatedRecord($cruises_row'package itinerary 2');
$cruises__NOTES4_portal fmsRelatedRecord($cruises_row'NOTES 4');
$cruises__DOCUMENTS2_portal fmsRelatedRecord($cruises_row'DOCUMENTS 2');
$cruises__PROMOTIONSsidebar_portal fmsRelatedRecord($cruises_row'PROMOTIONS side bar');

<?php // FMStudio Pro - do not remove comment, needed for DreamWeaver support ?>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "">
<html xmlns="">
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>Test Cruise Image</title>

<img alt="" src="<?php echo fmsImageURL('image',$cruises_row->getRecordId()); ?>" width="100" height="100" id="test" name="test">

 on: November 25, 2014, 05:32:18 PM 
Started by starlucks - Last post by starlucks
Hi Justin,

Thanks for your reply...
I'm hosting the database with a hosting company. But the website is referencing the same database (same records in the results) as the current site, which is working fine...

So I'm not able to get the files from FileMaker Server as I can't access the hosting server. But what I did do was copy the FileMaker folder and FileMaker.php files from the current (working) site, into this new one. Unfortunatly is hasn't made any difference, ie. the dynamic images are still not loading.


 on: November 25, 2014, 07:33:43 AM 
Started by starlucks - Last post by jruzinok
It looks like you are using the FileMaker PHP API for FM 13 Server. You need to go into your FileMaker 11 Server and copy over the correct FileMaker API for FM 11.

Here is the location for the API:
/Library/FileMaker Server/Web Publishing/
drive:\Program Files\FileMaker\FileMaker Server\Web Publishing\
* drive is the drive on which the web server component of your FileMaker server deployment resides

Replace the FileMaker.php file and the FileMaker folder.

Please let me know how it works after this.

Thank you!

 on: November 24, 2014, 03:26:58 PM 
Started by starlucks - Last post by starlucks
hey Justin,

The images are internally stored, it's Filemaker 11 the client is using..


 on: November 24, 2014, 09:39:09 AM 
Started by starlucks - Last post by jruzinok
How are your image containers being stored? Internal or External Storage?

If you are storing your container images via EXTERNAL here is a trick I use:

1. Go to your FileMaker Layout and in Layout Mode make sure that the container is selected for Interactive Content.
2. Then just echo out the container field in a URL like so:
<img src="<?php echo $external_docs_row->getField('file | container_pdf'); ?>" alt=""/>


 on: November 23, 2014, 09:51:29 PM 
Started by starlucks - Last post by starlucks

thanks again for your help with this..I'm getting nowhere!

I've uploaded some files to DropBox for you to see the code. The download lonk is:

I see you're in Sydney. I'm in Byron Bay. If you require anything else to figure out the cause of this...please call and I'll be too happy to help. My number is 0405 373 184.

Thanks again!!

 on: November 23, 2014, 03:13:26 PM 
Started by starlucks - Last post by webko
OK, there is something different between

Can you post or email both of these files please? I'm suspecting a relative link somewhere that works in the root directory, and not in the sub-directory...



Pages: [1] 2 3 ... 10
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines Valid XHTML 1.0! Valid CSS!