see the error
null&&aggregatedPartyAcctgPreference.get
still have to look up the screen.
=========================
BJ Freeman <http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation
<http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com <http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist
Chat Y! messenger: bjfr33man
Scott Gray sent the following on 9/12/2010 3:56 PM:
There is something wrong with a groovy script in the PartyAcctgPreference form,
fix it and the problem will go away.
The bug in the artifact info screen is that is should catch the thrown
exception and continue processing as normal.
Regards
Scott
HotWax Media
http://www.hotwaxmedia.com
On 13/09/2010, at 3:51 AM, BJ Freeman wrote:
hopefully David or Scott will look at this.
since it is not a high priority don't expect it to get fixed soon.
=========================
BJ Freeman<http://bjfreeman.elance.com>
Strategic Power Office with Supplier
Automation<http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com<http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist
Chat Y! messenger: bjfr33man
Bruno Busco sent the following on 9/12/2010 7:50 AM:
It seems that the ArtifactInfo screen fails while scanning an artifact that
contains ${groovy: ...}
I got the error while scanning this:
<form name="PartyAcctgPreference" type="single"
target="createPartyAcctgPreference"
default-map-name="aggregatedPartyAcctgPreference"
header-row-style="header-row" default-table-style="basic-table">
<actions>
..........
<field name="fiscalYearStartMonth"
use-when="partyAcctgPreference==null"
tooltip="${groovy: import org.ofbiz.base.util.UtilProperties;
if(aggregatedPartyAcctgPreference!=
null&&aggregatedPartyAcctgPreference.get('fiscalYearStartMonth')!=null)return
(UtilProperties.getMessage('AccountingUiLabels', 'AccountingInheritedValue',
locale))}">
<drop-down>
<option key="1"
description="${uiLabelMap.AccountingFiscalMonth01}"/>
<option key="2"
description="${uiLabelMap.AccountingFiscalMonth02}"/>
..........
2010/9/10 BJ Freeman<[email protected]>
trunk demo rev 993407
screen error
org.ofbiz.widget.screen.ScreenRenderException: Error rendering screen
[component://webtools/widget/ArtifactInfoScreens.xml#ArtifactInfo]:
org.ofbiz.base.util.GeneralException: Error running Groovy script at
location
[component://webtools/webapp/webtools/WEB-INF/actions/artifactinfo/ArtifactInfo.groovy]
(org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed:
script12840697077411507847535.groovy: 1: Expression list of the form (a; b;
c) is not supported in this context. at line: 1 column: 272. File:
script12840697077411507847535.groovy @ line 1, column 272.
log error
2010-09-09 14:49:55,453 (TP-Processor8) [ ModelForm.java:214:ERROR] ----
runtime exception report --------------------------------------------------
Error parsing form [PartyAcctgPreference]:
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed: script12840689954471507847535.groovy: 1: Expression list of the form
(a; b; c) is not supported in this context. at line: 1 column: 272. File:
script12840689954471507847535.groovy @ line 1, column 272. ll)return
(UtilPrope ^ 1 error Exception:
org.codehaus.groovy.control.MultipleCompilationErrorsException Message:
startup failed: script12840689954471507847535.groovy: 1: Expression list of
the form (a; b; c) is not supported in this context. at line: 1 column: 272.
File: script12840689954471507847535.groovy @ line 1, column 272. ll)return
(UtilPrope ^ 1 error ---- stack trace
---------------------------------------------------------------
org.codehaus.groovy.control.MultipleCompilationErrorsException: startup
failed: script12840689954471507847535.groovy: 1: Expression list of the form
(a; b; c) is not supported in this context. at line: 1 column: 272. File:
script12840689954471507847535.groovy @ line 1, column 272. ll)return
(UtilPrope ^ 1 error
org.codehaus.groovy.control.ErrorCollector.failIfErrors(ErrorCollector.java:296)
org.codehaus.groovy.control.CompilationUnit.applyToSourceUnits(CompilationUnit.java:829)
org.codehaus.groovy.control.CompilationUnit.doPhaseOperation(CompilationUnit.java:511)
org.codehaus.groovy.control.CompilationUnit.processPhaseOperations(CompilationUnit.java:487)
org.codehaus.groovy.control.CompilationUnit.compile(CompilationUnit.java:464)
g
=========================
BJ Freeman<http://bjfreeman.elance.com>
Strategic Power Office with Supplier Automation<
http://www.businessesnetwork.com/automation/viewforum.php?f=52>
Specialtymarket.com<http://www.specialtymarket.com/>
Systems Integrator-- Glad to Assist
Chat Y! messenger: bjfr33man