• 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
How do I initialize an Entity attribute upon creation in D2W?
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

How do I initialize an Entity attribute upon creation in D2W?


  • Subject: How do I initialize an Entity attribute upon creation in D2W?
  • From: James Cicenia <email@hidden>
  • Date: Sat, 05 Nov 2011 11:23:16 -0500

The subject line is the question.

I use the standard factory:

    public WOComponent newObjectForEntityName(String entityName) {
        WOComponent nextPage = null;
        try {
            EditPageInterface epi = D2W.factory().editPageForNewObjectWithEntityNamed(entityName, session());
            epi.setNextPage(session().context().page());
            nextPage = (WOComponent) epi;
        } catch (IllegalArgumentException e) {
            ErrorPageInterface epf = D2W.factory().errorPage(session());
            epf.setMessage(e.toString());
            epf.setNextPage(session().context().page());
            nextPage = (WOComponent) epf;

            

        }
        return nextPage;
    }

Thanks
James



Attachment: smime.p7s
Description: S/MIME cryptographic signature

 _______________________________________________
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

  • Follow-Ups:
    • Re: How do I initialize an Entity attribute upon creation in D2W?
      • From: David LeBer <email@hidden>
  • Prev by Date: Lion Server deployment
  • Next by Date: Re: How do I initialize an Entity attribute upon creation in D2W?
  • Previous by thread: Re: Q about ERModernLook and embedded lists
  • Next by thread: Re: How do I initialize an Entity attribute upon creation in D2W?
  • Index(es):
    • Date
    • Thread