Re: [D2W] Removing the possibility to delete a relationship
Fabian Peters <[email protected]> Fri, 4 Oct 2013 13:03:18 +0000
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
Hi Carlo, You'll likely need two rules: 100 : entity.name = 'Transaction' => isEntityRemoveable = "false" [com.webobjects.directtoweb.BooleanAssignment] 100 : entity.name = 'Transaction' => isEntityDeletable = "false" [com.webobjects.directtoweb.Assignment] Returning false for canDelete() can be used to replace the second rule. To find out such things, you can use the WOLipsToolbar aka "Click top open": Set er.component.clickToOpen=true in your properties to show the toolbar in development mode. Then you can determine which component is being used: Then you can look into ERMDRemoveRelatedButton.java. Fabian Am 04.10.2013 um 12:05 schrieb Giancarlo Dessena: > Hello everybody, > > I want to remove the option of removing the relation in a to many relationship. > In short how do I remove that nasty dangerous red button :D ? > <PastedGraphic-11.png> > > Greetings Carlo > > ------------------------------------------------------------------------------ > October Webinars: Code for Performance > Free Intel webinars can help you accelerate application performance. > Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from > the latest Intel processors and coprocessors. See abstracts and register > > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk_______________________________________________ > Wonder-disc mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/wonder-disc ------------------------------------------------------------------------------ October Webinars: Code for Performance Free Intel webinars can help you accelerate application performance. Explore tips for MPI, OpenMP, advanced profiling, and more. Get the most from the latest Intel processors and coprocessors. See abstracts and register > http://pubads.g.doubleclick.net/gampad/clk?id=60134791&iu=/4140/ostg.clktrk _______________________________________________ Wonder-disc mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/wonder-disc