• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Re: WOOgnl help ??? i think I figured it out
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: WOOgnl help ??? i think I figured it out


  • Subject: Re: WOOgnl help ??? i think I figured it out
  • From: Theodore Petrosky <email@hidden>
  • Date: Wed, 12 Jun 2013 08:05:09 -0700 (PDT)

at the bottom of the page there is a reference from Mike S that leads me to believe that I can do this:

Person localPerson = ((Person) ERXThreadStorage.valueForKey("currentUser")).localInstanceIn(theBrief.editingContext());
PersonHelper.displayName(localPerson);

we shall see!!!

--- On Wed, 6/12/13, Theodore Petrosky <email@hidden> wrote:

> From: Theodore Petrosky <email@hidden>
> Subject: WOOgnl help ???
> To: "WebObjects Development" <email@hidden>
> Date: Wednesday, June 12, 2013, 10:50 AM
> I am reading http://wiki.wocommunity.org/display/documentation/WOOGNL+Helper+Functions
>
> and I thought I would spend some time learning this. I
> created my helper class:
>
> package com.as.Helpers;
>
> import com.as.Model.Person;
>
> public class PersonHelper {
>
>     public static String displayName(Person
> person) {
>         return person.firstName() + " "
> + person.lastName();
>     }
>    
>     public static String
> displayShortName(Person person) {
>         return
> person.firstName().substring(0,1) + ". " +
> person.lastName();
>     }
> }
>
> and I finally got it. At least how to access these helper
> methods in my inline bindings and in the WOD.
>
> But I was thinking that some of the other methods that I
> would normally put in my EO belong in this helper class.
>
> Can I access the helper methods in my java? Or maybe Can I
> access these methods in my java. For instance I pass the
> current user to my Jasper report and I want to pass the
> helper  displayName.
>
> Ted
>
>  _______________________________________________
> Do not post admin requests to the list. They will be
> ignored.
> Webobjects-dev mailing list      (email@hidden)
> Help/Unsubscribe/Update your Subscription:
>
> This email sent to email@hidden
>

 _______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden


References: 
 >WOOgnl help ??? (From: Theodore Petrosky <email@hidden>)

  • Prev by Date: WOOgnl help ???
  • Next by Date: Re: Globally inspecting and conditionally altering fetch spec
  • Previous by thread: WOOgnl help ???
  • Next by thread: My WOWODC presentation, and developer opportunities for iPad Document Hub
  • Index(es):
    • Date
    • Thread