Commit Graph
55 Commits
Author SHA1 Message Date
Mathieu Lirzin daa1e6160e Reverted: JSON entity data import and export utility
(OFBIZ-10966)

Implementation was not matching OFBiz code quality requirements.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1867342 13f79535-47bb-0310-9956-ffa450edef68
2019-09-22 12:29:54 +00:00
Jacques Le Roux b16285dd64 Implemented: JSON entity data import and export utility
(OFBIZ-10966)

Currently, we support import/export entity data in XML format.
  Nowadays JSON is widely used in industry, we can have support for JSON format 
  which looks quite similar to XML support.

Here is example of XML data and it's JSON version
<Party partyId="123456" partyTypeId="PERSON" statusId="PARTY_ENABLED"/>
{“Party”: {"partyId":"123456","partyTypeId":"PERSON","statusId":"PARTY_ENABLED”}}

Design Proposal

We can write entityImportJson and entityImportDirJson services for importing 
JSON from screen and directory respectively.
And the entityExportAllJson service for exporting entity data in JSON.

Import Design
 The import service will perform following operations:
 1.) Validate the input JSON data
 2.) On successful validation, convert JSON to OFBiz's entity model 
     (GenericValue)
 3.) The GenericValue will be inserted in database by some handler class for e.g 
     we can write JsonDataHandler, it will convert given JSON to 
     List<GenericValue>, and finally write it to database 
     (Similar pattern is used in XML import).

Export Design
 Based on existing XML pattern the writeXmlText method of GenericEntity class 
 write the exported data in XML format. 
 In the similar way, we can implement writeJsonText to export data in JSON format.

jleroux: I fixed 2 trivials things and at my request in last patch Jayansh added 
"JSON Data Export All" and "JSON Data Import Dir

Thanks: Jayansh Shinde 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1862206 13f79535-47bb-0310-9956-ffa450edef68
2019-06-27 11:49:22 +00:00
Jacques Le Roux 4d646ce052 Improved: Use "Create" instead of "Create New" on the various screens of all
components
(OFBIZ-9905)

As the title says + removes now useless labels

Thanks: Aayush Jain for report, Sourabh Jain for the fix, Pierre Smits and 
Rishi Solanki for comments

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1858291 13f79535-47bb-0310-9956-ffa450edef68
2019-04-27 17:56:44 +00:00
Suraj Khurana 2d2aba0a4c Improved: Empty header row should not render if list to render in file is empty.
(OFBIZ-7598)
Thanks everyone for your inputs and suggestions.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1839729 13f79535-47bb-0310-9956-ffa450edef68
2018-08-31 06:33:07 +00:00
Michael Brohl 4d3ad30996 Improved: Standardise Layout throughout Applications.
(OFBIZ-10242)

This contains the improvements for webtools.

Thanks Julian Leichert for reporting and providing the patch.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1827072 13f79535-47bb-0310-9956-ffa450edef68
2018-03-17 11:31:26 +00:00
Deepak Dixit 1a7aee6685 Improved:Use from-field pattern instead of value=dollor pattern in 'set' element
Apply slightly modified patch from jira issue, fixed some typo (OFBIZ-9607)
Thanks Suraj Khurana and Rohit Rai for your contribution.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1806326 13f79535-47bb-0310-9956-ffa450edef68
2017-08-26 20:23:40 +00:00
Nicolas Malin 5be9a2f2ad Improved: Improve FindGeneric entity screen with xml form (OFBIZ-9217)
Replace the current groovy and ftl form rendering by a dynamic call to screen xml with build the xml form by analyse the entity
The find operation is now realize by the perfomFind service

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/ofbiz-framework/trunk@1783427 13f79535-47bb-0310-9956-ffa450edef68
2017-02-17 17:00:31 +00:00
Jacques Le Roux c8ba932772 Fixes a "typo" in last commit for "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
We used targetNamespace (should only be used in schema) instead of xsi:schemaLocation



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749634 13f79535-47bb-0310-9956-ffa450edef68
2016-06-22 05:58:26 +00:00
Jacques Le Roux 89212904bd Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061
This is the 2nd step: puts back the original names, so it will be transparent for remaining references in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749489 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:37:47 +00:00
Jacques Le Roux 4931db1ed9 Completes and finish "Autocompletion for Compound Widget" - https://issues.apache.org/jira/browse/OFBIZ-7061 by replacing xsd files references in xml files by -ns.xsd files and removing the concerned xsd files
This is a 1st step, in a 2nd I will put back the original names, so it will be transparent for remaining reference in xml catalogs, Java code, etc.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1749488 13f79535-47bb-0310-9956-ffa450edef68
2016-06-21 11:14:16 +00:00
Deepak Dixit 543dd8e488 (OFBIZ-7221) Relocate .groovy files in the framework/webtools component
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1747755 13f79535-47bb-0310-9956-ffa450edef68
2016-06-10 17:16:22 +00:00
Jacques Le Roux 0e0dbb1dfe A patch from Ingo Wolfmayr for "Export widget ftl pointing to wrong location" https://issues.apache.org/jira/browse/OFBIZ-7068
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1743976 13f79535-47bb-0310-9956-ffa450edef68
2016-05-15 21:12:35 +00:00
Deepak Dixit 913d2d3ff5 (OFBIZ-7021) Renamed webtools component ftl file name from lower case to upper case pattern.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1743879 13f79535-47bb-0310-9956-ffa450edef68
2016-05-15 04:50:13 +00:00
Deepak Dixit 5063287ddf (OFBIZ-6824) Apply slightly modified patch from jira issue, updated path for ping.ftl and showDateTime.ftl in controller.xml
============================================================
relocate .ftl files in the framework/webtools component
============================================================
Thanks  Pierre Smits for your contribution. 

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1738581 13f79535-47bb-0310-9956-ffa450edef68
2016-04-11 12:57:45 +00:00
Jacques Le Roux 7c79d1e6f3 A patch from Gil Portenseigne for OFBIZ-6545 - Replace webtools/control/EntitySQLProcessor FTL with widgets
And while at it set ofbiz.org as default selGroup when none exist. This will prevent the unobvious error message
  <<Unable to esablish a connection with the database. (Unable to acquire a new connection from the pool)>>
in most cases!

This patch replaces EntitySQLCommand ftl to widget. List screen couldn't be migrated to widget due to dynamic column rendering.
To get the default group, a little trick is used, constructing the list of map for drop-down list-option widget.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1692725 13f79535-47bb-0310-9956-ffa450edef68
2015-07-26 15:12:49 +00:00
Nicolas Malin e424ded590 Replace FTL at webtools/control/entitymaint with widgets. Remove multi column and convert links as include-menu. By default the entityName is link on Find and receive the anchor. This patch is related to OFBIZ-6402, thanks Christian Carlow for this issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1686621 13f79535-47bb-0310-9956-ffa450edef68
2015-06-20 13:50:13 +00:00
Hans Bakker 2908317017 added a new menu item in webtools: 'programmable export' where interactively a groovy program can be entered to export specifc records from the database. In order to apply some global changes for re-import
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1520505 13f79535-47bb-0310-9956-ffa450edef68
2013-09-06 08:03:34 +00:00
Hans Bakker 56323a459b make the webtools screens use the decorator location from web.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1455024 13f79535-47bb-0310-9956-ffa450edef68
2013-03-11 07:35:16 +00:00
Jacques Le Roux feecb15093 "Housekeeping of jar files" https://issues.apache.org/jira/browse/OFBIZ-4833
Moves Minerva and XAPool to Attic

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1356471 13f79535-47bb-0310-9956-ffa450edef68
2012-07-02 20:29:54 +00:00
Jacopo Cappellato cef1cccf82 OFBIZ-4864
* enabled by default the DebugManagedDataSource wrapper around ManagedDataSource
* enhanced the DebugManagedDataSource wrapper to:
** print log messages only at verbose level (instead of always as it was before)
** if possible print additional information about the connection status
** added new method that returns information about the connection pool settings/status
* added new static method to DBCPConnectionFactory to return information about the pools
* new screen in the webtools where information about each pool/helper is shown
The information provided by the screen can be very useful to analyze the status of the connection pools.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338230 13f79535-47bb-0310-9956-ffa450edef68
2012-05-14 14:45:43 +00:00
Bruno Busco 258ace98d6 No funtional changes only layout.
Screenlet title bars and H1 titles have been removed when they simply duplicate the tab menu.
Fixed some missing tab menu highlighting.





git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1098406 13f79535-47bb-0310-9956-ffa450edef68
2011-05-01 20:38:38 +00:00
Adrian Crum 2e1ad5b135 Fixed Freemarker-generated list navigation introduced in rev 930660. That code never worked. Also fixed some Webtools FindGeneric screen issues.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1064944 13f79535-47bb-0310-9956-ffa450edef68
2011-01-29 02:35:22 +00:00
Bruno Busco 8fa35dff06 Added proper menu button styles
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1029281 13f79535-47bb-0310-9956-ffa450edef68
2010-10-31 09:19:30 +00:00
Bruno Busco 05113af8b5 Converted WebTools->Entity performance test screens from FTL to form widgets
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@992785 13f79535-47bb-0310-9956-ffa450edef68
2010-09-05 13:54:46 +00:00
Jacques Le Roux 380198a8da A patch from Amit Sharma "Error rendering screen [component://webtools/widget/CommonScreens.xml#CommonImportExportDecorator]" (https://issues.apache.org/jira/browse/OFBIZ-3150) - OFBIZ-3150
Steps for generating error:
1) Hit URL https://localhost:8443/webtools/control/xmldsdump
2) Depress "Check All" button on Export section.
3) Fill following fields.
Output Directory : <Eport path>
Records Updated Before : <Current time> 


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@832776 13f79535-47bb-0310-9956-ffa450edef68
2009-11-04 15:51:31 +00:00
Bruno Busco 6926457840 Added TabBars menus for the WebTools application. (OFBIZ-3020)
The WebTools main screen is still untouched so that all screens can be reached in the same way as before.
When we are OK with the new screens grouping under menus we will remove the main screen as it is now.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823806 13f79535-47bb-0310-9956-ffa450edef68
2009-10-10 06:46:57 +00:00
Bruno Busco 5a89692be7 Changed <container style="screenlet"> pattern to <screenlet...>.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@823416 13f79535-47bb-0310-9956-ffa450edef68
2009-10-09 06:04:13 +00:00
Adrian Crum 5c16b67075 Cleaned up cluttered and confusing FindGeneric screen in WebTools.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@792295 13f79535-47bb-0310-9956-ffa450edef68
2009-07-08 20:28:01 +00:00
Jacques Le Roux b9c3ddef08 2d part and end of an effort to remove trailing spaces
[ \t]+$ => "" (empty)
Should be easier to review when committing changes with trailing spaces removed automatically by anyedit or such tool (please refer to http://docs.ofbiz.org/x/mg)

Of course this effort to remove trailing spaces has no functional implications.

Actually, I was doing a 1st commit and as it's long to upload, I got conflicts with r763135
In the meantime I did some refactoring also in *.java and *.groovy files :
){ => ) {
if( => if (
while( => while (
}else => } else
else{ => else {
switch( => switch (
try{ => try {
}catch => } catch
catch( => catch (
}finally{ => } finally {

So these changes are also in this commit, should not be a problem anyway.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@763175 13f79535-47bb-0310-9956-ffa450edef68
2009-04-08 10:54:51 +00:00
Jacques Le Roux 3dd56b670a Marco's LabelsReferences8.patch : "New tool to get labels information." (https://issues.apache.org/jira/browse/OFBIZ-2070) - OFBIZ-2070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@755394 13f79535-47bb-0310-9956-ffa450edef68
2009-03-17 21:01:43 +00:00
Jacques Le Roux ccadfbacbb LabelReferences4.patch from Marco "New tool to get labels information" https://issues.apache.org/jira/browse/OFBIZ-2070 OFBIZ-2070
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@748732 13f79535-47bb-0310-9956-ffa450edef68
2009-02-27 23:01:41 +00:00
Jacques Le Roux 5d9fd471dc <field-map(.*)env-name => <field-map$1from-field
<service(.*)result-map-name => <service$1result-map

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@739764 13f79535-47bb-0310-9956-ffa450edef68
2009-02-01 13:54:08 +00:00
Jacques Le Roux 101fe6961c A slightly modified patch from Bruno Busco "Updating Webtool JobList to use PerformFind and FindScreenDecorator" '(https://issues.apache.org/jira/browse/OFBIZ-2103) - OFBIZ-2103
with some i18n and French l10n


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@730990 13f79535-47bb-0310-9956-ffa450edef68
2009-01-03 14:33:01 +00:00
Scott Gray 75e810a2d3 Converted the remaining framework bsh scripts to groovy
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@688450 13f79535-47bb-0310-9956-ffa450edef68
2008-08-24 05:36:54 +00:00
David E. Jones c489858f21 Changed FindGeneric to not do 2 queries, ie instead of doing a find count and then a find, now just does the find and gets the count using the new EntityListIterator method to seek to the end and get the index; that should be faster, though not totally sure; also changed FindGeneric and ViewGeneric from bsh to groovy and did some cleanups/fixes
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@673025 13f79535-47bb-0310-9956-ffa450edef68
2008-07-01 08:52:27 +00:00
Jacopo Cappellato b1bd619d66 Set correct template type for xsl-fo platform dependent templates: this is now required because the platform-dependent element can now accept different templates for different types.
Thanks to Jacques Le Roux for the report.

git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@660107 13f79535-47bb-0310-9956-ffa450edef68
2008-05-26 06:25:57 +00:00
Jacques Le Roux 3cbe576ce9 A patch from Marco Risaliti "New Styles For Framework applications" (https://issues.apache.org/jira/browse/OFBIZ-1619) - OFBIZ-1619
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@640252 13f79535-47bb-0310-9956-ffa450edef68
2008-03-23 20:20:59 +00:00
David E. Jones e8d61ef0b7 Added initial implementation of entity EOModelBundle export, including various utility methods and refactoring and such
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@630279 13f79535-47bb-0310-9956-ffa450edef68
2008-02-22 18:17:21 +00:00
Christian Geisert ba354d8bf2 New Styles For Framework applications
Apply the new CSS styles to all the forms into the Framework applications (Example, Example Ext, Webtools) and we will have the same look and feel on the ftl screens and screen widgets
Submitted by Marco Risaliti
See OFBIZ-1619


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@628818 13f79535-47bb-0310-9956-ffa450edef68
2008-02-18 17:09:33 +00:00
Adrian Crum 68c1dbbaf9 Second sweep through the maincss.css style sheet. Changed the head1, head2, and head3 style names to h1, h2, and h3. Updated affected styles in ftl and xml files.
The ecommerce component is excluded from this commit.

These changes shouldn't break any layout. If you spot something wrong, let me know and I'll fix it.

I won't make any more maincss.css changes for a little while. I'll let the dust settle from these two commits, then I'll go through the file and physically remove the deprecated styles.


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@627051 13f79535-47bb-0310-9956-ffa450edef68
2008-02-12 19:30:09 +00:00
Adrian Crum 7a20f41fe8 Improved Webtools logging screens.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@607565 13f79535-47bb-0310-9956-ffa450edef68
2007-12-30 17:47:34 +00:00
Adrian Crum cab8514182 Entity Reference PDF file generation code. I have the main page link commented out until we can solve the issue brought up in https://issues.apache.org/jira/browse/OFBIZ-1401.
Anyone wanting to generate the document can go to this link: https://127.0.0.1:8443/webtools/control/view/entityrefReport Be patient, it will take a very long time (1+ hours).



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@596885 13f79535-47bb-0310-9956-ffa450edef68
2007-11-21 00:05:44 +00:00
Adrian Crum cc6e7576e9 More Webtools Entity Reference screen work. Also converted Webtools services to use a permission service. Converted EntityRefMain.bsh to a service - so that the entity reference data can be obtained through a service call.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@593644 13f79535-47bb-0310-9956-ffa450edef68
2007-11-09 20:38:03 +00:00
Jacopo Cappellato e55d92e07a Now the Webtools application reuses the login screens defined in the common component.
Part of OFBIZ-1320


git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@585396 13f79535-47bb-0310-9956-ffa450edef68
2007-10-17 06:36:18 +00:00
Jacques Le Roux a494d53d5e A patch from Adrian Crum "Improved Title Bar In Webtools Entity Screens" (https://issues.apache.org/jira/browse/OFBIZ-1215)
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@570576 13f79535-47bb-0310-9956-ffa450edef68
2007-08-28 21:30:08 +00:00
Jacopo Cappellato c8e00dcae2 i18n and l10n improvements from Marco Risaliti: OFBIZ-963
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539720 13f79535-47bb-0310-9956-ffa450edef68
2007-05-19 09:14:45 +00:00
David E. Jones 7d70c41c12 Did a big search/replace to change all xsd file refs from www.ofbiz.org to ofbiz.apache.org
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@539504 13f79535-47bb-0310-9956-ffa450edef68
2007-05-18 15:47:14 +00:00
Andrew Zeneski 7766636850 added new screen to show minerva connection pool data
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@536384 13f79535-47bb-0310-9956-ffa450edef68
2007-05-09 00:15:10 +00:00
Jacopo Cappellato 8460e851ab Refactoring of the webtools application: all the remaining region pages have been migrated to screen widgets, with jsp artifacts transformed in bsh/ftl ones. Many thanks to Adrian Crum (et others, see OFBIZ-771 for details) for this work; I've also removed a few more files no more needed after the above changes. This is a Commit-Then-Review commit, I did quick tests and everything looks fine (there is place for improvements on layout, especially in the entity maintenance screens), but since all these changes are about the ui, I think it is not so bad to follow this approach and let the community to do more tests on it.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@522793 13f79535-47bb-0310-9956-ffa450edef68
2007-03-27 07:04:31 +00:00
David E. Jones 2c2d161929 Added page for importing from readers; this is especially helpful when updating a server and you need to refresh the seed data, but of course there are many other uses
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@509764 13f79535-47bb-0310-9956-ffa450edef68
2007-02-20 21:41:15 +00:00