ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <Markus....@t-systems.com>
Subject AW: Fill drop-down list from java service
Date Mon, 16 Feb 2015 21:54:28 GMT
I tried your suggestion, but the drop-down field is still empty. 

The content of myResultMap looks like this:

{responseMessage=success, myResultMap={myListName=[[GenericEntity:myEntityName][myKeyName,key1(java.lang.String)][myValue,value1(java.lang.String)],

<form name="myFormName" type="single">
       		 <service service-name="myJavaService" result-map="myResultMap">
	<field name="myfield" title="myFieldTitle"
		<drop-down allow-empty="true" current-description="myDescription">
			<list-options list-name=" myResultMap.myListName" key-name="myKeyName" description="myValue"/>

I guess myResultMap doesn't fit to the expected structure of a <list-options ..> element.

-----Ursprüngliche Nachricht-----
Von: Nicolas Malin [mailto:nicolas.malin@nereide.fr] 
Gesendet: Montag, 16. Februar 2015 19:10
An: user@ofbiz.apache.org
Betreff: Re: Fill drop-down list from java service

Le 16/02/2015 18:47, Markus.Rau@t-systems.com a écrit :
> <list-options list-name="myListName" key-name="myKeyName" description="myValue"/>
try this

<list-options list-name="myResultMap.myListName" key-name="myKeyName" description="myValue"/>

View raw message