[FX.php List] fmdelete returns a 1

Head Honcho headhoncho at customikesolutions.com
Fri Oct 23 15:43:30 MDT 2009


On 23/10/2009, at 6:35 PM, Gjermund Gusland Thorsen wrote:

> Why should anyone delete at all?

"No, I don't want the red one, I want the green one"

> Are these ghost trolleys for a shopping solution?
>
> For my solutions there is a separate number field toBeRemoved,
> and if that field has the value of 1... nobody sees that record.
>
> ggt
>
> 2009/10/23 william.downs <william.downs at gmail.com>:
>> Chris, Tim, Dale
>>
>> many sincere thanks - all a great help.
>>
>> Chris - I get the bit about the error object - but the second part  
>> eludes me
>> :
>>
>> This is correct so far -
>>
>>    $medLang=new FX($serverIP,$webCompanionPort,'FMPro7');
>>    $medLang->SetDBData($fmFile,'medLangs');
>>    $medLang->SetDBPassword($webPassword,$webUser);
>>    $medLang->AddDBParam('-recid',$recid);
>>
>>    $medLangResult=$medLang->FMDelete();
>>
>>    if( FX::isError( $medLangResult ) ) {
>> echo "error - please inform admin etc";
>>     }
>>
>> So what would I do with $medLangResult->lastErrorCode ?
>>
>> I will actually speak to the client about your point below Webko -  
>> I like
>> the idea.
>>
>> Kindest Regards
>>
>> William
>>
>> On 22 Oct 2009, at 21:40, Tim 'Webko' Booth wrote:
>>
>>>
>>> On 23/10/2009, at 1:06 AM, william.downs wrote:
>>>
>>>> Hi there,
>>>>
>>>> after a stint with the fm API, I am back to FX.php :-)
>>>>
>>>> Using fmdelete to delete a record - which works fine (does delete  
>>>> the
>>>> record) - but
>>>
>>> As a side-note to the other answers - I don't allow a delete to be  
>>> run
>>> from the web. All 'deleted' records are flagged as not to show in  
>>> searches,
>>> and then checked by an admin later through FM. Learnt that people  
>>> will
>>> always delete something they don't mean to...
>>>
>>> Cheers
>>>
>>> Webko
>>>
>> _______________________________________________
>> 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

Regards

Michael Ward
--
Head Honcho
CustoMike Solutions
Member, FileMaker Business Alliance
Member, FileMaker Technical Network
FileMaker 7 Certified Developer
FileMaker 8 Certified Developer
FileMaker 9 Certified Developer
FileMaker 10 Certified Developer
10 Wandoo Crt
Wheelers Hill, 3150
ph 0414 562 501
headhoncho at customikesolutions.com






More information about the FX.php_List mailing list