[FX.php List] FX Version

Blair Duncan Blair.Duncan at bbdo.ca
Thu Apr 30 09:09:36 MDT 2009


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.
 
 



More information about the FX.php_List mailing list