SQL-Ledger Homepage

SQL-Ledger User Forum

Forum index page

Log in | Register

Back to the forum
Board view  Mix view

Pre-fill form boxes (General)

posted by JayArr(R), Mission BC Canada, 24.10.2014, 14:56

Hi

I want to pre-fill the 'From" and 'To" boxes of the "Compare To" section of my Income Statement form.

I want to always have the YTD totals in the second column every time I run a monthly Income statement. At least by default.

I'm tired of typing in 01-01-2014 and 31-12-2014 every single time I run this report!

So I've got rp.pl open and I've been able to set other defaults in the past like having the Month radio button checked by default but I'm not sure about the syntax of pre-filling a box.

I've found a line that says "input name=comparefromdate size=11 class=date..."

Can I pre-define this at the beginning of the file so that '01-01-2014' or preferrably '01-01-$currentyear' is pre-filled into the box but I am able to overwrite it?

I'm a fair programmer but not very experienced with perl.

Jeff

 

Complete thread:

Back to the forum
Board view  Mix view
986 Postings in 325 Threads, 327 registered users, 87 users online (0 registered, 87 guests)
SQL-Ledger User Forum | Admin contact
RSS-Feed
powered by my little forum