Nevermind...
the key is displayPropertyKeys
On Mar 4, 2013, at 6:19 PM, Johnny Miller < email@hidden> wrote: With embedded components you can pass in the displayKeys as a binding. Can you also specify it with rules and what would be the key in the rules system?
On Mar 4, 2013, at 3:47 PM, Johnny Miller < email@hidden> wrote: Cool. Thank you.
On Mar 4, 2013, at 3:12 PM, Ramsey Gurley < email@hidden> wrote: 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?
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
|