Re: D2W Can I access Object property values from the rule system?
Re: D2W Can I access Object property values from the rule system?
- Subject: Re: D2W Can I access Object property values from the rule system?
- From: David Holt <email@hidden>
- Date: Mon, 28 Nov 2011 14:01:58 -0800
On 2011-11-28, at 1:39 PM, Markus Ruggiero wrote: On 28.11.2011, at 19:52, David Holt wrote: Then when you want to select the Entity you would do something like this (here I have a custom select component in a ListProject configuration) and I return a page with the list of activities that are associated with the selected project. You'll have to figure out where it makes sense for your entity to be selected in your app.
public WOComponent view() { Project selectedProject = (Project) object(); ((Session)session()).setSelectedProject(selectedProject); return (WOComponent) ((Session)session()).navController().listActivities(); }
David,
Thanks a lot for your input. However my problem lies exactly here (your view() action). I have a plain auto generated ListPage and the user clicks on the edit-icon on one of the rows. Would I need a custom property level component for the edit icon so that I could put some code like yours into
you could do this. The view() method above comes from a custom hyperlink in the list page. or is there an other (plain D2W)
You're not using Wonder?? way to accomplish this? How do I intercept the action before the EditPage is created
NextPageDelegate allows you to do some customization before returning the NextPage. Your list page calls this when your Edit button is pressed. I would do it here if you don't want a custom button. but after the user has clicked the selected row? Probably not seeing the forest for the trees anymore. When I am tired I tend to confuse simple things.
In that case you may want to try Ramsey's suggestion before going any further with mine :-)
d
|
_______________________________________________
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