Docs for TMPL_LOOP?

GRM Reports Build and share your cool customized reports built w/ SQL, JS and Lua

Moderator: Renato

sterling
Super User
Posts: 72
Joined: Thu Dec 11, 2014 8:40 am
Are you a spam bot?: No

Docs for TMPL_LOOP?

Post by sterling »

Hi,

I'm having trouble using TMPL_LOOP how i'd like.  Is there any documentation on how to use it in General Reports?

I've got my data into the table how i need it fine, but i cant get the data into the graph how i'd like it.  I've used sample reports but they dont seem to use them much or the reports dont work on my accounts (such as 0 trend).

I thought something like
result:set("LABEL", label) in luas function complete(result) would populate an array of labels for HTML to pick up, but i cant get this to work.

It seems the only data i can get into a graph through something like <TMPL_VAR PROFIT> is if the table has a column called PROFIT.
guangong
Developer
Posts: 654
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No

Re: Docs for TMPL_LOOP?

Post by guangong »

We use PERL::HTML syntax here and you can take a real case here https://github.com/moneymanagerex/gener ... ncySummary
Lisheng Guan,
Developer of MoneyManagerEX (http://moneymanagerex.org)