Form variables in a Report

Questions and answers for designing and implementing forms in Servoy

Form variables in a Report

Postby caroline.j » Thu Apr 19, 2012 3:42 pm

I hope this is just me missing something simple.

I have a basic form report which displays a number of fields concatenated together and stored in a form variable - however when I display more than one record on a page the variables are not updating! Where do I need to put the method so that it is run??

Many thanks in anticipation.
Caroline
caroline.j
 
Posts: 81
Joined: Wed Feb 08, 2012 9:25 pm

Re: Form variables in a Report

Postby Thomas Parry » Thu Apr 19, 2012 3:56 pm

onRecordSelect ?
Tom Parry
Prospect IT
Java/C++/Servoy/Jasper Reports/Simulation/Service Applications
http://www.prospect-saas.biz
Thomas Parry
 
Posts: 498
Joined: Thu Jan 10, 2008 8:48 pm
Location: Ottawa, Canada

Re: Form variables in a Report

Postby caroline.j » Thu Apr 19, 2012 4:00 pm

That is where I had it but it doesn't appear to run the routine more than once?
caroline.j
 
Posts: 81
Joined: Wed Feb 08, 2012 9:25 pm

Re: Form variables in a Report

Postby Joas » Wed Apr 25, 2012 11:23 am

A form variable is unique for the form, not for the record.
In your case it is better to use a calculation, that is unique for each record and is calculated automatically when shown.
Joas de Haan
Yield Software Development
Need help on your project? yieldsd.com
User avatar
Joas
Site Admin
 
Posts: 842
Joined: Mon Mar 20, 2006 4:07 pm
Location: Leusden, NL

Re: Form variables in a Report

Postby caroline.j » Wed Apr 25, 2012 4:32 pm

Thanks for that Joas.
Just out of interest is there much overhead to the table if you have many calculated fields?
caroline.j
 
Posts: 81
Joined: Wed Feb 08, 2012 9:25 pm


Return to Forms

Who is online

Users browsing this forum: No registered users and 13 guests