here the one I wrote:<script language="JavaScript" type="text/javascript"> // function passing selected value to calling window
function set_value(value) {
if (!obj_caller) return;
obj_caller.target.value = value;
window.close(); }
</script>
<div class="birthday-party-screenlet">
<div class="boxhead">${uiLabelMap.ProgramsAvailableDates}</div>
</div>
<#if isOpen>
<DIV class="birthday-party-screenlet-body">
<#if availableEventsData?exists>
<#if availableEventsData?has_content>
<div class="birthday-party-basic-table" cellspacing="0">
<table border="0">
<tr>
<div class="birthday-party-basic-form"
cellspacing="0">
<#if days[0]?exists>
<td
class="birthdaypartylabel">${dayinweek[0]} ${days[0]}</td>
</#if>
<#if days[1]?exists>
<td
class="birthdaypartylabel">${dayinweek[1]} ${days[1]}</td>
</#if>
</tr>
<tr>
<td width="16%">
<#list availableEventsData as
AvailableEvents>
<#if days[0]?exists>
<#if (days[0])=
AvailableEvents.lhsEventStartDate>
<a
href="javascript:set_value('${AvailableEvents.productId}')">${AvailableEvents.productName}</a>
${AvailableEvents.lhsEventStartTime}<br />
<form method="post"
action="" class="basic-form"
onSubmit="javascript:submitFormDisableSubmits(this)"
name="listLookupworkshops">
</form>
</#if>
</#if>
</#list>
<td width="16%">
<#list availableEventsData as
AvailableEvents>
<#if days[1]?exists>
<#if (days[1])=
AvailableEvents.lhsEventStartDate>
<a
href="javascript:set_value('${AvailableEvents.productId}')">${AvailableEvents.productName}</a>
${AvailableEvents.lhsEventStartTime}<br />
<form method="post"
action="" class="basic-form"
onSubmit="javascript:submitFormDisableSubmits(this)"
name="listLookupworkshops">
</form>
</#if>
</#if>
</#list>
</tr>
</table>
</div>
<#else>
<div
class='tabletext'>${uiLabelMap.RegistrationNoEventsAvailable}.</div>
</#if>
<#else>
<div
class='tabletext'>${uiLabelMap.RegistrationNoEventsAvailable}.</div>
</#if>
</DIV>
</#if>
Jacques Le Roux wrote:
I'm not sure what you are looking for. I don't think any lookup form is written with Freemarker. But you can use them from there. Look at applications/order/webapp/ordermgr/entry/cart/showcart.ftl line 32 for instanceJacques From: "Jacek Wagner" <[email protected]>All,There are a lot of examples of lookup values implementation in ofbiz. Yet all of the implementation are using two forms called from...LookupScreens... e.g.lookupProductAndPrice --> widget-form listLookupProductAndPrice --> widget-formCan anybody help me to find an example where listLookup... is written in freemarker?Jacek
