• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Repetition and OnClick of TR
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Repetition and OnClick of TR


  • Subject: Repetition and OnClick of TR
  • From: Dave Elsner <email@hidden>
  • Date: Thu, 12 Jan 2006 12:59:06 +1100

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.


-------
Dave
 _______________________________________________
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

  • Follow-Ups:
    • Re: Repetition and OnClick of TR
      • From: Alex Johnson <email@hidden>
  • Prev by Date: Re: Accessing a string from a display group.
  • Next by Date: WOPopupButton
  • Previous by thread: Re: Accessing a string from a display group.
  • Next by thread: Re: Repetition and OnClick of TR
  • Index(es):
    • Date
    • Thread