Re: ERXEOControlUtilities usage and Scala
I’m quite interested to use Scala inside my WebObjects applications but after some problems with Eclipse, I’ve restricted it to the tests. Could you give me more information how you manage the use WebObjects collections and conversions ? Which part of WebObjects do you think is more appropriate / easier to use Scala: business logic / component part / ... ? Dominique On 10 Jul 2014, at 17:48, Larry Mills-Gahl elem...@gmail.com wrote: Hello... I’m using scala with WebObjects/Wonder for a number of apps including a bunch of data loading/analyzation utilities (also exposed as services) This works extremely well and seamlessly (thanks to some of the scala.collection.JavaConversions._ and other bits), but there are a couple things about using EO’s that I’m working around and I wonder if someone here has more insight into where this mismatch is happening. Using ERXEOControlUtilities.createAndInsertObject(…) results in errors that the EOClassDescription cannot be found. Calling: val lab = ERXEOControlUtilities.createAndInsertObject(emrec, BloodMeasurement).asInstanceOf[BloodMeasurement] ...will fail ( but val lab = new BloodMeasurement() emrec.insertObject(lab) … works normally (but feels so 1998) It looks like scala is not getting the class descriptions from the model, but I wouldn’t expect it to care if ERXEOControlUtilities is the class that needs the model. As long as I’m asking Scala questions, is there a way to use the static fields of the eogenerated classes without addressing them directly? (Perhaps this is an Eclipse issue, but the compiler doesn’t seem to know about BloodMeasurement.ENTITY_NAME, but it does know about _BloodMeasurement.ENTITY_NAME. I imagine this has something to do with how Scala treats “companion objects” in relation to static fields in Java, but I don’t know if there is a way to deal with this more elegantly (as there is with all of the collections and functional goodness in Scala) Larry Mills-Gahl elem...@gmail.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/dominique.schoenenberger%40nagra.com This email sent to dominique.schoenenber...@nagra.com signature.asc Description: Message signed with OpenPGP using GPGMail ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
D2W Enum Query
D2W’ers: I’ve set up a custom component for querying an enum attribute (thanks to Ramsey for some good ideas and Ponder). I’ve got a rule that indicates that this component should be used when querying my entity. It looks like this: 100 : (task = 'query' and entity.name = 'KeyCheckout' and propertykey = 'status') = componentName = GSEISD2WQueryEnum [com.webobjects.directtoweb.Assignment] When I run the app, the attribute in question shows this on the query page: - cannot be used in a query - I’ve done what I thought I needed to do but obviously something is missing. Could anyone point me in the right direction? I have a similar custom component in place for editing the enum attribute and that works fine. Any help is appreciated. Tim UCLA GSEIS ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Enum Query
I thought propertyKey had a capital K. On Jul 30, 2014, at 9:36 PM, Timothy Worman li...@thetimmy.com wrote: D2W’ers: I’ve set up a custom component for querying an enum attribute (thanks to Ramsey for some good ideas and Ponder). I’ve got a rule that indicates that this component should be used when querying my entity. It looks like this: 100 : (task = 'query' and entity.name = 'KeyCheckout' and propertykey = 'status') = componentName = GSEISD2WQueryEnum [com.webobjects.directtoweb.Assignment] When I run the app, the attribute in question shows this on the query page: - cannot be used in a query - I’ve done what I thought I needed to do but obviously something is missing. Could anyone point me in the right direction? I have a similar custom component in place for editing the enum attribute and that works fine. Any help is appreciated. Tim UCLA GSEIS ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com
Re: D2W Enum Query
Ah, for the love of….. :-) Of course all of the rules above and below are correct. That fixes it. Thanks! Tim On Jul 30, 2014, at 7:12 PM, Theodore Petrosky tedp...@yahoo.com wrote: I thought propertyKey had a capital K. On Jul 30, 2014, at 9:36 PM, Timothy Worman li...@thetimmy.com wrote: D2W’ers: I’ve set up a custom component for querying an enum attribute (thanks to Ramsey for some good ideas and Ponder). I’ve got a rule that indicates that this component should be used when querying my entity. It looks like this: 100 : (task = 'query' and entity.name = 'KeyCheckout' and propertykey = 'status') = componentName = GSEISD2WQueryEnum [com.webobjects.directtoweb.Assignment] When I run the app, the attribute in question shows this on the query page: - cannot be used in a query - I’ve done what I thought I needed to do but obviously something is missing. Could anyone point me in the right direction? I have a similar custom component in place for editing the enum attribute and that works fine. Any help is appreciated. Tim UCLA GSEIS ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/tedpet5%40yahoo.com This email sent to tedp...@yahoo.com ___ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com