Aw: Re: EOModeler, search with Array

2015-02-12 Thread Daniel Hausberger
Hi Ken, thank you so much! That was exactly what i was looking for the last days. You were right, i have Wonder and the templates generating the _Entity and Entity. With your solution, everything looks now fine! Daniel Gesendet:Donnerstag, 12. Februar 2015 um 17:42 Uhr Von:Ken Anderson

Re: assigning relationship in willInsert()

2015-02-12 Thread Theodore Petrosky
On Feb 12, 2015, at 12:15 PM, Ramsey Gurley rgur...@smarthealth.com wrote: On Feb 11, 2015, at 10:46 PM, Theodore Petrosky tedp...@yahoo.com wrote: But there are rules about these books. There are 15 persons assigned to the Reed1 book for Show01. Only one of them is the PrimaryPlayer.

Re: assigning relationship in willInsert()

2015-02-12 Thread Theodore Petrosky
On Feb 12, 2015, at 6:29 PM, Ramsey Gurley rgur...@smarthealth.com wrote: On Feb 12, 2015, at 1:38 PM, Theodore Petrosky tedp...@yahoo.com wrote: On Feb 12, 2015, at 12:15 PM, Ramsey Gurley rgur...@smarthealth.com wrote: On Feb 11, 2015, at 10:46 PM, Theodore Petrosky

Re: ERPDFGeneration and inline images

2015-02-12 Thread Ray Kiddy
On Thu, 12 Feb 2015 13:36:58 + Mark Wardle m...@wardle.org wrote: I struggled to use dynamically generated images in ERPDFGeneration and couldn’t get it to work - generally getting incorrect URLs in the generated HTML files generated from a WOComponent template. What kind of URLs were you

Re: assigning relationship in willInsert()

2015-02-12 Thread Theodore Petrosky
Ramsey, so after all of 15 minutes (and being disturbed by a 10 minute phone call) and it works! Thank you! Now on to a JasperReport for the week! two rules: 100 : pageConfiguration = 'CreateEvent' = displayPropertyKeys = ((one, show, dateTime), (tabTwo, eventBooks))

Re: assigning relationship in willInsert()

2015-02-12 Thread Ramsey Gurley
On Feb 12, 2015, at 1:38 PM, Theodore Petrosky tedp...@yahoo.com wrote: On Feb 12, 2015, at 12:15 PM, Ramsey Gurley rgur...@smarthealth.com wrote: On Feb 11, 2015, at 10:46 PM, Theodore Petrosky tedp...@yahoo.com wrote: But there are rules about these books. There are 15 persons

Re: app deadlock issue

2015-02-12 Thread Chuck Hill
Hi Tim, On 2015-02-12, 7:24 PM, Timothy Worman wrote: All: I have an application that deadlocks every time I try to bounce instances. The previous instance of the app never will completely shutdown. Since this isn’t (yet) my forte, this is what my jstack output looks like: General jstack

app deadlock issue

2015-02-12 Thread Timothy Worman
All: I have an application that deadlocks every time I try to bounce instances. The previous instance of the app never will completely shutdown. Since this isn’t (yet) my forte, this is what my jstack output looks like: General jstack reading tips welcome as well - gotta do some learnin’.

ERPDFGeneration and inline images

2015-02-12 Thread Mark Wardle
I struggled to use dynamically generated images in ERPDFGeneration and couldn’t get it to work - generally getting incorrect URLs in the generated HTML files generated from a WOComponent template. As a fix, I added support for ERPDFGeneration to handle html IMG tags with base64 encoded data in

EOModeler, search with Array

2015-02-12 Thread Daniel Hausberger
Hi Experts, im strugeling around with an (i think so) easy problem: What is the right way to make an Qualifier (for a Fetch-Specification in EOModeler) to not search with just one single Object, but with a list of objects: For example this model: 1 Car-Brand produces many Cars (e.g. VW

Aw: Re: EOModeler, search with Array

2015-02-12 Thread Daniel Hausberger
Hi Ken, thank you for your reply. This looks exactly like the thing i have looked for, but i have no idea how to use this? How do i get a list of Cars with the ERXOrQualifier? Sorry for this question, but i have never done it like this before. Can you help me? Thanks, Daniel

Re: assigning relationship in willInsert()

2015-02-12 Thread Theodore Petrosky
BTW, here is an experiment. I put into my EO the three methods: @Override protected void init(EOEditingContext ec) { System.out.println(Just called init ec = + ec); @Override public void awakeFromInsertion(EOEditingContext editingContext) { System.out.println(Just called awakeFromInsertion ec

Re: assigning relationship in willInsert()

2015-02-12 Thread Chuck Hill
Yes, it looks like willInsert has a rather poor choice of names. Chuck On 2015-02-12, 7:25 AM, Theodore Petrosky wrote: BTW, here is an experiment. I put into my EO the three methods: @Override protected void init(EOEditingContext ec) { System.out.println(Just called init ec = + ec);

Re: assigning relationship in willInsert()

2015-02-12 Thread Ramsey Gurley
On Feb 11, 2015, at 10:46 PM, Theodore Petrosky tedp...@yahoo.com wrote: But there are rules about these books. There are 15 persons assigned to the Reed1 book for Show01. Only one of them is the PrimaryPlayer. Likewise there are 20 other books assigned to this Show. How do you know who

Re: EOModeler, search with Array

2015-02-12 Thread Ken Anderson
Daniel, You can use the in method of the ERXKEY like this: NSArrayBrand brands = new NSArrayBrand(new Brand[] {vw, audi, bmw}); Car.BRAND.in(brands); This still generates an OR qualifier, but it’s prettier. Ken On Feb 12, 2015, at 8:25 AM, Daniel Hausberger danielhausber...@gmx.de wrote:

Re: EOModeler, search with Array

2015-02-12 Thread Ken Anderson
Daniel, I should have asked, but you’re using WOnder, right? I use WOnder and templates that generate a lot of good stuff. Are you generating _Entity and Entity files? Assuming you are, you can use some of the convenience methods, like: NSArrayCar = Car.fetchCars(editingContext,

Re: assigning relationship in willInsert()

2015-02-12 Thread Ramsey Gurley
I just noticed, you mentioned other books have the same rule on the same event. In which case, you’d make Event -eventBooks -primaryEventBooks EventBook -event operson -book oprimaryForEvent distinct index (primaryForEventId, bookId) check constraint (eventId = primaryForEventId or