Re: [D2W] Removing the possibility to delete a relationship
Giancarlo Dessena <[email protected]> Fri, 11 Oct 2013 11:05:32 +0200
| Newsgroups | gmane.comp.web.webobjects.wonder-disc |
|---|---|
| Message-ID | <[email protected]> |
Thank you it worked. Also thank you for the tip, made it a lot easier to figure out which components are used behind the scene :D Am 04.10.2013 um 15:03 schrieb Fabian Peters <[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": > > <PastedGraphic-1.png> > > Set er.component.clickToOpen=true in your properties to show the toolbar in development mode. Then you can determine which component is being used: > > <PastedGraphic-2.png> > > 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=60134071&iu=/4140/ostg.clktrk