How to clean formfields using auto-fields-entity ?

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

How to clean formfields using auto-fields-entity ?

consolex
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> 
Reply | Threaded
Open this post in threaded view
|

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

consolex


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> 
Reply | Threaded
Open this post in threaded view
|

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

Pranay Pandey-2
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.
[hidden email]
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.
>