tag:blogger.com,1999:blog-5874979429188093780.post118511535778940814..comments2024-03-18T06:46:54.352+01:00Comments on Andrej Baranovskij Blog: Different Approach for DB Constraint Error Handling in ADFAndrej Baranovskijhttp://www.blogger.com/profile/04468230464412457426noreply@blogger.comBlogger5125tag:blogger.com,1999:blog-5874979429188093780.post-49631342519842581022014-02-06T19:26:01.049+01:002014-02-06T19:26:01.049+01:00This is pretty easy. You should override createRow...This is pretty easy. You should override createRowFromResultset and create method in VO, set VO instance name to the transient attribute. This would allow to read this attribute in EO Impl and always know the name of VO instance current EO row is attached to.<br /><br />Regards,<br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-35401841553467766582014-02-06T07:18:24.980+01:002014-02-06T07:18:24.980+01:00Hello,
nice post, But I would still like to ask th...Hello,<br />nice post, But I would still like to ask the same question as one asked earlier:<br />if we have many ViewObject base on same entity what is the solution? get all ViewObject from AppModule ?<br /><br />what if we have several screens, each one based on a different view object, but all the view objects are based on the same entity? if we simply set the error messages for one of them, but try to submit from a screen that uses a different view object, then the error messages will be saved to the wrong view object.<br />Ahmad Al-Zamerhttps://www.blogger.com/profile/16352950902348986123noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-20977762019364313962014-02-05T21:41:07.214+01:002014-02-05T21:41:07.214+01:00No, just get VO instance you need by name, same as...No, just get VO instance you need by name, same as I do in this example. No need to get all :)<br /><br />AndrejusAndrej Baranovskijhttps://www.blogger.com/profile/04468230464412457426noreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-91151090576580270722014-02-05T21:01:58.087+01:002014-02-05T21:01:58.087+01:00Hi andrejus
if we have many ViewObject base on sam...Hi andrejus<br />if we have many ViewObject base on same entity what is the solution? get all ViewObject from AppModule ?Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-5874979429188093780.post-64885789943645250112014-02-05T20:50:55.906+01:002014-02-05T20:50:55.906+01:00Nice post !!Cleverly handled the exceptions.Nice post !!Cleverly handled the exceptions.Sanjeeb Mahakulhttps://www.blogger.com/profile/12832016835237517374noreply@blogger.com