• 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: More Embedded D2W Questions...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More Embedded D2W Questions...


  • Subject: Re: More Embedded D2W Questions...
  • From: Ramsey Gurley <email@hidden>
  • Date: Mon, 04 Mar 2013 18:12:28 -0700


On Mar 4, 2013, at 6:02 PM, Johnny Miller wrote:

So I'm not sure how much a hack it is but you can do the following: 

public WOActionResults inspectObject(WOComponent value) {

setSender(value);
WOComponent target = (WOComponent)D2WEmbeddedComponent.findTarget(sender());
WOComponent targetParent = target.parent();
...

Can you create a rule like 

task = 'edit' and entity.name = 'MyEntity' and object != null ?

A rule like that would be an Bad Idea™. You're gonna cache your eo's in the rule system if you do that. If you want to know if an object isn't null, then use object.isNonNull = 1. This assumes you're using ERXGenericRecord or you implement the ERXNonNullObjectInterface.

Ramsey





On Mar 4, 2013, at 12:59 PM, Johnny Miller <email@hidden> wrote:

Hi Ramsey,

Did you look at this yet?

http://wiki.wocommunity.org/display/documentation/D2W+Flow+Control

Do you know if there is a way to communicate to the component that is embedding the D2W components in the branch delegate?

Since I'm using embedding the top level component is responsible for telling the embedded d2w subcomponents things like what is the selected object.


i.e. 

public class MyController extends ERDBranchDelegate {

public WOActionResults addObject(WOComponent sender) {
WOComponent topLevelComponent = ?
MyObject newObject = ....
topLevelComponent.setSelectedObject(newObject);
return null;
}

}

Thanks,

Johnny

Ramsey



Thank you,

Aloha,
Mr. Johnny Miller
Web Development Manager
Kahalawai Media Company
Lahaina, HI 96761
tel: (808) 661-7962 | mobile: (808) 283-0791
website | e-mail
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: More Embedded D2W Questions...
      • From: Johnny Miller <email@hidden>
References: 
 >More Embedded D2W Questions... (From: Johnny Miller <email@hidden>)
 >Re: More Embedded D2W Questions... (From: Ramsey Gurley <email@hidden>)
 >Re: More Embedded D2W Questions... (From: Johnny Miller <email@hidden>)
 >Re: More Embedded D2W Questions... (From: Johnny Miller <email@hidden>)

  • Prev by Date: Re: More Embedded D2W Questions...
  • Next by Date: Re: D2W permissions on a row in a list
  • Previous by thread: Re: More Embedded D2W Questions...
  • Next by thread: Re: More Embedded D2W Questions...
  • Index(es):
    • Date
    • Thread