[FX.php List] Return original & duplicated record

BEVERLY VOTH beverlyvoth at gmail.com
Tue Jan 10 15:01:49 MST 2012


You can do an "or" find on -recid? (two requests, one find)
Beverly

On 10 Jan 2012, at 4:34 PM, Steven Thoms wrote:

> You will actually need two finds if you want to get both records since a search on -recid will only return one record, if any. But you may have the data for the duped record already.
> 
> Steve
> 207 798-0171
> 
> On Jan 10, 2012, at 4:31 PM, BEVERLY VOTH wrote:
> 
>> Right! if you previously saved the -recid to a varible, you can pull that record and the newly-created (duplicated) one in a new find.
>> 
>> Beverly
>> 
>> On 10 Jan 2012, at 3:28 PM, Steven Thoms wrote:
>> 
>>> Denins,
>>> 
>>> There is a function FMDup():
>>> 
>>> <code>
>>> $InstanceName->AddDBParam('-recid', $selectedRecord);
>>> $ReturnedData = $InstanceName->FMDup();
>>> </code>
>>> 
>>> which will return you the data for the duped record.
>>> Once you have the data, display it as you wish...
>>> 
>>> Steve
>>> 207 798-0171
>>> 
>>> On Jan 10, 2012, at 3:21 PM, Joel Shapiro wrote:
>>> 
>>>> Hi Denis
>>>> 
>>>> I'd look into running a FileMaker script (via FX.php) to duplicate the record.  My guess is that the results of that query -- including the FMScript -- would actually return both records (although I haven't tried it)
>>>> 
>>>> HTH,
>>>> -Joel
>>>> 
>>>> 
>>>> On Jan 10, 2012, at 11:29 AM, Denis Somar wrote:
>>>> 
>>>>> Hi all,
>>>>> 
>>>>> I want to give my users the ability to duplicate a single record when browsing a single record.  So they click the link to dupe it, then the page should show both the original and dupe record.  Any ideas on how to accomplish this?
>>>>> 
>>>>> Many TIA,
>>>>> Denis
>>>>> _______________________________________________
>>>>> 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
>> 
>> _______________________________________________
>> 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