• 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
creating new object D2W
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

creating new object D2W


  • Subject: creating new object D2W
  • From: Theodore Petrosky <email@hidden>
  • Date: Thu, 29 Mar 2012 13:48:25 -0700 (PDT)

I am creating an new object page with this.

public EditPageInterface createBriefAction() {

    EditPageInterface component = D2W.factory().editPageForNewObjectWithConfigurationNamed("CreateBrief", session());
    component.setNextPage(session().context().page());

    if(component instanceof D2WPage) {
        D2WPage page = (D2WPage)component;
        page.d2wContext().takeValueForKey("Brief.CreateBrief", "navigationState");
    }
    return component;
}

I want to pass in a date to the object. is this the 'correct' or mostest correct way:

((D2WComponent) component).object().takeValueForKey( (new NSTimestamp()), "creationDate");

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


  • Prev by Date: Re: Problem with ERAttachmentMigration
  • Next by Date: Re: checkBox clickable from a Rule
  • Previous by thread: Re: Git Help
  • Next by thread: Re: creating new object D2W
  • Index(es):
    • Date
    • Thread