Vous êtes sur la page 1sur 2

;; product: tdl39.

txt
;; product-id: de535cfa-1r7f-3h7a-31h3-a5r55a984e6e
;; author: shweta computers

;;objective:-
;;accessing fields of company object
;;======================================================================

;;add a new menu-item to the gateway of tally


[#menu: gateway of tally]

;;the action used here is display


item: example 39: display: my report

[report: my report]
form : my form

[form: my form]
part: my part

[part: my part]
line: my line1,my line2

;;shows border
common border: yes

[line: my line1]
left fields: short prompt,myfld1
local: field: short prompt : set as : "company number"

[line: my line2]
left fields: short prompt,myfld2
local: field: short prompt : set as : "owner name"

[field: myfld1]
use : short name field
set as : $companynumber:company:##svcurrentcompany

[field: myfld2]
use : short name field
set as : $ownername:company:##svcurrentcompany

;; notes:
;;
;; 1) accessing fields of company object
;; syntax:-
;; <fieldname> : company : <company name>
;;
;; example:-
;; $booksfrom : company : ##svcurrentcompany
;;
;; explanation:
;; a) $booksfrom is a field of object company. it is also called internal
method
;; b) the 2nd parameter is the company object
;; c) the 3rd parameter is the company name (##svcurrentcompany) whose field
;; value is to be retrieved.
;;
;; 2) short prompt is a pre-defined field. herein, we are using local attribute
;; to modify the definition of the field short prompt which is effective only
;; in this report.

Vous aimerez peut-être aussi