Docs for TMPL_LOOP?

Build and share your cool customized reports built w/ one sql, Chart.js and Lua (
Post Reply
Super MMEX User
Posts: 72
Joined: Thu Dec 11, 2014 8:40 am
Are you a spam bot?: No

Docs for TMPL_LOOP?

Post by sterling »


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.

MMEX Developer
Posts: 205
Joined: Wed Dec 21, 2011 5:58 am
Are you a spam bot?: No
Location: China

Re: Docs for TMPL_LOOP?

Post by guanlisheng »

We use PERL::HTML syntax here and you can take a real case here ... ncySummary

Post Reply