Jacques Le Roux
ef4767dd12
A patch Ranjit Kumar Singh from "Error in CSV download" https://issues.apache.org/jira/browse/OFBIZ-4873
...
If sorting is enabled for at least one field in the list type form-widget, we get an error, here is the details:
Error executing macro: renderFieldTitle
required parameter: id is not specified.
The problematic instruction:
----------
==> macro renderFieldTitle [on line 53, column 1 in component://widget/templates/csvFormMacroLibrary.ftl]
in user-directive renderFieldTitle [on line 116, column 57 in component://widget/templates/csvFormMacroLibrary.ftl]
in user-directive renderSortField [on line 1, column 1 in Fri May 11 12:33:29 IST 2012]
----------
Java backtrace for programmers:
----------
freemarker.template.TemplateException: Error executing macro: renderFieldTitle
required parameter: id is not specified.
at freemarker.core.Macro$Context.sanityCheck(Macro.java:211)
Adding a default empty string to the id parameter fixes the issue
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1338570 13f79535-47bb-0310-9956-ffa450edef68
2012-05-15 07:14:55 +00:00
Jacques Le Roux
90c21deb08
A patch from Kiran Gawde "renderFormClose is missing arguments containerId, hasRequiredField" https://issues.apache.org/jira/browse/OFBIZ-4701
...
In htmlFormMacrolLibrary.ftl, renderFormClose has containerId, hasRequiredField.
But csv, fo, text, xml FormMacroLibary.ftl don't have these fields for this macro.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1245778 13f79535-47bb-0310-9956-ffa450edef68
2012-02-17 21:52:25 +00:00
Jacques Le Roux
c60e0e0388
Were missing in r1098100
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1132496 13f79535-47bb-0310-9956-ffa450edef68
2011-06-05 21:36:00 +00:00
Ashish Vijaywargiya
76b41ad601
Bug fix. hyperlink field type on form field was not able to put "," (separator ) on csv files. Thanks Amit.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081496 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 18:07:37 +00:00
Erwan de Ferrieres
299a5eccca
Adding input mask for the text fields. You have to create them yourself with mask in the text element
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081436 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 16:12:01 +00:00
Erwan de Ferrieres
d7ad06b90c
Adding a masked input capability to the date fields, use mask=Y and the field type will be taken for it. jQuery pPlugin is from http://digitalbush.com/projects/masked-input-plugin/ and under a MIT license
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1081333 13f79535-47bb-0310-9956-ffa450edef68
2011-03-14 11:15:24 +00:00
Erwan de Ferrieres
80d2dc710d
Adding a new feature for date-time fields: step, which will format the minutes drop-down with or a 1, 5, 10, 15 or 30 step-size
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1070570 13f79535-47bb-0310-9956-ffa450edef68
2011-02-14 16:57:31 +00:00
Jacopo Cappellato
10863fcdaf
A couple of fixes for csv exports: removed leading blank character in titles and fixed error caused by fields containing ampersands.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1053081 13f79535-47bb-0310-9956-ffa450edef68
2010-12-27 15:07:37 +00:00
Jacques Le Roux
1539f888c0
Fix a small bug introduced with r1044132 for OFBIZ-4051 i18n for elrte editor. It was crashing renderTextareaField when called from forms
...
Also while at it renames visualEdtiorEnalble to visualEditorEnable
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044510 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 21:00:06 +00:00
Jacques Le Roux
24fe5ff37e
Merges the jQuery branch back to the trunk
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1044503 13f79535-47bb-0310-9956-ffa450edef68
2010-12-10 20:40:08 +00:00
Erwan de Ferrieres
4de902af7a
title was missing in renderDisplayField macro
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1004391 13f79535-47bb-0310-9956-ffa450edef68
2010-10-04 20:17:06 +00:00
David E. Jones
9cb27b35f7
For form widget checkbox fields the id is now generated in the HTML for the first checkbox; this is mostly useful for single checkbox fields such as when using a checkbox instead of a Y/N drop-down
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@999663 13f79535-47bb-0310-9956-ffa450edef68
2010-09-21 21:55:16 +00:00
Jacques Le Roux
d75fbce90a
Allows to initially collapse the search screenlet of a layered lookup, default to false.
...
It was harder than I though because of the async nature of Ajax. So I had to use a setTimeout with a 400 ms timeout. Hopefully it will work in any environments. I chose 400 because I found it worked well on my machine, 300 also but to be sure I picked 400, 200 was too low it seems.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950481 13f79535-47bb-0310-9956-ffa450edef68
2010-06-02 10:44:16 +00:00
David E. Jones
0befa87923
Added id to field titles to allow more direct styling, hiding/showing, etc
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@950019 13f79535-47bb-0310-9956-ffa450edef68
2010-06-01 11:12:40 +00:00
Jacques Le Roux
62a4f24086
A last patch from Chris Snow "Provide better user help" ( https://issues.apache.org/jira/browse/OFBIZ-3702 ) - OFBIZ-3702
...
Answers the last point Scott outlined on dev ML
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@939479 13f79535-47bb-0310-9956-ffa450edef68
2010-04-29 20:46:44 +00:00
Bilgin Ismet Ibryam
12c181dea7
Added missing macro renderer parameters.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933134 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 08:14:42 +00:00
Bilgin Ismet Ibryam
82a5bf6b02
A patch from OFBIZ-3555 "Show lookup value descriptions". This enhancements allows displaying a description for the IDs in lookup fields. To enable this feature set widget.lookup.showDescription to Y in widget.properties
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@933130 13f79535-47bb-0310-9956-ffa450edef68
2010-04-12 07:54:10 +00:00
Erwan de Ferrieres
ddc80e3cb6
Adding title for images in hyperlink field or in a field displaying an image. Use the description if exists otherwise takes the title.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@929157 13f79535-47bb-0310-9956-ffa450edef68
2010-03-30 14:45:45 +00:00
Jacques Le Roux
3e33b7c700
To be consistent with definitions in widget-form.xsd, change renderLookupField attributes names prefixed by lookup to no prefixes (eg lookupPresentation becomes presentation)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@928240 13f79535-47bb-0310-9956-ffa450edef68
2010-03-27 17:50:16 +00:00
Erwan de Ferrieres
415b2b3fe3
Adding alternate parameter to all the renderers. This was forgotten at r926006
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@926250 13f79535-47bb-0310-9956-ffa450edef68
2010-03-22 18:31:47 +00:00
Jacopo Cappellato
0e57369c97
Reverted rev. 920359 (by erwan) and reimplemented in a cleaner way by refactoring the renderHyperlinkTitle code.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921397 13f79535-47bb-0310-9956-ffa450edef68
2010-03-10 15:21:23 +00:00
Erwan de Ferrieres
80b67af4e4
Correcting a wrong macro name (missing letter)
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921109 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 20:32:47 +00:00
Erwan de Ferrieres
060a8e14de
Adding missing tags in r920770 as spotted on the dev mailing list in the *FormMacroLibrary.ftl files
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@921099 13f79535-47bb-0310-9956-ffa450edef68
2010-03-09 20:22:35 +00:00
Jacques Le Roux
423ce79a21
A slightly modified patch from Sascha Rodekamp " Some improvements for the layer lookup" ( https://issues.apache.org/jira/browse/OFBIZ-3524 ) - OFBIZ-3524
...
A flag was added to fade the background behind the layered lookup (ie all the screen but the lookup) when a layer is opened.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@917940 13f79535-47bb-0310-9956-ffa450edef68
2010-03-02 10:02:04 +00:00
Bruno Busco
ee1f838fa3
Removed unused calGif parameter from Form rendering Macros
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@911186 13f79535-47bb-0310-9956-ffa450edef68
2010-02-17 21:57:22 +00:00
Jacopo Cappellato
6ed667e6d9
Added newly added (in rev. 908894) renderDisplayField input arguments.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@908912 13f79535-47bb-0310-9956-ffa450edef68
2010-02-11 10:33:19 +00:00
Jacques Le Roux
4e78c6d974
A patch from Sascha Rodekamp "UI upgrade, new lookups" ( https://issues.apache.org/jira/browse/OFBIZ-3374 ) - OFBIZ-3374
...
It's not perfect, but hopefully this time I will not have to revert it. I think it's time to introduce it, to let everybody have an idea and test.
Anyway, it can't hurt as it's only used in the Form Widget Examples screen for now. To test: https://localhost:8443/example/control/FormWidgetExamples
I find that the positioning mechanism is only working with the bizznesstime theme (at list centering, the only case I tried with all themes). But it should not be a big deal to fix since it works already in one theme.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@904047 13f79535-47bb-0310-9956-ffa450edef68
2010-01-28 11:57:12 +00:00
Jacques Le Roux
c58797b529
I revert r900950 because it introduces a bad side-effect when using a lookup by name, at least as far as I can tell.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@901197 13f79535-47bb-0310-9956-ffa450edef68
2010-01-20 13:36:25 +00:00
Jacques Le Roux
7e1e785844
A patch from Sascha Rodekamp "THanks" ( https://issues.apache.org/jira/browse/OFBIZ-3374 ) - OFBIZ-3374
...
A great enhancement IMO (like the calendar some time ago)
The idea came from http://cwiki.apache.org/confluence/display/OFBADMIN/New+Features+Roadmap+-+Living+Document#NewFeaturesRoadmap-LivingDocument-Quickeranintuitiveaccesstobasicfunctionnalities
which can be summarized to <<having lookups poping up as fast as the calendar>>. Lookups open in a page layer instead of a separate windows, faster!
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@900950 13f79535-47bb-0310-9956-ffa450edef68
2010-01-19 20:48:13 +00:00
Jacopo Cappellato
b195647d16
Updated macro rendere libraries for xsl-fo, xml, text and csv in order to support recent changes in rev. 894460
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@894593 13f79535-47bb-0310-9956-ffa450edef68
2009-12-30 11:35:45 +00:00
Jacopo Cappellato
5b104d9938
Updated signature for renderSubmitField macro for text, xml, fo, csv
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@885252 13f79535-47bb-0310-9956-ffa450edef68
2009-11-29 18:15:18 +00:00
Jacopo Cappellato
0a94eb4edc
Added missing macro renderer parameters. Thanks to Mridul Pathak for the (slightly modified) patch. OFBIZ-3147
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833094 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 17:32:49 +00:00
Jacopo Cappellato
b46bc41636
Added missing input parameters for widget renderer macros.
...
Fixed the xsl-fo code to display the text of an hyperlink field.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@833077 13f79535-47bb-0310-9956-ffa450edef68
2009-11-05 16:44:46 +00:00
Jacopo Cappellato
86a3dd0f8a
Fixed (hopefully, after a few attempts) issue with " character messing up csv exports.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@813360 13f79535-47bb-0310-9956-ffa450edef68
2009-09-10 10:40:56 +00:00
Jacopo Cappellato
e0b0efe89f
Wow, I did another error in my last commit: removed a wrong quote from my last commit; thanks again to Pranay Pandey for the report.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812511 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 13:49:23 +00:00
Jacopo Cappellato
5c0d54d731
Missing quote from my last commit; thanks to Pranay Pandey for the report.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812504 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 13:37:50 +00:00
Jacopo Cappellato
5a48eefcc0
Fix for error happening when using a csv export with fields containing quotes.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@812483 13f79535-47bb-0310-9956-ffa450edef68
2009-09-08 12:46:28 +00:00
Scott Gray
c15dc88751
Fix potential issue pointed out by Jacopo, double quotes with a field value must be replaced by double double quotes
...
e.g. "42" Television" needs to be "42"" Television"
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809263 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 08:14:41 +00:00
Scott Gray
61fbc38342
Continuation of Jacopo's commit, surround everything in quotes and the space removed in r809249 will prevent Excel from handling them incorrectly
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809251 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 06:34:37 +00:00
Jacopo Cappellato
905a966ddb
Based on feedback from Scott Gray, removed space between fields separated by commas in CSV exports: it was causing values with quoted texts in fields imported in Excel.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@809249 13f79535-47bb-0310-9956-ffa450edef68
2009-08-30 06:17:06 +00:00
Jacopo Cappellato
406a78b5ba
Temporary solution to avoid messed up CSV exports: commas are removed from the content of the fields.
...
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@805711 13f79535-47bb-0310-9956-ffa450edef68
2009-08-19 09:02:16 +00:00
Anil Patel
efb6d2cc8d
1) All columns with the exception of the first one have double-quotes around the text and the number fields.
...
Status : Resolved
2) I also noticed that the column headers (labels) are not matching the data after Column N.
Status : Resolved
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@803557 13f79535-47bb-0310-9956-ffa450edef68
2009-08-12 15:33:18 +00:00
Jacopo Cappellato
16a1a6e98a
Implemented CSV screen macro renderer; cleaned up existing csv widget forms that are now much more clean.
...
This is a good example of the great flexibility of widgets and the new macro renderer (no code was needed to implement the CSV renderer).
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@802400 13f79535-47bb-0310-9956-ffa450edef68
2009-08-08 15:49:04 +00:00