Re: [OT] Create/Edit Form

2005-07-28 Thread Emmanouil Batsis
You need an identifier to update an object, which usually corresponds to a PK in your database. When the identifier is not present or does not correspond to a persisted entry, you probably want to create. hth, Manos Andrew Tomaka wrote: Hey all, The following is pretty hard to understan

Re: [OT] Create/Edit Form

2005-07-27 Thread Andrew Tomaka
I agree fully, but, unfortunately, I can't do a whole lot about it. The databases were set up before I started on the project and I guess the DBA was pretty hard nosed about changing from how he wanted it. Oh well. ~ Andrew Tomaka On 7/27/05, Michael Jouravlev <[EMAIL PROTECTED]> wrote: > On

Re: [OT] Create/Edit Form

2005-07-27 Thread Michael Jouravlev
On 7/27/05, Andrew Tomaka <[EMAIL PROTECTED]> wrote: > I realized the > problem was actually a bit more complex than I was making it. The > database table I am editing requires two primary keys to make an entry > unique (I'm a firm believer in a single PRImary key, but it wasn't my > choice). A

Re: [OT] Create/Edit Form

2005-07-27 Thread Andrew Tomaka
I really like your Javascript solution, Kevin. However, I realized the problem was actually a bit more complex than I was making it. The database table I am editing requires two primary keys to make an entry unique (I'm a firm believer in a single PRImary key, but it wasn't my choice). One of the

Re: [OT] Create/Edit Form

2005-07-27 Thread Ed Griebel
rows by javascript you can add a hidden field which can have a > value (eg 0 for update 1 for creation) > > Regards, > Kevin > - Original Message - > From: "Andrew Tomaka" <[EMAIL PROTECTED]> > To: "Struts Users Mailing List" > Sent: Wed

Re: [OT] Create/Edit Form

2005-07-27 Thread Simons Kevin
nesday, July 27, 2005 9:47 PM Subject: [OT] Create/Edit Form Hey all, The following is pretty hard to understand. I'm no good at describing my problems and wasn't sure how to explain it. Hopefully, someone will get what I'm attempting to say I'm working on a screen

[OT] Create/Edit Form

2005-07-27 Thread Andrew Tomaka
Hey all, The following is pretty hard to understand. I'm no good at describing my problems and wasn't sure how to explain it. Hopefully, someone will get what I'm attempting to say I'm working on a screen that allows a user to dynamically add rows via Javascript. I then have have a form that co