Sep 25
Marc Pinnell L9: records_map
Sep 25, 2014; 16:39
Marc Pinnell
L9: records_map
In the mood to question everything today after some issues converting code to L9... so here's my next one. The records_map(-type='array') tag!
Here's how (simplified for this email) I have always handled data retrieved this way (data that I need multiple cols that can be easily referenced and remain in sorted order):
inline(-host=$conx, $base_query_params, -sql=$SQLParams);
$girlsgames = records_map(-type='array');
/inline;
iterate($girlsgames, local('onegame'))
#onegame = #onegame->second
#onegame->find('matchtype') + ' - ' + #onegame->find('season')
/iterate
Data looks like (shortened):
array(
(2014-09-23 14:08:05 = map(matchtype = L, season = 2013)),
(2014-09-22 14:01:52 = map(matchtype = P, season = 2013)),
(2014-04-01 06:25:09 = map(matchtype = P, season = 2013))
)
after Brad and Steve's pushes in the right direction this morning on the file listing issue, I thought it would be cool if I could do it the "new" way:
with onegame in $girlsgames
do {^
#onegame->matchtype + ' - ' + #onegame->season
^}
Not really any shorter, but easier to read. Unfortunately, it just errors out (really need to figure out how to get error messages in my clean url environment).
I was able to get it to work this way - but why bother (it isn't really that different)?
with onegameset in $girlsgames
let onegame = #onegameset->second
do {^
#onegame->find('matchtype') + ' - ' + #onegame->find('season')
^}
Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com
#############################################################
Attend the Lasso Developer Conference 2014!
October 1-3, 2014 at Treefrog HQ, Newmarket, Ontario, Canada
http://www.lassosoft.com/LDC-newmarket-2014
#############################################################
This message is sent to you because you are subscribed to
the mailing list Lasso Lasso@lists.lassosoft.com
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <Lasso-unsubscribe@lists.lassosoft.com>
Send administrative queries to <Lasso-request@lists.lassosoft.com>
Sep 26
Ke Carlton Re: L9: records_map
Sep 26, 2014; 12:26
Ke Carlton
Re: L9: records_map
Sep 25
Jonathan Guthrie Re: L9: records_map
Sep 25, 2014; 20:34
Jonathan Guthrie
Re: L9: records_map
Sep 25
Marc Pinnell Re: L9: records_map
Sep 25, 2014; 17:35
Marc Pinnell
Re: L9: records_map
Sep 25
Marc Pinnell Re: L9: records_map
Sep 25, 2014; 18:35
Marc Pinnell
Re: L9: records_map
Sep 26
Ke Carlton Re: L9: records_map
Sep 26, 2014; 13:57
Ke Carlton
Re: L9: records_map
Sep 26
Ke Carlton Re: L9: records_map
Sep 26, 2014; 13:59
Ke Carlton
Re: L9: records_map
Sep 25
Marc Pinnell Re: L9: records_map
Sep 25, 2014; 21:51
Marc Pinnell
Re: L9: records_map
Sep 26
Ke Carlton Re: L9: records_map
Sep 26, 2014; 19:29
Ke Carlton
Re: L9: records_map
Sep 26
Marc Pinnell Re: L9: records_map
Sep 26, 2014; 12:27
Marc Pinnell
Re: L9: records_map
Sep 26
Jonathan Guthrie Re: L9: records_map
Sep 26, 2014; 15:34
Jonathan Guthrie
Re: L9: records_map
Sep 26
Marc Pinnell Re: L9: records_map
Sep 26, 2014; 13:11
Marc Pinnell
Re: L9: records_map
Sep 26
Steve Piercy - Website Builder Re: L9: records_map
Sep 26, 2014; 13:18
Steve Piercy - Website Builder
Re: L9: records_map
Sep 26
French, Shelane Re: L9: records_map
Sep 26, 2014; 20:29
French, Shelane
Re: L9: records_map
Sep 26
Steve Piercy - Website Builder Re: L9: records_map
Sep 26, 2014; 13:54
Steve Piercy - Website Builder
Re: L9: records_map
Sep 26
Marc Pinnell Re: L9: records_map
Sep 26, 2014; 15:44
Marc Pinnell
Re: L9: records_map
Sep 26
Steve Piercy - Website Builder Re: L9: records_map
Sep 26, 2014; 15:59
Steve Piercy - Website Builder
Re: L9: records_map
Sep 26
Marc Pinnell Re: L9: records_map
Sep 26, 2014; 16:24
Marc Pinnell
Re: L9: records_map
Sep 26
Marc Pinnell Re: L9: records_map
Sep 26, 2014; 16:41
Marc Pinnell
Re: L9: records_map
Sep 26
Steve Piercy - Website Builder Re: L9: records_map
Sep 26, 2014; 17:44
Steve Piercy - Website Builder
Re: L9: records_map
Sep 27
Ke Carlton Re: L9: records_map
Sep 27, 2014; 18:50
Ke Carlton
Re: L9: records_map
Sep 27
Marc Pinnell Re: L9: records_map
Sep 27, 2014; 11:43
Marc Pinnell
Re: L9: records_map
Sep 27
Jolle Carlestam Re: L9: records_map
Sep 27, 2014; 21:02
Jolle Carlestam
Re: L9: records_map
Sep 27
Marc Pinnell Re: L9: records_map
Sep 27, 2014; 18:35
Marc Pinnell
Re: L9: records_map
Sep 29
Marc Pinnell Re: L9: records_map
Sep 29, 2014; 10:13
Marc Pinnell
Re: L9: records_map