Re: CForms, databinding and databases

2005-11-17 Thread Omar Adobati
Yes, I'm here again... From the last mail I had recived, I now use this code: 1) form definition: fd:repeater id=NumeriTelefono initial-size=2 fd:widgets fd:field id=IDTipo required=false fd:labelTipo/fd:label fd:datatype base=long/ /fd:field

Re: CForms, databinding and databases

2005-11-17 Thread Mark Lundquist
On Nov 14, 2005, at 10:51 PM, Sylvain Wallez wrote: as usually, thanks in advice That should be thanks for any advice, or thanks in advance :-) How about, thanks in advance for any advice? That way all the bases are covered... :-) I knew a guy who would write advTHANKSance

Re: CForms, databinding and databases

2005-11-15 Thread Omar Adobati
How's that a problem? fd:field id=telephoneNumber works perfectly! This is right, I know this and I try it with the name and last name fields, but they are unique (I have just one name and just on last name for any contact)... but I have two (or more) telephon numbers to store... so the way

Re: CForms, databinding and databases

2005-11-15 Thread Omar Adobati
I might be wrong, but if telephoneNumber is a table, i think it should be mapped to a repeater, not to a field. snip/ Yes, maybe it was just a mistake, but anyway I could understand... Why do you need 2 widgets if you have only 1 field in your table ? Can't you make a conditional

Re: CForms, databinding and databases

2005-11-15 Thread Marc Salvetti
Because... because... don't know why!! I think I need two widgetsbecause of the need to have two kinds of telephone number... How I can use just one widget for both of them?Sorry if this is a dummy question... I think i see your problem now, i didn't understand you need to have several different

Re: CForms, databinding and databases

2005-11-15 Thread Omar Adobati
On 11/15/05, Marc Salvetti [EMAIL PROTECTED] wrote: Because... because... don't know why!! I think I need two widgets because of the need to have two kinds of telephone number... How I can use just one widget for both of them? Sorry if this is a dummy question... I think i see your

CForms, databinding and databases

2005-11-14 Thread Omar Adobati
Good morning all, yeah, I'm still working on the employee sample... Now I think that I'm in a good point of the understanding but I miss something... In the file flow.js, into the do_edit_employee() function I can read this: // Fill the form with the Map returned by JDBI. // No binding

Re: CForms, databinding and databases

2005-11-14 Thread Sylvain Wallez
Omar Adobati wrote: Good morning all, yeah, I'm still working on the employee sample... Now I think that I'm in a good point of the understanding but I miss something... In the file flow.js, into the do_edit_employee() function I can read this: // Fill the form with the Map returned by

Re: CForms, databinding and databases

2005-11-14 Thread Marc Salvetti
Yes, because I'm using a DB that has, for example, a table called telephoneNumber. How's that a problem? fd:field id=telephoneNumber works perfectly! I might be wrong, but if telephoneNumber is a table, i think it should be mapped to a repeater, not to a field. snip/ Now, I suppose is clear