[FX.php List] FX Version

Gjermund Gusland Thorsen ggt667 at gmail.com
Sat May 2 01:05:19 MDT 2009


This might actually work: http://pastebin.com/f6fd07a07

2009/5/2 Gjermund Gusland Thorsen <ggt667 at gmail.com>:
> I am not in the office until Monday,
> however I read the script and I believe you would have to use -recid
> and FMEdit() to get it working from what I remember.
>
> ggt
>
> 2009/5/1 Blair Duncan <Blair.Duncan at bbdo.ca>:
>> Thanks GG.
>> Zipped test db and php attached.
>>
>>
>>
>>
>>
>> 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-
>>
>>
>>> Can you please make me a subset of what you want me to test and I will
>>> upload it to my server
>>>
>>> Ggt
>>>
>>> 2009/4/30, Blair Duncan <Blair.Duncan at bbdo.ca>:
>>>> GG, are YOU able to pass a parameter to a script and the script receive the
>>>> parameter with server version 7?
>>>>
>>>>
>>>>
>>>>
>>>> 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-
>>>>
>>>>
>>>>> I run server 7
>>>>> 2009/4/30, david weiner <1265 at lucerneblvd.org>:
>>>>>> 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
>>>>>>
>>>>>> _______________________________________________
>>>>>> 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
>>>>>
>>>>
>>>> -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
>>>>
>>> _______________________________________________
>>> 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