ofbiz-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From BJ Freeman <bjf...@free-man.net>
Subject Re: Proposal for adding an alternate-target element to the form's widget submit element
Date Wed, 01 Jul 2009 00:47:47 GMT
how about making A content that can be used to list the type of exports.
this would open the exports based on dataresources.
Just a thought.

Jacopo Cappellato sent the following on 6/30/2009 2:54 PM:
> I would like to make it easier to get different type of exports (pdf,
> csv etc...) for the same search form widget. Right now we can add
> 'export' links to the screen, but it is tricky to keep the search
> parameters when you click on them.
> 
> What about adding an "alternate-target" attribute to the "submit"
> element? This will be used to specify an alternate target for the form
> (behind the lines it will use Javascript to change the form's target)
> For example:
> 
>  <form name="FindOrders" type="single" target="SearchOrdersScreen">
>     ... (search parameters)
>     <field name="submitButton" title="Search"><submit
> button-type="button"/></field>
>     <field name="submitButtonPdf" title="Export (PDF)"><submit
> button-type="button" alt-target="SearchOrdersScreenPdf"/></field>
>     <field name="submitButtonCsv" title="Export (CSV)"><submit
> button-type="button" alt-target="SearchOrdersScreenCsv/></field>
> </form>
> 
> It will render three buttons, one for the standard html screen, one for
> PDF version and one for csv exports.
> 
> What do you think?
> 
> Jacopo

-- 
BJ Freeman
http://www.businessesnetwork.com/automation
http://bjfreeman.elance.com
http://www.linkedin.com/profile?viewProfile=&key=1237480&locale=en_US&trk=tab_pro
Systems Integrator.


Mime
View raw message