This patch removes CreateNewParty intermediate screen. This screen used to just include a menu. This menu is now into findParty screen, the security has been moved from screen to menu.
The CreateNewParty screen is not used elsewhere so can disappear, so is findparty.ftl, replaced by form widgets
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1687851 13f79535-47bb-0310-9956-ffa450edef68
A couple updates are needed to the postalAddressPdfFormatter screen:
First, the screen template is set to use the HTML renderer which results in this error in the log:
[java] 2015-06-03 13:44:53,400 |0.0.0.0-8009-exec-13 |ModelScreenWidget |W| In platform-dependent could not find template for xsl-fo, using the one for html.
Second, the various PostalAddressXXXX.fo.ftl files do not escape XML properly, and addresses with an & in them end up causing a FreeMarker template error.
Test: For number 1, just get a "Report" for a quote, and then look at your log file. For number 2, add an "General Correspondence" address to a party that contains an ampersand, like "5th & Oak Street", create a quote for that Party, and then get the "Report" for that quote.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1683998 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I suspected it was only a matter of replacing "${bsh" by "${groovy" in *.xml. But I had not the guts to get into 11(!) sub tasks.
So, in Eclipse, I simply did a S/R in *.xml and compared parts of my changes with some Pierre's most "complex" patches respectively product, ebaystore, projectmgr and scrum.
They were totally similar (just revisions number changed) so here is the whole.
I will later improve these changes by removing HTML entities when possible, this is a bit more delicate because in some cases the XML schema are not complete (or/and for other still obscure to me reasons) and if you simply replace HTML entities by simple code (eg &Amp; by &) you get issues in logs when the XML parser cross them...
Note: only menus, screen and forms are changed here.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1682118 13f79535-47bb-0310-9956-ffa450edef68
1. While creating an organization, it is possible to specify a meaningful party id through ofbiz setup.
2. But, it is NOT possible to specify the party id through GUI while creating a Party (Person or Party Group). this means, all the parties created get a sequence id for party id.
If the user inputs a party ID to any of the party creation screens (person, party group, customer, employee or prospect) then that ID will be used, otherwise it will pull a party ID from the sequence bank
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1666794 13f79535-47bb-0310-9956-ffa450edef68
==============================================================================
when displaying this portal page:
https://localhost:8443/myportal/control/main?portalPageId=MYPORTAL_EMPLOYEE0&parentPortalPageId=MYPORTAL_EMPLOYEE
this message is thrown to the console:
Message: Roll back error, could not commit transaction, was rolled back instead because of: Error in Service [executeFind]: Error running Find on the CommunicationEventAndRole entity: Field with name custRequestDate not found in the CommunicationEventAndRole Entity
==============================================================================
Thanks Mridul for the contribution and thanks Erwan for creating the issue.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632801 13f79535-47bb-0310-9956-ffa450edef68
===========================================
Here is the steps to regenerate issue:
{code}
<PortalPagePortlet portalPageId="PartyProfile" portalPortletId="ShipperAccount" portletSeqId="00001" columnSeqId="00001" sequenceNum="7"/>
{code}
Upload the PortalPagePortlet data for shipper Account, and go to viewprofile screen. Now add shipper account from shipper account screen.
Expected Result: Newly added/ all shipper account of party should be listed under shipper account screen.
Actual Result:
No shipper accounts are listing.
===========================================
Thanks Deepak for the contribution.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632797 13f79535-47bb-0310-9956-ffa450edef68
=========================================================================
In partymgr contrller.xml, we have view request named "ViewCommunicationEvent", and this request call an service event, due to this when we try to perform sorting on Child Communication Events, Customer Request List or any other screen over Communication screen then it will thorw following exception:
org.ofbiz.webapp.event.EventHandlerException: Found URL parameter [communicationEventId] passed to secure (https) request-map with uri [ViewCommunicationEvent] with an event that calls service [setCommEventRoleToRead]; this is not allowed for security reasons! The data should be encrypted by making it part of the request body (a form field) instead of the request URL. Moreover it would be kind if you could create a Jira sub-task of https://issues.apache.org/jira/browse/OFBIZ-2330 (check before if a sub-task for this error does not exist). If you are not sure how to create a Jira issue please have a look before at http://cwiki.apache.org/confluence/x/JIB2 Thank you in advance for your help.
Also due to this service event call on view request entry we can't open the communication events in new tab. Ideally this service should be call in screen context instead view request.
=====================================
Thanks Deepak for reporting the issue and providing the patch for the same.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1632745 13f79535-47bb-0310-9956-ffa450edef68
When a relationship must be set for a party to another party, the role selector for the party shows all roles available in the data set.
This, however, must be limitied to the roles the party has.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1614366 13f79535-47bb-0310-9956-ffa450edef68
Actually it does paginate but the value is not dependent on widget property widget.form.defaultViewSize which default value is 20. It uses a default value of 50 which is defined by
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="3"/>
You can easily test it using https://localhost:8443/manufacturing/control/FindRouting?VIEW_SIZE=3
This is legacy from pre Apache era. I found 143 cases where a default-value is defined in screens for VIEW_SIZE.
I did not look into details for the 143 cases but I believe most are also legacy.
There are few default values: 10, 20, 30, 50, 500 and even an extreme case of 10000 for InventoryItemTotalsExport!
There is only one comment for LookupBulkAddProducts which is also legacy: <!-- 10 rows seems more appropriate given screen size, etc. -->
I suggest to OOTB replace all those by the widget.form.defaultViewSize value.
Things will then be consistent and easily changeable on a global scale using the widget property.
Or if really needed forcing the default-value as it's done now.
So this would be applied on the 143 cases (I checked, viewSizeDefaultValue does not exist in any screen)
<property-to-field resource="widget" property="widget.form.defaultViewSize" field="viewSizeDefaultValue"/>
<set field="viewSize" from-field="parameters.VIEW_SIZE" type="Integer" default-value="${viewSizeDefaultValue}"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1526387 13f79535-47bb-0310-9956-ffa450edef68
While navigate from Party profile page to create Party Attribute, there is no back option. Added missing cancel/done link on Party Attribute page. Not available in trunk and 12.04, not sure about other versions.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1498406 13f79535-47bb-0310-9956-ffa450edef68
If a person is set as a related contact for a party, updates to their name are not immediately displayed by the ListRelatedContacts form.
To reproduce (with OFBiz demo data):
* In the Party Manager, go to the profile page of DemoSupplier (they have a related contact called 'Peter Manager'
* Follow the link to Peter Manager's profile page.
* Click Update and change the name (e.g. to 'Peter Manageress')
* Save
* Return to DemoSupplier's profile page. Observe that the name of the related contact is still 'Peter Manager'. Refreshing doesn't change that.
* Restart OFBiz
* Refreshing the profile page now displays the updated name.
jleroux: to test in trunk I used company and scrum employee
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1481274 13f79535-47bb-0310-9956-ffa450edef68
=========================
And secondly I think that in ListCommEvents form of CommunicationEventForms.xml partyId should be passed in place of the partyIdFrom. As in ViewCommunicationEvent screen, value of the partyIdFrom is set via parameters.partyId.
=========================
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1478499 13f79535-47bb-0310-9956-ffa450edef68
The label ${uiLabelMap.PartyCountryCode} is used several times in the project but i could not find the definition of PartyCountryCode in label definition files.
I looked further and found CommonCountryCode in label file which is not used and fill the need for PartyCountryCode. To solve this I propose to rename all PartyCountryCode to CommonCountryCode.
jleroux: I also moved CommonCountryCode, CommonCountryCodeMissing and CommonCountryMissing from PartyUiLabels.xml to CommonUiLabels.xml
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1447664 13f79535-47bb-0310-9956-ffa450edef68
Release 10.4 and SVN tunk
In Party Manager go to Profile > Roles(s)
1. Create a New Role Type
2. Click save
Expected: Screen refresh and return to Roles(s) tab on ProfileTabBar
Actual: Screen refresh ProfileTabBar missing
In SVN tunk
In Party Manager go to Profile > Roles(s)
Expected: Roles listed in screenlet Add To Main Role > Role Type Id drop-down list
Actual: Screenlet Add To Main Role > Role Type Id drop-down list is empty.
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1355801 13f79535-47bb-0310-9956-ffa450edef68
Reported by Kiran:
In the screen widget, add a set action that refers to sessionAttributes, it doesn't work.
e.g: Following doesn't work:
<set field="titleProperty" value="${sessionAttributes.autoName}"/>
Following works:
<set field="titleProperty" from-field="autoName" from-scope="user"/>
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340821 13f79535-47bb-0310-9956-ffa450edef68
jleroux: I reviewed the English part (and the licenses in NL part) and only fixed a typo in EN/Help_MFG_ProductionRunCosts.xml (was prouction). I also wondered about the new content of Help_MFG_FindInventoryEventPlan, but it's quite correct
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1340273 13f79535-47bb-0310-9956-ffa450edef68
In Party Manager > Profile > Contact Information > Update the "Country" drop down always defaults to "United States".
This is misleading if the Country is not "United States".
If a user were to change some other address element he/she would have to also re-set "Country" to keep it from being changed to "United States".
To reproduce:
In Party Manager lookup a party with a "Postal Address" say "DemoSupplier"*
In Contact Information > Postal Address Click "Update"
In the Country field select any country but "United States" say Switzerland
Click "Save"
Note -
Expect drop down default after save = "Switzerland"
Actual drop down default after save = "United States"
Click "Go Back"
Expect "Postal Address" country = "Switzerland"
Actual "Postal Address" country = "Switzerland"
Click
Click "Update"
Expect drop down default to be "Switzerland"
Actual "United States"
jleroux: rather than using Tom's patch I reused setDependentDropdownValuesJs.ftl. There were no OOTB examples of its use in FTL templates so now there is one.The same could be done for other EditContactMech.ftl (eCommerce and Facility) I will ask Tom to try it
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1310953 13f79535-47bb-0310-9956-ffa450edef68
Summary: The purpose of this patch is to address the following:
1. Provide a standardized set of image width and height specs for page layout in ofbiz. This gives ofbiz a uniform look throughout as it applies to image display.
2. Preserve the aspect ratio of the image when using these standardized image sizes.
3. One place to make styling modifications (eg. css file).
4. Decouple styling from code (eg. java,ftl,xml,html,jsp,etc).
Regarding including the real image size, the width/height attributes in <img> specifies the boundary of the image when shown on the page. If you need to specify the real size of the image, the server code would have to perform the determination. Afterwards, you can include the actual dimensions of the image in the title attribute of <img>
Details:
Manually specifying the image width and height does help with preserving the layout of a page regardless of the image size to be shown. The challenge with this method is that the image shown on the page in question may be distorted if the aspect ratio of the image differed from that of the width and height attributes of <img>. This basically forces the person uploading the image to be more vigilant about image aspect ratios.
The purpose is to harmonize on the display size of images with a standardized set of width/height constraints in which an image must fit and preserve the aspect ratio of images.
Currently the source files (eg. ftl, xml) either manually specifies the width or height of a displayed image (ie widget <image> and html <img> tag). The problem with specifying only one constraint is that an image can affect the layout of the page if the user uploads an image where the aspect ratio could be large.
Some ftl and xml files specify both the width and the height. The problem with this is that if the aspect ratio of the image in question does not match that of the width and height of the <img> tag, the image would be displayed distorted.
The solution was to create a standardized set of CSS styles that both configure the displayed image size and preserve the image aspect ratio (eg. thumbnail size, medium size and large size). Of course, the developers can further define or modify the styles to suit their need.
By using CSS, one can change the size of displayed images without having to tamper with the ftl and/or xml files. This helps to reduce potential bugs that come with modifying the ftl and xml files. The existing way of doing things is to go through each ftl or xml file in question and manually modify the width and/or height of the <image> and/or <img> tag.
The question about the "border" around images. If you do not wish to have a border around the image, just remove it from the CSS style. It's that easy No need to change anything else. Ie. configuration to the image is done on the CSS style and not on the <image>, <img> tag.
NB: The current patch does not apply to all displayed images. I have only made appropriate modifications to widget <image> and html <img> tags that have either specified the width and/or height. There are numerous <image> and <img> tags spread all over the project that do not specify dimensions. I would have to modify them as I encountered them when I could see where and how they are displayed on the screen. Note that these images would not be affect by this patch.
jleroux: despite my efforts I was not able to check all screens. But I think it's ok
git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk@1296782 13f79535-47bb-0310-9956-ffa450edef68