Professional Documents
Culture Documents
txt
;; author : shweta computers
;;
;; objective:- adding filter button to mydaybook
;;======================================================================
[report: mydbktdl]
family: $$translate:"daybook"
;; the attribute family specifies that this report (i.e. mydbktdl)
;; belongs to a family (report) named daybook.
;; daybook is a pre-defined report and here we are specifying that
;; mydbktdl report belongs to the same daybook family.
;; this will affect access to mydbktdl report.
;; now, when we change the access to daybook report using option
;; "gateway of tally -> alt+f3 -> security features".
;; it will automatically affect the report mydbktdl
title: $$localestring:"daybook"
form : my form
[form: my form]
[part: my db title]
;;optional parts
option: my db prnttitle : $$inprintmode
option: my db scrtitle : not $$inprintmode
[!part: my db prnttitle]
[!part: my db scrtitle]
line: my db title
[line: my db title]
field : name field
local : field : name field : set as : $$localestring:"daybook"
[part: my db body]
line: my line
scroll: vertical
common border: yes
repeat : my line: my collection
[line: my line]
left fields: myfld1,myfld2
right fields: myfld3,myfld4
[field: myfld1]
;;type attribute specifies the data-type of the field
type : date
set as : $date
[field: myfld2]
use : name field
set as : $$collectionfield:$ledgername:1:allledgerentries
[field: myfld3]
use : short name field
set as : $vouchertypename
[field: myfld4]
use : amount field
set as : $amount
;;important:-
;;this part is displayed when explodeflag variable is set to yes
;;i.e. when user presses alt+f1 key
[part: myexplodepart]
line : myexplodline
line : myexplodenarrline
;; specify the fields that you wish to display when the part is exploded
[line: myexplodline]
;;amount field
[field: fldexplodeamount]
use : amount field
set as : $amount
style : small italic
width : @@shortwidth
;;collection definition
[collection: my collection]
type: voucher
;; notes:-
;; 1) this program is an extension of program tdl43.txt
;;
;; 2) herein, we have added filter button to the mydaybook report.
;; to filter records, press alt+f12