Hi Ivan, > > When I try to use the "testAuthorBooksSubForm.jsp" form I > noticed that I cannot insert a new item in the nested form. I > press New-button, I insert data and then I confirm with > insert, but the record in the subform does not appear in the > "main" form.... I'm using tomcat 5.0.19. > > If I run the example "testAuthorBooksSubFormWithFilter.jsp", > all runs quite well, but this one in based on the query > "BOOK_QUERY" instead of the table "BOOK"....
I must test this. > > Is this normal? > In my old forms I never used "parentField and childField" > relation... I ever worked with filters... Now if I miss the > parentField/childField relation between master and sub forms > I get an error in myeclipse IDE (something like dbfroms > defined twice).... You can not use a nested dbforms without using parent - child relations. If you build your relations only with filter you must unnest the to forms - put them side by side. I is much easier to use parent child relations to build sub forms! See documentation how to us it! > > so when I use parentField+childField relation (like in > bookstore exaple): > > - have I to put a filter in the nested form to extract only > the records of one specific AUTHOR_ID? (of course no). No - this do the parent chield relation for you > > - the AUTHOR_ID field in the nested table is filled > automatically by dbforms? Or have I to put an hidden > textfield with an overrideValue="<%=AUTHOR_ID >"? No it is'nt. You must insert the hidden field. Cheers Henner ------------------------------------------------------- This SF.Net email sponsored by Black Hat Briefings & Training. Attend Black Hat Briefings & Training, Las Vegas July 24-29 - digital self defense, top technical experts, no vendor pitches, unmatched networking opportunities. Visit www.blackhat.com _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms