From: David H. <pro...@ma...> - 2010-10-29 16:52:57
|
On 2010-10-29, at 7:52 AM, David LeBer wrote: > > On 2010-10-29, at 10:49 AM, Ramsey Gurley wrote: > >> I'm not aware of any component that does that, although I think that >> would make a nice addition to an edit relationship page. Obviously, >> you couldn't instantiate something like ERAttachment, so the page >> could check for sub entities and require an entity selection before >> enabling the create button. > > Patches welcome ;-) I've got this working for a specific EO and it's subclasses. It is a WOPopUpButton with choices of sub entity and a submit button that takes you to a 'create' page for that sub entity. I'll see if I can make it generic (in which case I'll submit a patch). If I can't, I'll write up in the wiki how to do it. d > >> >> Ramsey >> >> On Oct 28, 2010, at 1:58 PM, David Holt wrote: >> >>> Many (many) moons ago, in response to this question: >>> >>> 1. Imagine you have a class with a to-one relationship to the root >>> of a class hierarchy. When you create an instance of that class, you >>> would also like to connect to a new instance of a class under the >>> root of the class hierarchy the source object is pointing to. >>> However, since the model has the relationship to the root it can't >>> know which subclass you want to instanciate. I would therefore like >>> to add several buttons such as "new Code" or "new Decimal" or "new >>> Text" assuming the sublasses are Decimal_somehting Code_something >>> and Text_something. >>> >>> Max Muller wrote: >>> >>> This is easy to handle. We make heavy use of entity inheritance and >>> have run into this multiple times. My suggestion would be to write >>> a custom component for use in a D2W page that would either a) give >>> the user the choice when it is displayed when editing the object or >>> b) take the user to another page where they would choose the type of >>> sub entity they would like to create and when that is chosen the >>> object would be created, have the relationships set and then taken >>> to a D2W page for editing that particular eo.. >>> >>> Does anyone know if Wonder has such components? >>> >>> Thanks, >>> David >>> ------------------------------------------------------------------------------ >>> Nokia and AT&T present the 2010 Calling All Innovators-North America >>> contest >>> Create new apps & games for the Nokia N8 for consumers in U.S. and >>> Canada >>> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in >>> marketing >>> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi >>> Store >>> http://p.sf.net/sfu/nokia-dev2dev >>> _______________________________________________ >>> Wonder-disc mailing list >>> Won...@li... >>> https://lists.sourceforge.net/lists/listinfo/wonder-disc >>> >> >> >> ------------------------------------------------------------------------------ >> Nokia and AT&T present the 2010 Calling All Innovators-North America contest >> Create new apps & games for the Nokia N8 for consumers in U.S. and Canada >> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in marketing >> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store >> http://p.sf.net/sfu/nokia-dev2dev >> _______________________________________________ >> Wonder-disc mailing list >> Won...@li... >> https://lists.sourceforge.net/lists/listinfo/wonder-disc > > ;david > > -- > David LeBer > Codeferous Software > 'co-def-er-ous' adj. Literally 'code-bearing' > site: http://codeferous.com > blog: http://davidleber.net > profile: http://www.linkedin.com/in/davidleber > twitter: http://twitter.com/rebeld > -- > Toronto Area Cocoa / WebObjects developers group: > http://tacow.org > > > > |