Re: dbAdd does not get correclty the param

2002-10-09 Thread Antonio Gallardo Rivera

I resolve the problem:

A stupid problem! I alone made it! I miss it:

 
  
   Hi:
>
> I am using dbAdd from the Original Database Actions. All my forms work very
> well and I can add, update and remove records in a PostgreSQL. database.
>
> But, I have a form that can add a register and it seems like after some
> javascript change values in the form (based on what the user select on a
>  tag). The dbAdd is not able to work with the parameters. I needed
> to rename some of the params to meet the right name of the field into the
> database.
> For example: I before had a param called "id" and:
>
> 
>
> But if I do that, then I got a error that the can_id can not be null (its
> natural, but not normal), because I have into the form fixed the value for
> "id":
>
> 
>
> Then there is no way how "id" can be null!
>
> Please help, me.
>
> I am using Tomcat 4.1.12, Java 1.4.1, Cocoon -dev 2.1.
>
> Antonio Gallardo
>
> My descriptor.xml: 
> 
>   
>   
>   
>   
>type="string"/>
>type="long"/>  max-len="200" type="string"/>
>   
>   
>type="string"/>
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   
> 
> 
> 
> 
> 
> 
> 
> 
> 
>   
>   mp_pool
>   
> 
>   
>   
>   
>   
> 
> 
>type="string"/>  type="long"/>
>type="string"/>
>   
>   
>   
>   
>   
> 
> 
> 
> ***
>
> -
> Please check that your question  has not already been answered in the
> FAQ before posting. 
>
> To unsubscribe, e-mail: <[EMAIL PROTECTED]>
> For additional commands, e-mail:   <[EMAIL PROTECTED]>

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>




dbAdd does not get correclty the param

2002-10-09 Thread Antonio Gallardo Rivera

Hi:

I am using dbAdd from the Original Database Actions. All my forms work very 
well and I can add, update and remove records in a PostgreSQL. database.

But, I have a form that can add a register and it seems like after some 
javascript change values in the form (based on what the user select on a 
 tag). The dbAdd is not able to work with the parameters. I needed to 
rename some of the params to meet the right name of the field into the 
database.
For example: I before had a param called "id" and:



But if I do that, then I got a error that the can_id can not be null (its 
natural, but not normal), because I have into the form fixed the value for 
"id":



Then there is no way how "id" can be null!

Please help, me.

I am using Tomcat 4.1.12, Java 1.4.1, Cocoon -dev 2.1.

Antonio Gallardo

My descriptor.xml: 

  
  
  
  
  
  
  
  
  
  
  










  
  









  
  mp_pool
  

  
  
  
  


  
  
  
  
  
  
  
  



***

-
Please check that your question  has not already been answered in the
FAQ before posting. 

To unsubscribe, e-mail: <[EMAIL PROTECTED]>
For additional commands, e-mail:   <[EMAIL PROTECTED]>