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