Anyone know how to remove an item from a map created in simple-method?

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

Anyone know how to remove an item from a map created in simple-method?

Christian Carlow-OFBizzer
Does anyone now how to remove an item from a map created in simple-method?

For example, if I wanted to remove inputMap.quantity after being created
with this statement:
     <set field="inputMap.quantity" value="0 />
Reply | Threaded
Open this post in threaded view
|

Re: Anyone know how to remove an item from a map created in simple-method?

Christian Carlow-OFBizzer
Figured it out:
     <script script="groovy: inputMap.remove('quantity')" />

On 10/29/2013 01:45 PM, Christian Carlow wrote:
> Does anyone now how to remove an item from a map created in
> simple-method?
>
> For example, if I wanted to remove inputMap.quantity after being
> created with this statement:
>     <set field="inputMap.quantity" value="0 />

Reply | Threaded
Open this post in threaded view
|

Re: Anyone know how to remove an item from a map created in simple-method?

Adrian Crum-3
Try

<clear-field field="inputMap.quantity" />

https://cwiki.apache.org/confluence/display/OFBADMIN/Mini-language+Reference

Adrian Crum
Sandglass Software
www.sandglass-software.com

On 10/29/2013 11:51 AM, Christian Carlow wrote:

> Figured it out:
>      <script script="groovy: inputMap.remove('quantity')" />
>
> On 10/29/2013 01:45 PM, Christian Carlow wrote:
>> Does anyone now how to remove an item from a map created in
>> simple-method?
>>
>> For example, if I wanted to remove inputMap.quantity after being
>> created with this statement:
>>     <set field="inputMap.quantity" value="0 />
>