Radicore Forum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » RADICORE » How To » Update1 problem
Update1 problem [message #2209] Tue, 14 July 2009 13:04 Go to next message
edortizq is currently offline  edortizq
Messages: 82
Registered: August 2008
Location: Ecuador
Member

How can I do for debug the validateUpdate() function; it returns two errors when it run:

- fechageneracion[0]: Unknown value for 'type': {null}
- usuariogeneracion[0]: Unknown value for 'type': {null}

However, those two fields have these values during the execution of _cm_pre_updateRecord() function:

idlote='204' AND idtarifa='107' AND idsecuencia='1' AND idautorizacion='1' AND numerotickets='0000000010' AND fechacreacion='2009-07-03 11:07:28' AND fechaactualizacion IS NULL AND estado='1' AND autorizacionsri='1107100522' AND descripciontarifa='Platea Av. Quito - Cortesia' AND fechageneracion='2009-07-14 03:10:43' AND fechaimpresion IS NULL AND fechacontabilizacion IS NULL AND usuariogeneracion='MGR' AND usuarioimpresion IS NULL AND usuariocontabilizacion IS NULL AND idticketinicial IS NULL AND idticketfinal IS NULL AND avance IS NULL AND tickets_imprime='100'

The _cm_pre_updateRecord() does nothing, only executes an array2where for capture the field values on a text file. (results shown).
The fields are datetime and string.

Some suggestion to solve this problem???
Thanks for advice.

[Updated on: Tue, 14 July 2009 13:06]

Report message to a moderator

Re: Update1 problem [message #2210 is a reply to message #2209] Wed, 15 July 2009 03:57 Go to previous messageGo to next message
AJM is currently offline  AJM
Messages: 2368
Registered: April 2006
Location: Surrey, UK
Senior Member
What do you have in the $this->fieldspec array for those two fields? Does it include a 'type' => 'string/numeric/date/time' value?

Re: Update1 problem [message #2211 is a reply to message #2209] Wed, 15 July 2009 13:45 Go to previous message
edortizq is currently offline  edortizq
Messages: 82
Registered: August 2008
Location: Ecuador
Member

Thanks for your answer, I can see where are you going, I have manipulated the $this->fieldspec array.
I was thinking the problem was about null values in the fields with errors. The problem is solved now!!
Previous Topic: nameof_start_date error
Next Topic: list2 not respecting list1 key
Goto Forum:
  


Current Time: Sat Nov 23 20:47:02 EST 2024

Total time taken to generate the page: 0.01083 seconds