how to pass text field value

Previous Topic Next Topic
 
classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

how to pass text field value

           
      <#assign numberOfEsns = numberOfEsns + 1 />
    </#list>

Pal Infocom Technologies-2
I have Created text fields in ftl file with following loop
i want to pass value of these fields named id0,id! etc and esn0,esn1
to java service
as <attribute> tag cannot be used because i don't know how many fields will this loop create?
 plz provide help
<#list listOfInventoryItems as item>
   
     
       
       
<input type="text"  name="esn${numberOfEsns}"  /><div class="tabletext"><input type="hidden" name="id${numberOfEsns}" value="${item.inventoryItemId}"/></div</td>
       
       
   
Reply | Threaded
Open this post in threaded view
|

Re: how to pass text field value

Jacopo Cappellato
Amit,

as already suggested by Scott Gray, you should search for an example of
service-multi (search in the controller.xml files)... in the OFBiz
applications you'll find many of them.

Jacopo

amit charaya wrote:

> I have Created text fields in ftl file with following loop
> i want to pass value of these fields named id0,id! etc and esn0,esn1
> to java service
> as <attribute> tag cannot be used because i don't know how many fields will
> this loop create?
>  plz provide help
> <#list listOfInventoryItems as item>
>    
>      
>        
>         <td><input type="text"  name="esn${numberOfEsns}"  /></td>
>         <td><div class="tabletext"><input type="hidden"
> name="id${numberOfEsns}" value="${item.inventoryItemId}"/></div</td>
>        
>        
>     </tr>
>    
>       <#assign numberOfEsns = numberOfEsns + 1 />
>     </#list>
>
>