You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by consolex <in...@consolex.de> on 2008/11/10 21:39:24 UTC

How to clean formfields using auto-fields-entity ?

When i create the form-fields with auto-fields-entity and i do a submit with
the code below the form-fields arent cleaned after success. Please how to
achieve this?

<auto-fields-entity entity-name="PersonAndPostalAddress"
default-field-type="edit" map-name=""/>
<field name="submitButton" title="Create Person"
widget-style="standardSubmit">
			<submit button-type="button"/>
</field> 
-- 
View this message in context: http://www.nabble.com/How-to-clean-formfields-using--auto-fields-entity---tp20427609p20427609.html
Sent from the OFBiz - User mailing list archive at Nabble.com.


Re: How to clean formfields using auto-fields-entity ?

Posted by Pranay Pandey <pr...@hotwaxmedia.com>.
Starting from the document available at the URL given bellow can be of  
much help in these kind of cases:

http://docs.ofbiz.org/display/OFBIZ/OFBiz+Beginner%27s+Development+Guide+Using+Practice+Application


Thanks & Regards
--
Pranay Pandey
Manager, Enterprise Software Development
HotWax Media Pvt. Ltd.
pranay.pandey@hotwaxmedia.com
www.hotwaxmedia.com

Office : +917314093684
Direct : +919826035576

On Nov 11, 2008, at 3:55 AM, consolex wrote:

>
>
>
> A change in controller.xml did the trick.
>
> Problem:
>
> The form called an event, the request-map of the event redirected to
> "success" and success was pointing to the view. Because the form was  
> located
> in that view it got filled with the parameters.
>
> Solution:
>
> Simply by redirecting success to the request-map of the menu where  
> the form
> is initially shown and type="request-redirect-noparam" the  
> parameters were
> ignored.
>
> <response name="success" type="request-redirect-noparam"
> value="initialrequestmap"/>
>
>
> consolex wrote:
>>
>> When i create the form-fields with auto-fields-entity and i do a  
>> submit
>> with the code below the form-fields arent cleaned after success.  
>> Please
>> how to achieve this?
>>
>> <auto-fields-entity entity-name="PersonAndPostalAddress"
>> default-field-type="edit" map-name=""/>
>> <field name="submitButton" title="Create Person"
>> widget-style="standardSubmit">
>> 			<submit button-type="button"/>
>> </field>
>>
>
> -- 
> View this message in context: http://www.nabble.com/How-to-clean-formfields-using--auto-fields-entity---tp20427609p20429359.html
> Sent from the OFBiz - User mailing list archive at Nabble.com.
>


Re: How to clean formfields using auto-fields-entity ?

Posted by consolex <in...@consolex.de>.


A change in controller.xml did the trick. 

Problem: 

The form called an event, the request-map of the event redirected to
"success" and success was pointing to the view. Because the form was located
in that view it got filled with the parameters.

Solution:

Simply by redirecting success to the request-map of the menu where the form
is initially shown and type="request-redirect-noparam" the parameters were
ignored.

<response name="success" type="request-redirect-noparam"
value="initialrequestmap"/>


consolex wrote:
> 
> When i create the form-fields with auto-fields-entity and i do a submit
> with the code below the form-fields arent cleaned after success. Please
> how to achieve this?
> 
> <auto-fields-entity entity-name="PersonAndPostalAddress"
> default-field-type="edit" map-name=""/>
> <field name="submitButton" title="Create Person"
> widget-style="standardSubmit">
> 			<submit button-type="button"/>
> </field> 
> 

-- 
View this message in context: http://www.nabble.com/How-to-clean-formfields-using--auto-fields-entity---tp20427609p20429359.html
Sent from the OFBiz - User mailing list archive at Nabble.com.