ofbiz-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Akash Jain <akash.j...@hotwaxmedia.com>
Subject Re: conditional form addition in the screen
Date Thu, 13 May 2010 04:28:00 GMT
Hello Prasanthi,

do correction in your code, inline

prasanthi_ofbiz wrote:
> Hi Atul Vani ,
>         Thaks for your reply. I applied same thing but no use... Check the
> below code 
>
>
>
>
> <screen name="EditFinAccountTrans">
>         <section>
>         	<condition>        		
>         		<if-compare field="finAccountTransId" operator="equals" value="
> "/>
>   
field should be, parameters.finAccountTransId
>         	</condition>        	
>             <actions>
>                 <set field="titleProperty"
> value="PageTitleEditFinAccountTrans"/>
>                 <set field="tabButtonItem" value="EditFinAccountTrans"/>
>                 <set field="finAccountId"
> from-field="parameters.finAccountId"/>
>                 <set field="firstVisit" value=" "/>
>                  <set field="secondVisit" value=" "/>
>                 <entity-one entity-name="FinAccount"
> value-field="finAccount"/>
>                 <set field="finAccountTransId"
> from-field="parameters.finAccountTransId"/>
>             </actions>
>             <widgets>
>                 <decorator-screen name="CommonFinAccountDecorator"
> location="${parameters.finAccountDecoratorLocation}">
>                     <decorator-section name="body">
>                         <screenlet id="FinAccountTransPanel"
> title="${uiLabelMap.PageTitleEditFinAccountTrans} ${uiLabelMap.CommonFor}
> ${finAccount.finAccountName} [${finAccountId}]" collapsible="true">
>                             <include-form name="AddFinAccountTrans"
> location="component://accounting/widget/FinAccountForms.xml"/>
>                         </screenlet>
>                         <include-form name="ListFinAccountTransactions"
> location="component://accounting/widget/FinAccountForms.xml"/>
>                     </decorator-section>
>                 </decorator-screen>
>             </widgets>            
>             <fail-widgets>
>             	<decorator-screen name="CommonFinAccountDecorator"
> location="${parameters.finAccountDecoratorLocation}">
>                     <decorator-section name="body">
>                         <screenlet id="FinAccountTransPanel"
> title="${uiLabelMap.PageTitleEditFinAccountTrans} ${uiLabelMap.CommonFor}
> ${finAccount.finAccountName} [${finAccountId}]" collapsible="true">
>                             <include-form name="AddFinAccountTrans"
> location="component://accounting/widget/FinAccountForms.xml"/>
>                         </screenlet>
>                         <include-form name="ListFinAccountTransactions"
> location="component://accounting/widget/FinAccountForms.xml"/>
>                         <include-form name="CreateAcctgTrans1"
> location="component://accounting/widget/GlForms.xml"/>
>                     </decorator-section>
>                 </decorator-screen>            
>             </fail-widgets>             
>         </section>
>     </screen>
>
>
> Code written in bold is the extra code written by me. Before form submission
> finAccountTransId  value is null, after submitting form its generating
> finAccountTransId value , so before submission CreateAcctgTrans1  form
> should not be included . But in both cases the form is not included. Please
> help me where i did the mistake.
>   

Thanks and Regards
--
Akash Jain

Mime
View raw message