Ok, I see to implement <call-parent-actions/>
thanks adrian
Le 22/02/2012 11:21, Adrian Crum a écrit :
We discussed this a while ago and came to an agreement on how to
implement it, but it was never implemented.
-Adrian
On 2/22/2012 10:19 AM, Nicolas Malin wrote:
Hello
on widget form at this time the actions on parents form has been not
execute if child form contains also an actions
Example :
<form name="ListInvoices" type="list" ..>
<actions>
<set field="parameters.sortField" from-field="parameters.sortField"
default-value="-invoiceDate"/>
<service service-name="performFind" result-map="result"
result-map-list="listIt">
<field-map field-name="inputFields" from-field="parameters"/>
<field-map field-name="entityName" value="InvoiceAndType"/>
<field-map field-name="orderBy" from-field="parameters.sortField"/>
<field-map field-name="viewIndex" from-field="viewIndex"/>
<field-map field-name="viewSize" from-field="viewSize"/>
</service>
</actions>
...
</form>
<form name="ListCustomerInvoices" extends="ListInvoices">
<actions>
<set field="parameters.partyIdTo" from-field="parameters.partyId"
default-value="-invoiceId"/>
</actions>
...
</form>
The ListCustomerInvoices lost the performFind search. To correct, i
need copy paste all element parent action element.
We have two possibility to improve the screen widget :
First with a tag on actions:
<form name="ListCustomerInvoices" extends="ListInvoices">
<actions extends-method="child-first">
<set field="parameters.partyIdTo" from-field="parameters.partyId"
default-value="-invoiceId"/>
</actions>
...
</form>
With tag value for extends :
*
override (default)
*
child-first
*
parent-first
Second solution :
Add a new element on actions to call parent actions
<form name="ListCustomerInvoices" extends="ListInvoices">
<actions>
<set field="parameters.partyIdTo" from-field="parameters.partyId"
default-value="-invoiceId"/>
<run-parent-actions/>
...
</actions>
...
</form>
Any suggest on it ?
Nicolas
--
Nicolas MALIN
Consultant
Tél : 06.17.66.40.06
Site projet : http://www.neogia.org/
-------
Société LibrenBerry
Tél : 02.48.02.56.12
Site : http://www.librenberry.net/