[FX.php List] Problem with FMEdit
Gjermund Gusland Thorsen
ggt667 at gmail.com
Mon Jun 9 03:36:07 MDT 2008
-recid is the internal "fieldname" for each record in FileMaker
recid would be a regular field
ggt
2008/6/9 william.downs <william.downs at gmail.com>:
> I think that the field should be called only "recid" - not "-recid"
>
> William
>
> On 8 Jun 2008, at 02:35, Alex Gates wrote:
>>
>> Hi Kushal -
>>
>> Every record has an automatic rec id. This is different than your primary
>> key. You can see this by making a calc field Get(recid) in filemaker.
>>
>> You must use -recid in your edit.
>>
>> Check the documentation - I think it shows an example of how to get the
>> rec id using the explode function after a find. Or, of course, you can see
>> this using a calc field like I mentioned above.
>>
>> Good luck!
>>
>> Alex
>>
>> On Jun 7, 2008, at 8:07 PM, "kushal khatri" <kushal.khatri at gmail.com>
>> wrote:
>>
>>> Hi. I've been working with Filemaker/FX.PHP for quite a few months now.
>>> I am using FMEdit function like this in my code :
>>>
>>> $edit -> AddDBParam("contact_key",$contact_key);
>>> $edit -> AddDBParam("firstname",$firstname);
>>> $edit_res = $edit -> FMEdit();
>>>
>>> where "contact_key" is the primary key in the database. This code shows
>>> error 958. I have seen some snippets online. They use
>>> "-recid" as the field to find the record to be edited. Does that mean i
>>> should have a field named -recid in my database?
>>> If i write the code as :
>>>
>>> $edit -> AddDBParam("-recid",$contact_key);
>>> $edit -> AddDBParam("firstname",$firstname);
>>> $edit_res = $edit -> FMEdit();
>>>
>>> It gives error 101 i.e. field not present. Please tell me how to use
>>> FMEdit. The way it is shown in tutorials does not work for me.
>>>
>>> Thanks,
>>> Kushal
>>>
>>>
>>> _______________________________________________
>>> 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