[FX.php List] A Way to get the Field name?

Erik Andreas Cayré erik at cayre.dk
Fri Apr 13 10:30:11 MDT 2007


Den 13/04/2007 kl. 21.28 skrev David Tinoco:

> Hi guys, the error code helps a lot when debugging, but is there a  
> way to get the field name that the error is reffering to?
>
> I have a script that posts to about 40 fields and all I get is  
> error 201, field cannot be modified but all the fields that are on  
> this layout are modifiable.

This is probably not the most elegant way:

Modify your script to only post one field at a time (may be reatively  
easy if the fields are already in an array)
Then post 40+ times each with one field.
Then you can check the db to see which field did not get posted.

Of course this will make a mess of your db, and may not be feasible,  
if you're working on a live system with important auto-enter serials  
etc...

But if you're building offline, it may be a quick way to locate the  
error...

---
Erik Andreas Cayré
Spangsbjerg Møllevej 169
6705 Esbjerg Ø

Privat Tel: 75150512
Mobil: 40161183

---
»Kun p....sure mennesker kan ændre verden. Innovation skabes ikke af  
'markedsanalyse', men af folk, der er afsindigt irriterede over  
tingenes tilstand «
--Tom Peters

»Hvis du ikke kan forklare det simpelt, forstår  du det ikke godt nok.«
-- Albert Einstein

»Hvis du ikke har tid til at gøre det rigtigt, hvornår vil du så have  
tid til at lave det om?«
-- John Wooden, basketball coach




More information about the FX.php_List mailing list