[FX.php List] FX Version
david weiner
1265 at lucerneblvd.org
Thu Apr 30 10:45:23 MDT 2009
Hi Blair,
I'd be happy to test this if you want to send me some sample code and
a simple file, but the oldest version of server I have access to is 9.
I can at least tell you if your page is coded correctly and you can
assume from there that it's a server 7 problem I guess.
On Apr 30, 2009, at 8:09 AM, Blair Duncan wrote:
> Has anyone else been able to get this to work?
>
> Using FMServer 7, passing a parameter to a script does not seem to be
> working for me. From within the script Get(ScriptParameter) is
> always empty
> and FX does not return any error.
>
>
>
> A dump of the dataParms from the FX object just prior to find:
> [dataParams] => Array
> (
> [0] => Array
> (
> [name] => MA_TABLE_OF_THISROW::Agency_JobNumber
> [value] => =64610
> [op] =>
> )
>
> [1] => Array
> (
> [name] => -lop
> [value] => or
> [op] =>
> )
>
> [2] => Array
> (
> [name] => -script
> [value] => FindForM2
> [op] =>
> )
>
> [3] => Array
> (
> [name] => -script.param
> [value] => thisISaTEST
> [op] =>
> )
>
> )
>
>
>
>
>
>
>
>
>
> Blair Duncan | Variable Data Manager
> SGL Communications | 2 Bloor St W, Suite 3100 Toronto ON M4W 3R6
> T 416-413-7537 | C 416-845-3357 | F 416-972-5656
>
> -Original Message-
>
>
>> Blair,
>>
>> I'm not sure where I found this, but I've been passing parameters
>> to scripts
>> using this method, here are examples:
>>
>> // Pre-sort
>> $ppw_add->PerformFMScriptPresort('WhatNewKeepSpS');
>> $ppw_add->AddDBParam('-script.presort.param',$userid);
>>
>> // Pre-command
>> $ppw_add->PerformFMScriptPrefind('WhatNewKeepSpF');
>> $ppw_add->AddDBParam('-script.prefind.param',$userid);
>>
>> // Post-command
>> $ppw_add->PerformFMScript('IPN post-command');
>> $ppw_add->AddDBParam('-script.param', $_POST['txn_id']);
>>
>>
>> -Troy
>>
>>
>>> This leads to my 2nd item. The ability to pass parameters to a
>>> script,
>>> thus making the script above dynamic and reusable for other
>>> searches.
>> _______________________________________________
>> FX.php_List mailing list
>> FX.php_List at mail.iviking.org
>> http://www.iviking.org/mailman/listinfo/fx.php_list
>>
>
> -Original Message-
>
> Please consider the environment before printing this e-mail.
>
> This message and any attachments contain information, which may be
> confidential or privileged. If you are not the intended recipient,
> please refrain from any disclosure, copying, distribution or use of
> this information. Please be aware that such actions are prohibited.
> If you have received this transmission in error, kindly notify us by
> e-mail to mailto:helpdesk at bbdo.com. We appreciate your cooperation.
>
>
>
> _______________________________________________
> 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