Hi Sergio, Third mail with same theme :-) I changed rendering of linked fields - seems that there went something wrong during my cleanups (moving code from header/body/footer to form tag). Could you try the current CVS version?
Thanks Henner > -----Ursprüngliche Nachricht----- > Von: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] Im > Auftrag von Sergio Moretti > Gesendet: Dienstag, 26. Oktober 2004 16:53 > An: [EMAIL PROTECTED] > Betreff: [dbforms] secondary events generation problems > > Hi all, > there is a problem on generation of secondary events. > A secondary event of type "insert" is generated whenever a > input field named "f_<TABLEID>_ins<...>" is found; but in a > master - detail structure, for the detail, an hidden field > "f_<TABLEID>_ins<...>" is always generated for each field > linked with master. This cause the wrong generation of an > secondary event of type "insert". > > The key point here is to find a better way to find if an > insert event is really what we need. > > The code responsible for this is in EventEngine.java, here a snippet: > > // now try the same with insert records > // but only if > if (collissionDanger && (excludeTableId != > actTable.getId())) { > paramStub = "f_" + actTable.getId() + "_" > + Constants.FIELDNAME_INSERTPREFIX; > > Vector v = ParseUtil.getParametersStartingWith(request, > paramStub); > > if (v.size() > 0) { > String aKeyParam = (String) v.firstElement(); > String keyId = > aKeyParam.substring(paramStub.length()); > keyId = StringUtil.getEmbeddedString(keyId, 0, '_'); > > DatabaseEvent e = > dbEventFactory.createInsertEvent(actTable > > .getId(), > > keyId, > > request, > > config); > result.addElement(e); > } > } > > > cheers, > Sergio > > > ------------------------------------------------------- > This SF.net email is sponsored by: IT Product Guide on > ITManagersJournal Use IT products in your business? Tell us > what you think of them. Give us Your Opinions, Get Free > ThinkGeek Gift Certificates! Click to find out more > http://productguide.itmanagersjournal.com/guidepromo.tmpl > _______________________________________________ > DbForms Mailing List > > http://www.wap-force.net/dbforms > ------------------------------------------------------- This SF.Net email is sponsored by: Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Reader's Choice Award Winner for best database on Linux. http://ads.osdn.com/?ad_idU88&alloc_id065&op=click _______________________________________________ DbForms Mailing List http://www.wap-force.net/dbforms