(OFBIZ-9192)
Jacopo reported an issue on dev ML on the Party view profile
The InvoiceItemProductAndParty view use a partyName from the Party
entity, but there is no partyName in the Party.
I simply commented out this line in the view definition.
PartyNameView could be used later there.
I also fixed partyName in BirtMasterReportServices class,
formatted it and used Debug.logError instead of printStackTrace()
Thanks: Jacopo for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790499 13f79535-47bb-0310-9956-ffa450edef68
(LEGAL-296)
This has been discussed in the OFBiz project and we preferred to ask legal
before taking a definitive decision.
We read at http://www.apache.org/legal/resolved.html#category-b
For small amounts of source that is directly consumed by the ASF product at
runtime in source form, and for which that source is unmodified and unlikely
to be changed anyway (say, by virtue of being specified by a standard),
inclusion of appropriately labeled source is also permitted. An example of
this is the web-facesconfig_1_0.dtd, whose inclusion is mandated by the JSR
127: JavaServer Faces specification
The question was:
Can the files under folders birt/webapp/birt/webcontent/birt, all licensed
under https://www.eclipse.org/legal/epl-v10.html be included in source form,
without modifications, in an Apache (source) release? It's 160 files and
541 523 bytes at all.
Thanks: Marvin Humphrey for legal advice (the answer is NO)
So this removes the birt/webcontent folder. The related page in wiki has also
been removed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1790442 13f79535-47bb-0310-9956-ffa450edef68
possibly refactor code (not only Java, but mostly) in the ebaystore component"
Also to test WIP for OFBIZ-9275 "Add a Gradle task to svn update all plugins"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789750 13f79535-47bb-0310-9956-ffa450edef68
<<No functional changes.
Fixes some unchecked casts by using UtilMisc.toMap
Adds some @SuppressWarnings("unchecked")
Adds few @SuppressWarnings("unused")
Cleans imports
Completes and fixes Javadoc in BirtUtil class>>
Er, of course you can't fix unchecked casts by using UtilMisc.toMap, I intended
to use UtilGenerics.checkMap and got mislead by Eclipse which also hides
unchecked casts warnings when you use UtilMisc.toMap
Then all derailed and I put some @SuppressWarnings("unchecked") to hide warning
on List unchecked casts :/
The rest was correct but a
private GenericValue userLogin;
in ReportDesignGenerator which is really useless
There are still no functional changes but some amended comments (French)
and added TODO
I note that the translated TODO needs a re-visit, smell like factoring is needed
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789381 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9192)
It was a long time I did not revisit this issue. I no longer stumbled upon
issues I reported before in the Jira but found that 2 entities were missing.
I was an easy fix: the ServiceReportsView.xml was missing
Thanks: To Nicolas who in the meantime certainly committed fixes for the other
issues I reported in the Jira
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789159 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8341)
In EbayStore services class, replaces forgotten e.printStackTrace()
(I guess due to "TODO Auto-generated catch block") by returning service errors
Uses the same pattern everywhere it's needed
Replaces returnFailure by returnError, an exception is not a failure, it's a
serious error
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789047 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8341)
Fixes forgotten "TODO Auto-generated catch block" not using Debug.logError.
Groups similar exceptions in multi-catches
Removes an useless catch embedded in a same catch in EbayStore
In catches in events, returns "error" and an error messages in requests
I stop there in ebaystore, I'll hopefull continue later, it has been coded
with feet and seems to contains a lot of such issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1789043 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9188)
This is the technical documentation about the Flexible Reports.
It's done with Markdown files with links to Confluence for images
Also the HTML version soon used in the wiki
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788911 13f79535-47bb-0310-9956-ffa450edef68
Fixes some unchecked casts by using UtilMisc.toMap
Adds some @SuppressWarnings("unchecked")
Adds few @SuppressWarnings("unused")
Cleans imports
Completes and fixes Javadoc in BirtUtil class
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788869 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9188)
Complete the documentation about the Flexible Reports. Here are the HTML
versions to be used in the "Birt Flexible Reports" wiki page.
Also with an link in "Creating reports.md" to
"Using the Birt Report Designer.md.html"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788759 13f79535-47bb-0310-9956-ffa450edef68
I decided to sort the flexible report export formats on the enumCode
(ie alphabetically) rather than using sequenceId which did not make much sense
Also fixes a typo in a French error label
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788752 13f79535-47bb-0310-9956-ffa450edef68
published it
(OFBIZ-9284)
When you create a Flexible Report you get to the EditFlexibleReport screen.
There is a Preview panel with a Send button. If you send before having
1) downloaded the file,
2) conveniently edited it in Birt Report Designer
3) and then uploaded it,
you get an error which is embarrassing and difficult to avoid
programmatically.
I decided to warn users, when necessary (ie when the report is not published)
at the UI level. This completes OFBIZ-9194
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788750 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9123)
Moved pricat/webapp/pricat/ftl to pricat/template/pricat, pricat/webapp/pricatdemo/ftl to pricat/template/pricatdemo, and changed paths in files accordingly.
Thanks Jacques, Pierre and Michael for the code review and suggestion on this improvement.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788744 13f79535-47bb-0310-9956-ffa450edef68
Added demo data in respective plugin that was causing foreign key issue while data load in ebay and myportal plugin.
Thanks Wai for reporting the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788660 13f79535-47bb-0310-9956-ffa450edef68
need to do other actions
(OFBIZ-9194)
The solution I provided with revision: 1781218 was wrong. A really satisfying
solution would be to gray the "Send" button on the
birt/control/CreateFlexibleReport page. But that's not something easy to do
because it's generated from a content.
So I decided to remove the part in the PrepareBirtCall.groovy and add an
indication in the BirtErrorNotPublishedReport for users to use their browser
back button. Because you catch a ViewHandlerException in
RequestHandler.renderView() and there is not much you can do at this stage...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1788020 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9228)
Go through
Asset Maint --> Fixed Assets - >>> find DEMO_VEHICLE_01 --> Depreciation
and then press on button Create an Accounting Transaction: 00.000
will give ERROR not found
jleroux: the partyDecoratorLocation was missing in webapp/assetmaint/WEB-INF/web.xml
Thanks: Moatasim Al Masri for report, Ismail Alkouz for a try (not my solution)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-plugins/trunk@1784144 13f79535-47bb-0310-9956-ffa450edef68
Fixed:
(OFBIZ-9211)
"gradlew cleanAll loadDefault" generates a data loading error
It's logically due to the removing of plugins/component-load.xml in OFBIZ-9182
A temporary solution is to put it in again.
A definitive solution is to remove data dependencies.
We have also this problem with ecommerce data which create dependencies
from applications
jleroux: I don't close this issue yet because we need to work together on this.
I simply remove the regression by putting back plugins/component-load.xml
Thanks: Wai for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1782577 13f79535-47bb-0310-9956-ffa450edef68
Currently the class BirtContainer call the birt engine with hard coded log level ALL that generated huge log file.
We can't implement easily log4j on the birt engine so with this commit I create a quick fix to have matching between the java.util.Logger and org.apache.log4j.Logger level.
You can select the log level from debug.properties to populate the ReportEngine log file.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1782070 13f79535-47bb-0310-9956-ffa450edef68
completes r1781219 by putting svn:eol-style=native to all file types declared
in [auto-props] section of the svn config files.css
Actually this is only a 1st pass, it was too complicated to do it for
all file types at once only concerned here
*.java;*.bsh;*.groovy;*.jsp;*.tld;*.ftl;*.js;*.sql;*.c;*.cpp;*.h;*.txt;*.sgml;
*.properties;*.xml;.classpath;.project;*.sld;*.gml;*.xsl;*.xsd
*.html;*.htm;*.css;*.md;README;NOTICE;LICENSE;rc.ofbiz.*;*.less;*.dsp;*.dsw
Most files should not be concerned by this change, but it's impossible to do
it one by one.
There are also changes in files with have mixed EOLs; because this has no sense
when using native which automatically resolves this issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781731 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9198)
When accessing a file/image in ecomseo (only seo version) that is physically
missing or the dataresource attribute isPublic=="N" the request results
in a loop.
jleroux: to break the loop in case or error, I simply decided to return a
response of type none. I also added the same for io-error which can be returned
by the DataEvents class, also in ecommerce controller
Thanks: Ingo Wolfmayr for report
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781662 13f79535-47bb-0310-9956-ffa450edef68
At http://markmail.org/message/ffmyw773p65fndey I wrote:
I'd like to follow the suggestion I made in the last message of the linked
thread.
In other words, use
http://subversion.apache.org/docs/release-notes/1.8.html#repos-dictated-confighttp://blogs.collab.net/subversion/the-road-to-repository-dictated-configuration-day-2-autoprops
Then this problem would be over. No longer need to check from time to time that
concerned files, have svn:eol-style=native property set
This imply that all OFBiz users use svn > 1.7, but we can inform them, et voilà
Then at markmail.org/message/h3q2yvj4db544ro7 I wrote:
Actually, since we get new committers now and then and their are able to create
new files I have a warning every 6 months which says "Check Java
files, have all svn:eol-style=native" (I totally forgot that because I assume
the machine knows it and warns me ;))
I could extend that to all files (at least the most prominent types), I'll
see...
This does what the last sentence said for Groovy, XML and few new Birt
Java files.
I'll see if I can implement the svn 1.8 repos-dictated-config ASAP!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781219 13f79535-47bb-0310-9956-ffa450edef68
to do other actions
(OFBIZ-9194)
You need to add the data set fields with the Birt Report Designer
and publish the report. This will be documented with OFBIZ-9188
I thought about graying the button but it was a delicate matter because it uses
a <content element in screen and directly call a view handled from a Groovy
event.
It was easier to fix the PrepareBirtCall Groovy event. But to be totally sure
I also handled the possible NPE in the BirtViewHandler
I also fixed viewLast error in controller
Because the files were not committed with the svn:eol-style native property
you will see false changes in this commit. Some files have their svn:eol-style
native property set. I'll soon commit missing so in new Birt Java files.
I'll also commit a lot of svn:eol-style native property changes for XML and
Groovy files which have been neglected so far. I'm sorry for that because
when we do so we loose the annotations history. I will then definitely put in
place what I suggested in http://markmail.org/message/ffmyw773p65fndey
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781218 13f79535-47bb-0310-9956-ffa450edef68
Adds a missing BirtOverrideFilters label
Fixes a typo in BirtServices.java and organise imports
Change a button name in BirtForms.xml
Uses the BirtOverrideFilters label in BirtScreens.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781215 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9192)
The Birt Report Builder can also use services. for now only the "rotation"
report as been provided. We can provide more examples based on François'
work.
Here are trivial changes
fixes missing Lookup maps and view in controller for the "rotation" report
new needed labels
typos fixed
Thanks:
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1781084 13f79535-47bb-0310-9956-ffa450edef68
The code came from a project under ofbiz 13.07 and is still using deprecated delegator.find calls, so I converted them to EntityQuery
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780800 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9182)
This commit provides the following:
- Fully refactor common.gradle so that it mirrors the component loading
logic found in ComponentContainer. This makes the loading very flexible
and changing the directory structure should have no impact on the build
scripts.
- Gradle will now ignore a component if it exists but disabled in
ofbiz-component.xml (i.e. enabled="false")
- Removes /plugins/component-load.xml
- Disables the ebaystore component in ofbiz-component.xml
The above is needed as a first step toward preparing the project for svn
restructure
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780790 13f79535-47bb-0310-9956-ffa450edef68
The concept, you define a report domain related to an entity or a service through a master content (master report) and a master search form.
When a high level user create a report on a configured domain, OFBiz prepare an instantiation of the master content (flexible report) that permit
to surcharge the search form (recorded dynamically on the content as ElectronicText) and prepare a rptDesign skeleton.
The high level user can download the rptDesign to edit it trhough the birt editor, with all fields that ofbiz will be load as dataset and when is finish upload the result on the content instantiation.
For the end user, he selected the instantiation report, OFBiz display the report search from the content instantiation and the submission call birt with the search parameters and the linked rptDesign.
The rptDesign file is drive by OFBiz to build the data set by two methods :
* call the performFind if the domain is related to an entity
* call the a custom service if the domain is related to a service.
For the last case we need two services, a first who prepare and list available fields for search and display. And a second who realize the search.
By convention currently the first service as the same name that the second service suffixed by 'PrepareFields'
This commit contains :
* useful UI to create a new content instance from a master content. List, edit, remove a content instance and a simple drop-down to list all instance published (ready to use by end user)
* all services (with the work flexibleReport) to manage a flexible report, prepare the rptDesign skeleton, reanalyze the rptDesign uploaded, prepare the search form
* Services interface to define you own search custom method
* Two examples, one on the entity Exemple and one with the service flexibleReportTurnOver. Warning ! there are raw example without a beautiful rptDesign so you need to update the rptDesign with the birt editor to display something.
Thanks: François Wurmser for initialize this improvement, Jacques and Gil for their time to analyze, document and refactor the code
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780683 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-8316)
Change LongPoint and DoublePoint fields to String field to make solr work in trunk version, and I'll change them back when updating to new release of Solr.
Thanks: Jacques Le Roux for reporting the point fields problem.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1780133 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9167)
-go to https://localhost:8443/ordermgr/control/orderentry
-create order for DemoCustomer
-add an item
console output...
java.lang.NullPointerException
at org.apache.ofbiz.content.content.ContentWorker.
renderContentAsText(ContentWorker.java:368) ~[ofbiz.jar:?]
[...]
While at it I also found issues with cartLine.getName() in ftl files. It was
also missing the dispatcher.
This was broken by OFBIZ-9164
Thanks: Wai
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/plugins@1778889 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9164)
While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue
due to r1652852 where Adrian improved the cacheKey in
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants).
Actually I'm not even sure it was done at r1652852 because Adrian did not
maintain the FormFactory svn history.
Anyway, to make a long story short I had to introduce a DispatchContext
parameter when calling FormFactory.readFormDocument() when the code from
R13.07 only passed a null.
This had an impact in the hierarchy tree because FormFactory.readFormDocument()
was called in DataResourceWorker class, where the new code was called
from renderDataResourceAsText().
So I instead of only passing a Delegator I decided to pass only a
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the
Delegator from the LocalDispatcher. Doing so it had an impact on the
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface
and all related.
I finally decided to apply the same "Change Method Signature" refactoring
pattern (http://refactoring.com/catalog/addParameter.html) to all cases
related to ContentWorkerInterface. No need to pass a delegator when you have
LocalDispatcher!
Since last commit and revert I fixed 5 test failures and improved the code more,
mostly formatting, comments, etc.
There are very ugly method signatures out there which still need refactoring,
but it's so much work...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1777297 13f79535-47bb-0310-9956-ffa450edef68
Improved: Refactor ContentWorkerInterface methods signatures
(OFBIZ-9164)
While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue
due to r1652852 where Adrian improved the cacheKey in
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants).
Actually I'm not even sure it was done at r1652852 because Adrian did not
maintain the FormFactory svn history.
Anyway, to make a long story short I had to introduce a DispatchContext
parameter when calling FormFactory.readFormDocument() when the code from
R13.07 only passed a null.
This had an impact in the hierarchy tree because FormFactory.readFormDocument()
was called in DataResourceWorker class, where the new code was called
from renderDataResourceAsText().
So I instead of only passing a Delegator I decided to pass only a
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the
Delegator from the LocalDispatcher. Doing so it had an impact on the
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface
and all related.
I finally decided to apply the same "Change Method Signature" refactoring
pattern (http://refactoring.com/catalog/addParameter.html) to all cases
related to ContentWorkerInterface. No need to pass a delegator when you have
LocalDispatcher!
I locally got 5 incomprehensible test failures. After checking as much as I can
w/o committing I believe it's a Windows 7 issue only. Anyway if Buildbot reports
the same I'll revert. I need this changes in to continue on another not yet
created subtask of OFBIZ-6919
........
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1777154 13f79535-47bb-0310-9956-ffa450edef68
(OFBIZ-9164)
While working on OFBIZ-6919 which was built on R13.07 I stumbled upon an issue
due to r1652852 where Adrian improved the cacheKey in
FormFactory.getFormFromLocation() by adding a delegator reference (Tenants).
Actually I'm not even sure it was done at r1652852 because Adrian did not
maintain the FormFactory svn history.
Anyway, to make a long story short I had to introduce a DispatchContext
parameter when calling FormFactory.readFormDocument() when the code from
R13.07 only passed a null.
This had an impact in the hierarchy tree because FormFactory.readFormDocument()
was called in DataResourceWorker class, where the new code was called
from renderDataResourceAsText().
So I instead of only passing a Delegator I decided to pass only a
LocalDispatcher parameter in renderDataResourceAsText(), since we can get the
Delegator from the LocalDispatcher. Doing so it had an impact on the
renderDataResourceAsText hierarchy tree ending in DataResourceWorkerInterface
and all related.
I finally decided to apply the same "Change Method Signature" refactoring
pattern (http://refactoring.com/catalog/addParameter.html) to all cases
related to ContentWorkerInterface. No need to pass a delegator when you have
LocalDispatcher!
I locally got 5 incomprehensible test failures. After checking as much as I can
w/o committing I believe it's a Windows 7 issue only. Anyway if Buildbot reports
the same I'll revert. I need this changes in to continue on another not yet
created subtask of OFBIZ-6919
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@1777145 13f79535-47bb-0310-9956-ffa450edef68