Re: Users - Does FTL pick data from context?
Posted by Ashish Vijaywargiya-2 on Jun 24, 2006; 4:26am
URL: http://ofbiz.116.s1.nabble.com/Users-Does-FTL-pick-data-from-context-tp140097p140098.html
Hi,
You are missing one simple thing in first case :
When you create the context in the bsh file then in case of entity it is a list(In your case customer is the list).
And if you want to fetch the customerName from this list then you should follow these steps :
1) You should iterate this customer list context value through list tag in ftl file :(see below for clarification )
<#list customer as cust>
</#list>
2) And in the above list iterate tag "cust" is the Generic Value (or we can say this shows each row from the entity).Now you can display your customerName from this Generic Value.(See Below for clarification)
<#list customer as cust>
${cust.CustomerName}
</#list>
In your case if you want to display your context value(customer list) on the screen where your form values are displaying then just right this ${customer} in the ftl file.
I hope this would be helpful to you.
Can you explain the second issue in more detail ??(With sample code like the first one)
Thanks & Regards
Ashish Vijaywargiya