[FX.php List] Script-triggering not working...

Bob Patin bob at patin.com
Mon Mar 24 16:20:01 MDT 2008


I found my error; I was trying to trigger a script that acted on an  
unrelated table (unrelated to the table that the routine was acting  
upon). Once I created a simple relationship between the tables, it  
worked fine...

BP


On Mar 24, 2008, at 4:34 PM, Michael Layne wrote:

> In my experience, you have to go to the layout where your fields are  
> within the script and make sure related fields exist.  Used to be  
> that you needed them in a portal to work, but that issue was at  
> least a couple of years ago...
>
> HTH,
>
> Michael
>
> On Mar 22, 2008, at 6:59 PM, Bob Patin wrote:
>
>> I've never used scripts in FX.php, but am in a situation where I  
>> really need to use one; I've added the code for the script; this  
>> finds the proper record, and should run a script:
>>
>> $query=new FX($serverIP,$webCompanionPort);
>> $query->SetDBData('xxx.fp7','xxxx');
>> $query->SetDBPassword('$pw',$un);
>> $query->AddDBparam('recid',$recid);
>> $query->AddDBParam('-script', 'generate_key_from_shareware');
>> $queryResult=$query->FMFind();
>>
>> When I return an error I see that my record is found, but the  
>> script doesn't get triggered. I've looked at the obvious stuff-- 
>> script name is correct, FIND is successful... anything else I  
>> should look for?
>>
>> Thanks,
>>
>> Bob Patin
>> Longterm Solutions
>> bob at longtermsolutions.com
>> 615-333-6858
>> http://www.longtermsolutions.com
>> Member of FileMaker Business Alliance and FileMaker TechNet
>>
>> CONTACT US VIA INSTANT MESSAGING:
>>    AIM or iChat: longterm1954
>>    Yahoo: longterm_solutions
>>    MSN: tech at longtermsolutions.com
>>    ICQ: 159333060
>>
>> --------------------------
>> Contact us for FileMaker hosting and programming for all versions  
>> of FileMaker
>> PHP • CDML • Full email services • Free DNS hosting • Colocation •  
>> Consulting
>>
>>
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>
> _______________________________________________
> FX.php_List mailing list
> FX.php_List at mail.iviking.org
> http://www.iviking.org/mailman/listinfo/fx.php_list



More information about the FX.php_List mailing list