On Record Selection Event

Questions, tips and tricks and techniques for scripting in Servoy

On Record Selection Event

Postby akaash » Thu Feb 21, 2013 9:09 pm

Hi all,

I wrote a function that I know is working because it get's loaded by the onLoad event. Any ideas on how I get the same function to be triggered when I toggle between my records?

Thanks,
akaash
 
Posts: 30
Joined: Fri Jan 25, 2013 4:58 pm
Location: Montréal

Re: On Record Selection Event

Postby patrick » Thu Feb 21, 2013 11:26 pm

attach it to the onRecordSelection event of the form?
Patrick Ruhsert
Servoy DACH
patrick
 
Posts: 3703
Joined: Wed Jun 11, 2003 10:33 am
Location: Munich, Germany

Re: On Record Selection Event

Postby akaash » Fri Feb 22, 2013 12:08 am

Hi Patrick,

Yeah that's what I did, but it didn't work until I called the function in the script editor... When I put the function in the form and wrote the piece of code:

function onRecordSelection(event) {
myfunction();
}

it worked. Seems very strange...
akaash
 
Posts: 30
Joined: Fri Jan 25, 2013 4:58 pm
Location: Montréal


Return to Methods

Who is online

Users browsing this forum: No registered users and 8 guests