On 2013-03-04, at 5:34 PM, Jesse Tayler <jtay...@oeinc.com> wrote: > > we should just have a tips and tricks page for the modern look and d2w
http://wiki.wocommunity.org/display/documentation/D2W+Rules+Reference+-+Cookbook+-+FAQ > > > > > On Mar 4, 2013, at 8:02 PM, Johnny Miller <jlmil...@kahalawai.com> 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 ? >> >> >> >> >> >> On Mar 4, 2013, at 12:59 PM, Johnny Miller <jlmil...@kahalawai.com> 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 (Webobjects-dev@lists.apple.com) >>>>> Help/Unsubscribe/Update your Subscription: >>>>> https://lists.apple.com/mailman/options/webobjects-dev/ramseygurley%40gmail.com >>>>> >>>>> This email sent to ramseygur...@gmail.com >>>> >>> >> >> _______________________________________________ >> Do not post admin requests to the list. They will be ignored. >> Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) >> Help/Unsubscribe/Update your Subscription: >> https://lists.apple.com/mailman/options/webobjects-dev/jtayler%40oeinc.com >> >> This email sent to jtay...@oeinc.com > > _______________________________________________ > Do not post admin requests to the list. They will be ignored. > Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) > Help/Unsubscribe/Update your Subscription: > https://lists.apple.com/mailman/options/webobjects-dev/programmingosx%40mac.com > > This email sent to programming...@mac.com
_______________________________________________ Do not post admin requests to the list. They will be ignored. Webobjects-dev mailing list (Webobjects-dev@lists.apple.com) Help/Unsubscribe/Update your Subscription: https://lists.apple.com/mailman/options/webobjects-dev/archive%40mail-archive.com This email sent to arch...@mail-archive.com