Actions from D2W pages
Actions from D2W pages
- Subject: Actions from D2W pages
- From: Mark Wardle <email@hidden>
- Date: Mon, 26 Oct 2009 11:53:13 +0000
Hi all,
Would be grateful for advice regarding invoking actions from D2W
pages, specifically, List and Inspect pages.
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.
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"
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:
This email sent to email@hidden