Hi Gaurav,

check your main-decorator and if not there then screen for this
<set field="layoutSettings.companyName" from-field="..."/>

you might wanna use a uiLabel for the from-field value.
   <property key="CompanyName">
       <value xml:lang="en">My Company</value>
   </property>


I always wondered why don't we have
${layoutSettings.companyName}
replaced by
${layoutSettings.companyName?if_exists}
in all themes.

--
Thanks & Regards
Atul Vani
Enterprise Software Developer
HotWax Media Pvt. Ltd.
http://www.hotwaxmedia.com/
We are the Global Leaders in Apache OFBiz, Google 'ofbiz' and see for yourself.


kaliagaurav wrote:
Hi Scott

Thanks for the explanation. As you have suggested I have added the store in
that form and I have restated the application again but I am still getting
error and this time I am getting two exceptions.
First one is:

Expression layoutSettings.companyName is undefined on line 29, column 14 in
component://bluelight/includes/header.ftl.
The problematic instruction:
----------
==> ${layoutSettings.companyName} [on line 29, column 12 in
component://bluelight/includes/header.ftl]
----------


And a part of second one is below:

Caused by: org.ofbiz.base.util.GeneralException: Error running Groovy script
at location
[component://order/webapp/ordermgr/WEB-INF/actions/entry/catalog/ProductSummary.groovy]
(The following required parameter is missing:
[getInventoryAvailableByFacility.facilityId])
        at
org.ofbiz.widget.screen.ModelScreenAction$Script.runAction(ModelScreenAction.java:410)
        at
org.ofbiz.widget.screen.ModelScreenAction.runSubActions(ModelScreenAction.java:118)
        at
org.ofbiz.widget.screen.ModelScreenWidget$Section.renderWidgetString(ModelScreenWidget.java:220)
        at
org.ofbiz.widget.screen.ModelScreen.renderScreenString(ModelScreen.java:393)
        ... 92 more
Caused by: org.ofbiz.service.ServiceValidationException: The following
required parameter is missing: [getInventoryAvailableByFacility.facilityId]
        at org.ofbiz.service.ModelService.validate(ModelService.java:522)
        at 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:372)
        at 
org.ofbiz.service.ServiceDispatcher.runSync(ServiceDispatcher.java:219)
        at 
org.ofbiz.service.GenericDispatcher.runSync(GenericDispatcher.java:159)
        at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
        at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
        at java.lang.reflect.Method.invoke(Method.java:585)
        at 
org.codehaus.groovy.reflection.CachedMethod.invoke(CachedMethod.java:86)
        at groovy.lang.MetaMethod.doMethodInvoke(MetaMethod.java:230)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:912)
        at groovy.lang.MetaClassImpl.invokeMethod(MetaClassImpl.java:756)
        at
org.codehaus.groovy.runtime.InvokerHelper.invokePojoMethod(InvokerHelper.java:766)
        at
org.codehaus.groovy.runtime.InvokerHelper.invokeMethod(InvokerHelper.java:754)
        at
org.codehaus.groovy.runtime.ScriptBytecodeAdapter.invokeMethodN(ScriptBytecodeAdapter.java:170)
        at ProductSummary.run(ProductSummary.groovy:60)
        at 
org.ofbiz.base.util.GroovyUtil.runScriptAtLocation(GroovyUtil.java:117)
        at org.ofbiz.widget.sc

"getInventoryAvailableByFacility.facilityId" This is missing  so i tried
creating a facility and linked it with the party ID but no luck.

How can I configure facility if its really necessary.

Please suggest

Regards
Gaurav

Reply via email to