In hyperlink and sub-hyperlink elements, replacement of target parameters by parameter sub-elements



git-svn-id: https://svn.apache.org/repos/asf/ofbiz/trunk/specialpurpose@759506 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Jacques Le Roux
2009-03-28 16:39:26 +00:00
parent 2a33efe140
commit d206f30e4e
3 changed files with 21 additions and 3 deletions
+5 -1
View File
@@ -299,7 +299,11 @@ under the License.
<field name="subject"><text size="60" default-value="${parameters.subject}"/></field>
<field name="fileAttach" title="${uiLabelMap.MyPageFileAttach}"><display/></field>
<field name="fileAttach" title="${uiLabelMap.MyPageFileAttach}">
<hyperlink target="addAttachmentEmail?communicationEventTypeId=${parameters.communicationEventTypeId}&amp;partyId=${userLogin.partyId}&amp;communicationEventId=${parameters.communicationEventId}" description="${uiLabelMap.MyPageAttachFile}"/>
<hyperlink target="addAttachmentEmail" description="${uiLabelMap.MyPageAttachFile}">
<parameter param-name="communicationEventTypeId" from-field="parameters.communicationEventTypeId"/>
<parameter param-name="partyId" from-field="userLogin.partyId"/>
<parameter param-name="communicationEventId" from-field="parameters.communicationEventId"/>
</hyperlink>
</field>
<field name="contentMimeTypeId"><hidden value="text/plain"/></field>
<field name="content" title="${uiLabelMap.CommonContent}"><textarea cols="80" rows="20" default-value="${parameters.content}"/></field>
+7 -1
View File
@@ -385,7 +385,13 @@
<field name="statusId"><display-entity entity-name="StatusItem" description="${description}"/></field>
<field name="orderDate"><display/></field>
<field name="entryDate"><display/></field>
<field name="linkProjectOrder" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when="headerItem.equals(&quot;editProjectOrders&quot;)"><hyperlink target="unLinkProjectOrder?workEffortId=${projectId}&amp;orderId=${orderId}&amp;projectId=${projectId}" description="${uiLabelMap.ProjectMgrRemoveLinkFromProject}"/></field>
<field name="linkProjectOrder" title="${uiLabelMap.CommonEmptyHeader}" widget-style="buttontext" use-when="headerItem.equals(&quot;editProjectOrders&quot;)">
<hyperlink target="unLinkProjectOrder" description="${uiLabelMap.ProjectMgrRemoveLinkFromProject}">
<parameter param-name="workEffortId" from-field="projectId"/>
<parameter param-name="orderId" from-field="orderId"/>
<parameter param-name="projectId" from-field="projectId"/>
<hyperlink>
</field>
</form>
<form name="projectAssoOrder" type="list" list-name="listProjectAssoOrder"
extends="ListProjects" extends-resource="component://projectmgr/widget/forms/ProjectForms.xml">
+9 -1
View File
@@ -34,7 +34,15 @@
<hyperlink also-hidden="false" description="${lastName}, ${firstName} ${middleName} ${groupName}" target="viewprofile?partyId=${partyId}"/>
</field>
<field name="roleTypeId"><hidden/></field>
<field name="emailAddess" title="${uiLabelMap.PartyEmailAddress}"><hyperlink target="/partymgr/control/EditCommunicationEvent?partyIdFrom=${userLogin.partyId}&amp;partyIdTo=${partyId}&amp;communicationEventTypeId=EMAIL_COMMUNICATION&amp;contactMechIdTo=${contactMechId}&amp;contactMechTypeId=EMAIL_ADDRESS" description="${emailResult.emailAddress}" target-type="inter-app"/></field>
<field name="emailAddess" title="${uiLabelMap.PartyEmailAddress}">
<hyperlink target="/partymgr/control/EditCommunicationEvent" description="${emailResult.emailAddress}" target-type="inter-app">
<parameter param-name="partyIdFrom" from-field="userLogin.partyId"/>
<parameter param-name="partyIdTo" from-field="partyId"/>
<parameter param-name="communicationEventTypeId" value="EMAIL_COMMUNICATION"/>
<parameter param-name="contactMechIdTo" from-field="contactMechId"/>
<parameter param-name="contactMechTypeId" value="EMAIL_ADDRESS"/>
<hyperlink>
</field>
<field use-when="telResult.get(&quot;extension&quot;)!=null" name="telephone" title="${uiLabelMap.PartyPhoneNumber}"><display description="${telResult.countryCode} ${telResult.areaCode} ${telResult.contactNumber} Ext:${telResult.extension}"/></field>
<field use-when="telResult.get(&quot;extension&quot;)==null" name="telephone" title="${uiLabelMap.PartyPhoneNumber}"><display description="${telResult.countryCode} ${telResult.areaCode} ${telResult.contactNumber}"/></field>
<field name="contactMechPurposeTypeId" entry-name="telResult.contactMechPurposeTypeId" title="${uiLabelMap.CommonPurpose}"><display-entity entity-name="ContactMechPurposeType"/></field>