Hi,
Does any one have an easy solution to place a _javascript_ onClick of a table row thats in a WORepeition
the Action i need to call is:
public WOComponent editLink() { editFlag = true; myDisplayGroup.selectObject(aItem); return this.context().page(); }
I tried adding:
public String onClickLocation() { return "document.location='<WEBOBJECT NAME=WOActionURL1></WEBOBJECT>';"; }
WOActionURL1: WOActionURL { action = ""> }
and setting onClick to that but that doesn't replace WOActionURL1 with the real url. I also tried adding a _javascript_ function using the WOActionURL1 which calls editLink() okay but it then has no idea of where the current repeition is up to and I get aItem = null;
I have got it to work using a DA but would like a more light weight solution that can be easily reused.
|