so far i've put a ns_notice at the api just ams::saveto see what value is being passed to value_save
****************************
set value_id [ams::widget -widget $widget -request "form_save_value" -attribute_name $attribute_name -pretty_name $pretty_name -form_name $form_\
name -attribute_id $attribute_id]
ns_log notice "TEST: $attribute_name: $value_id"
ams::attribute::value_save -object_id $object_id -attribute_id $attribute_id -value_id $value_id
*******************************
and the weird message come up on the error.log file
I was expecting to come TEST: followed with the fields that are on ams-list
*************************************
[20/Feb/2007:06:06:18][10468.49156][-conn:conaje::0] Notice: TEST: aol_msg:
NOTICE: adding missing FROM-clause entry for table "acs_object_id_seq"
CONTEXT: PL/pgSQL function "acs_object__new" line 17 at select into variables
PL/pgSQL function "acs_object__new" line 11 at return
PL/pgSQL function "ams_value__postal_address_save" line 43 at assignment
[20/Feb/2007:06:06:18][10468.49156][-conn:conaje::0] Error: Ns_PgExec: result status: 7 message: ERROR: null value in column "delivery_address" violates not-null constraint
CONTEXT: PL/pgSQL function "ams_value__postal_address_save" line 52 at SQL statement
[20/Feb/2007:06:06:18][10468.49156][-conn:conaje::0] Error: Error in include template "/home/conaje/conaje/packages/acs-subsite/lib/user-info": Transaction aborted: Database operation "0or1row" failed (exception NSDB, "Query was not a statement returning rows.")
ERROR: null value in column "delivery_address" violates not-null constraint
CONTEXT: PL/pgSQL function "ams_value__postal_address_save" line 52 at SQL statement
...