Re: dynamic reference
Daniel Dekany <[email protected]>
| Newsgroups | gmane.comp.web.freemarker.user |
|---|---|
| Message-ID | <[email protected]> |
Monday, May 18, 2009, 1:40:46 PM, a.reiter wrote: > Hello everybody > I'm new to Freemarker, but already impressed of the features and performance > > now I have a simple question: > > in my model there two variables: > > foo="bar" > bar="what ever" > > the problem is, that the model is dynamically, so my template does > not know, that there is a variable "bar", only "foo" variable is well known. > > so how can i get the contant of the unknown "bar" variable? is it possibla at all? Do the foo variable hold the variable name of the unknown variable? Then: .data_model[foo] > best regards > andre -- Best regards, Daniel Dekany ------------------------------------------------------------------------------ Crystal Reports - New Free Runtime and 30 Day Trial Check out the new simplified licensing option that enables unlimited royalty-free distribution of the report engine for externally facing server and web deployment. http://p.sf.net/sfu/businessobjects