Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
iterate records
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  2 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
pablo  
View profile  
 More options Jul 4 2011, 7:50 am
From: pablo <pablo.pl...@gmail.com>
Date: Mon, 4 Jul 2011 04:50:22 -0700 (PDT)
Local: Mon, Jul 4 2011 7:50 am
Subject: iterate records
Hi

I want to iterate over a list of records with a for loop.
A nice feature could be to use exprecs to create a callback module for
a record.
https://github.com/esl/parse_trans/blob/master/doc/exprecs.md
erlydtl will get the record name from the first element of the tuple
and use a module with the same name to get attributes.
myrecord:'#get-'(Attr, Rec)

Another interesting feature is to define a field value that will allow
to dynamically load children of a record.
For example, the following will load children of group_product with id
15:
{group_product, {"my-group-product", 15, 100, {#load, children, 15}}

Can I make the existing 'for' tag work with records or do I need to
create a custom tag?
Are there docs on how to write custom tags?

Thanks


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Evan Miller  
View profile  
 More options Jan 19, 7:52 pm
From: Evan Miller <emmil...@gmail.com>
Date: Sat, 19 Jan 2013 18:52:54 -0600
Local: Sat, Jan 19 2013 7:52 pm
Subject: Re: iterate records

Eons later...

Records are not supported. I like your ideas here. For now you'll need to
create a custom tag -- check out the README if you're still interested.

--
Evan Miller
http://www.evanmiller.org/

 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »