Author: hansbak
Date: Wed Sep 30 10:56:16 2009
New Revision: 820242
URL:
http://svn.apache.org/viewvc?rev=820242&view=revLog:
add the optional ability to add a parentRoleId, when creating a new role
Modified:
ofbiz/trunk/applications/party/servicedef/services.xml
ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml
Modified: ofbiz/trunk/applications/party/servicedef/services.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/servicedef/services.xml?rev=820242&r1=820241&r2=820242&view=diff==============================================================================
--- ofbiz/trunk/applications/party/servicedef/services.xml (original)
+++ ofbiz/trunk/applications/party/servicedef/services.xml Wed Sep 30 10:56:16 2009
@@ -196,6 +196,7 @@
location="org.ofbiz.party.party.PartyServices" invoke="createRoleType" auth="true">
<description>Create a new role type</description>
<attribute name="roleTypeId" type="String" mode="IN"/>
+ <attribute name="parentTypeId" type="String" mode="IN" optional="true"/>
<attribute name="description" type="String" mode="IN"/>
<attribute name="roleType" type="org.ofbiz.entity.GenericValue" mode="OUT"/>
</service>
Modified: ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml
URL:
http://svn.apache.org/viewvc/ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml?rev=820242&r1=820241&r2=820242&view=diff==============================================================================
--- ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml (original)
+++ ofbiz/trunk/applications/party/webapp/partymgr/party/PartyForms.xml Wed Sep 30 10:56:16 2009
@@ -975,8 +975,13 @@
</field>
<field name="add" title="${uiLabelMap.CommonAdd}"><submit/></field>
</form>
- <form name="AddRoleType" type="single" title="Add a new roletype" target="createroletype">
- <field name="roleTypeId" title="${uiLabelMap.PartyRoleTypeId}" required-field="true" entry-name="dummy"><text/></field>
+ <form name="AddRoleType" type="single" title="Add a new roletype" target="createroletype" list-name="parentRoleList">
+ <field name="roleTypeId" title="${uiLabelMap.PartyRoleTypeId}" required-field="true" entry-name="dummy" position="1"><text/></field>
+ <field name="parentTypeId" position="2">
+ <drop-down allow-empty="true">
+ <list-options list-name="parentRoleList" key-name="roleTypeId" description="${description}"/>
+ </drop-down>
+ </field>
<field name="description" title="${uiLabelMap.CommonDescription}" required-field="true"><text/></field>
<field name="save" title="${uiLabelMap.CommonSave}"><submit/></field>
</form>