Re: Question about UI technique for adding a new object to a list

2008-12-08 Thread Ramsey Lee Gurley
And if you're using wonder... ERXGenericRecord's isNewObject()... :) Ramsey On Dec 8, 2008, at 5:07 PM, David Nahodil wrote: Heya, If you have an isNew() method on your EOs to check if they are new in their editing context you could try filtering using that too. Something like this (or th

Re: Question about UI technique for adding a new object to a list

2008-12-08 Thread David Nahodil
Heya, If you have an isNew() method on your EOs to check if they are new in their editing context you could try filtering using that too. Something like this (or the WOnder equivalent): new EOKeyValueQualifier( "isNew", EOQualifier.QualifierOperatorNotEqual, Boolean.TRU

Re: Question about UI technique for adding a new object to a list

2008-12-08 Thread Chuck Hill
On Dec 8, 2008, at 1:35 PM, David Holt wrote: Hi all, Is there a way for me to add an object to a to many relationship (list of objects) without leaving the page or representing the newObject both in the list and in the edit interface? For example: Meeting edit page Attendees:

Re: Question about UI technique for adding a new object to a list

2008-12-08 Thread Simon McLean
You could try not adding it to the relationship until they hit save. Alternatively wire the edit interface up to a dictionary and build the whole object when they hit the save button. that way you don't have to faff around tidying up if they bail out instead. Simon On 8 Dec 2008, at 21:35,

Question about UI technique for adding a new object to a list

2008-12-08 Thread David Holt
Hi all, Is there a way for me to add an object to a to many relationship (list of objects) without leaving the page or representing the newObject both in the list and in the edit interface? For example: Meeting edit page Attendees: John Mary Edward

Re: Custom Type for NSTimestamp

2008-12-08 Thread Andrew Lindesay
Hello David; I wrote such a thing some years ago to handle an odd situation with MySQL and NSTimestamp. You may like to download LEWOStuff and look at the class; nz.co.lindesay.common.webobjects.eo.LEEONSTimestampFromMySQLString Sorry I no longer have any doco on the usage of this

Re: Custom Type for NSTimestamp

2008-12-08 Thread Ramsey Lee Gurley
NSTimestamp's getTime()? Ramsey On Dec 8, 2008, at 4:07 PM, David Avendasora wrote: Hi all, I'm trying to work with an existing database where they have stored date/time information as a Long Integer in the database. I'm trying to figure out the best way to use a Custom Type in the Enti

Custom Type for NSTimestamp

2008-12-08 Thread David Avendasora
Hi all, I'm trying to work with an existing database where they have stored date/time information as a Long Integer in the database. I'm trying to figure out the best way to use a Custom Type in the Entity Model so the app sees the attributes as NSTimestamps. I've subclassed NSTimestamp a

Re: Recreating Xcode project from deployed app

2008-12-08 Thread Chuck Hill
On Dec 7, 2008, at 8:31 AM, Randall Perry wrote: I have a deployed app needing updates from which the source code was lost, and so have to recreate from deployed app components. I've done a fresh install of Xcode 2.5 in Tiger, and was going to create a new project, insert components, and t

Re: Ajaxgrid

2008-12-08 Thread Chuck Hill
On Dec 7, 2008, at 3:45 AM, Randy Wigginton wrote: With the Wonder ajaxgrid component, is there an easy way to restrict sorting to a single column? And if a second column is clicked on, remove the sorting from the first column? Not that I can think of. You might be able to make some nasty

Re: Null value in column on insert when marked as mandatory in EOModel?

2008-12-08 Thread Chuck Hill
On Dec 5, 2008, at 3:28 PM, Alan Zebchuk wrote: Ya, you know, does an ec, I'm sure you know... lol sorry, it does an insert :) yes, it locks the EC. There's no other other validation errors. In fact the exception handling is set up to do the resave, and in most circumstances this resave w

Re: Component To Component Communication?

2008-12-08 Thread Chuck Hill
On Dec 8, 2008, at 1:53 AM, Jerome Chan wrote: Is there a simple way to do component to component communication? The only appropriate ways are binding synchronization and calling a method on a parent component. I have a page with a menu component and a object display component. I want

Re: ERXTabPanel allow HTML in title

2008-12-08 Thread Chuck Hill
Fix committed. Chuck On Dec 8, 2008, at 11:40 AM, Dawn Lockhart wrote: I have a ERXTabPanel and I need to display part of the tab name in red. For example: Tab name (33) However, the name does not render the html. We also have cases where the tab name is long and we need to force it to w

ERXTabPanel allow HTML in title

2008-12-08 Thread Dawn Lockhart
I have a ERXTabPanel and I need to display part of the tab name in red. For example: Tab name (33) However, the name does not render the html. We also have cases where the tab name is long and we need to force it to wrap, but haven't been able to do that. Is there a way to do this? Have tried es

Re: Error with Cross-Model/Database Relationship

2008-12-08 Thread Chuck Hill
On Dec 8, 2008, at 11:36 AM, Tonny Staunsbrink wrote: I had a similar problem and was never able to fix it. The solution was to make the foreign keys visible and create the faults in my own code. I have a feeling that it is a bug in handling cross-database relationships where the destinati

Re: Error with Cross-Model/Database Relationship

2008-12-08 Thread Tonny Staunsbrink
> > I had a similar problem and was never able to fix it. The solution was to > make the foreign keys visible and create the faults in my own code. > I have a feeling that it is a bug in handling cross-database relationships > where the destination object is part of an inheritance structure. I see

Re: Missing ERXApplicationand ERXSession

2008-12-08 Thread Mike Schrag
Hi Mike, If there is some direction somewhere about how to go about that, I would be happy to take a stab at it. http://wiki.objectstyle.org/confluence/display/WOL/Custom+Project+Templates We have a couple built in in the new format. You can unjar your org.objectstyle.wolips.templateengine

Re: Missing ERXApplicationand ERXSession

2008-12-08 Thread David Holt
Hi Mike, If there is some direction somewhere about how to go about that, I would be happy to take a stab at it. David On 8-Dec-08, at 9:28 AM, Mike Schrag wrote: Yes, this is something that needs to be done by "organizing imports" immediately when you start a new WonderD2W project. The

Re: Missing ERXApplicationand ERXSession

2008-12-08 Thread Mike Schrag
Yes, this is something that needs to be done by "organizing imports" immediately when you start a new WonderD2W project. The templates haven't been updated since the repackaging happened. For anyone who uses D2W, it would be nice to have those old style project templates converted to the newe

[Almost SOLVED] Re: One-to-one relationship

2008-12-08 Thread Francesco Romano
I don't know why I remove the "thick" Owns destination and propagate key, re-assign it and now it works. The only thing is I had to "allow null" on the attribute "Qta Iniziale" on the entity ProdottoPrivato.. It's not the "Theorical" way to map a ER to tables... but... I think it can

Re: Missing ERXApplicationand ERXSession

2008-12-08 Thread David Holt
Yes, this is something that needs to be done by "organizing imports" immediately when you start a new WonderD2W project. The templates haven't been updated since the repackaging happened. David On 7-Dec-08, at 7:00 PM, Ren, Kevin wrote: I changed import er.extensions.ERXSession; import e

Component To Component Communication?

2008-12-08 Thread Jerome Chan
Is there a simple way to do component to component communication? I have a page with a menu component and a object display component. I want to be able to call a method in the object display component from the menu component. My first thought is to have something like a controller in the en