Re: Actions from D2W pages
Re: Actions from D2W pages
- Subject: Re: Actions from D2W pages
- From: Ramsey Lee Gurley <email@hidden>
- Date: Mon, 26 Oct 2009 08:26:42 -0400
On Oct 26, 2009, at 7:53 AM, Mark Wardle wrote:
Hi all,
Would be grateful for advice regarding invoking actions from D2W
pages, specifically, List and Inspect pages.
I don't know if this is exactly what you want, but you might want to
check out ERXComponentActionRedirector.
I'd like to invoke a directaction from a D2W list page. I don't wish
to have a separate button with a drop-down menu, but instead make a
property a hyperlink. I've spotted D2WHyperlink but that doesn't seem
to have direct action bindings.
Still no DA, but D2WDisplayToOneFault perhaps? That will give you a
hyperlink to the page with your inspected object. Combined with
EXComponentActionRedirector...
I am aware of ERDBranchDelegate and specifically, found the tutorial
on http://wiki.objectstyle.org/confluence/display/WO/D2W+Flow+Control
particularly useful.
However, that is a bit heavyweight for what I would like.
I assumed there would be a component ERD2WDisplayDirectActionHyperlink
with bindings such as directAction and actionClass settable via
D2WContext, but there isn't! Normally that means there is a better way
and I'm missing something obvious?
task = 'list' and entity.name = 'Patient' => componentName =
"ERD2WDisplayHyperlink"
task = 'list' and entity.name = 'Patient' => directAction =
"showPatient"
task = 'list' and entity.name = 'Patient' => actionClass =
"Patients"
you should probably also include at least propertyType = 'r' and
smartRelationship.isToMany = '0' or else every property level
component on your list page is going to try to use your custom
component.
Of course, not clear to me how one would then pass parameters
either....
How does one turn a property into a hyperlink (be it a component
action or directaction) from d2w? All help gratefully appreciated!
Many thanks,
Mark
--
Dr. Mark Wardle
Specialist registrar, Neurology
Cardiff, UK
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Webobjects-dev mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
@mac.com
This email sent to email@hidden
Attachment:
smime.p7s
Description: S/MIME cryptographic signature
_______________________________________________
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