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) Homepage, Mission BC Canada, 24.10.2014, 14:56


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.



Complete thread:

Back to the forum
Board view  Mix view
1007 Postings in 335 Threads, 363 registered users, 98 users online (0 registered, 98 guests)
SQL-Ledger User Forum | Admin contact
powered by my little forum