Getting Company Info

toootooo Member Posts: 138
Trying to get the company info onto a report. I've created a variable and trying to call in into the report with =<Company.Address> only issue im having is how to call it fromn OnInitReport() trigger!?

Answers

  • rajpatelbcarajpatelbca Member Posts: 178
    you have created a record variable of company information then you have to set the pointer by using GET or Find method.

    i think u have fergot to add this sentences at oninit report

    Companyinfo.GET()

    hope it will help u.
    Experience Makes Man Perfect....
    Rajesh Patel
  • BeliasBelias Member Posts: 2,998
    do a
    company.get;
    
    in the oninitreport() trigger. i bet you're using Company table as a dataitem...in this case, if you want the address field e.g. to be used in onaftergetrecord() trigger of company dataitem, you don't need the above instruction because nav is actually reading the record (which should be the first and the only record in the company table).

    in oninitreport() trigger, you haven't read the company table yet, so you must "get" it
    Hope it's clear...
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • toootooo Member Posts: 138
    I have 'Company' set as a record varibale and i have 'company.get;' in the oninitreport() trigger, keep getting this error:
    TableData 0 does not exist.
    Any help apprieciated!
  • BeliasBelias Member Posts: 2,998
    i hope you set the subtype of the record variable = company :wink:
    -Mirko-
    "Never memorize what you can easily find in a book".....Or Mibuso
    My Blog
  • toootooo Member Posts: 138
    Belias wrote:
    i hope you set the subtype of the record variable = company :wink:
    Thanks for that, working fine now! :D
Sign In or Register to comment.