[ 
https://issues.apache.org/jira/browse/OFBIZ-7518?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15341107#comment-15341107
 ] 

Ankush Upadhyay edited comment on OFBIZ-7518 at 6/21/16 5:47 AM:
-----------------------------------------------------------------

Further researched on this and found that there are some more places from where 
createProductStoreRole calls but good thing is all wrapper methods creates role 
first and then call createProductStoreRole service so we don't need to worry 
about those workflows.
Here are the wrapper methods:
1. createUser from UserEvents.xml
2. createEbayAccount from EbayServices.xml
3. createCustomer from CustomerEvents.xml
4. createCustomerProfile from  CustomerEvents.xml

There is one more place in catalog manager from where user can create product 
store roles but unfortunately, my first solution won't work here as there is 
one lookup to find party and we don't have partyId so condition to fetch all 
party roles won't work because I don't find any way to trigger dropdown 
condition and refresh the values on party lookup selection in form widget.


was (Author: ankush.upadhyay):
Further researched on this and found that there are some more places from where 
createProductStoreRole calls but good thing is all wrapper methods creates role 
first and then call createProductStoreRole service so we don't need to worry 
about those workflows.
Here are the wrapper methods:
1. createUser from UserEvents.xml
2. createEbayAccount from EbayServices.xml
3. createCustomer from CustomerEvents.xml
4. createCustomerProfile from  CustomerEvents.xml

> Unable to create Product Store Roles from Party manager
> -------------------------------------------------------
>
>                 Key: OFBIZ-7518
>                 URL: https://issues.apache.org/jira/browse/OFBIZ-7518
>             Project: OFBiz
>          Issue Type: Bug
>          Components: party
>    Affects Versions: Upcoming Branch
>            Reporter: Ankush Upadhyay
>         Attachments: EnsureAndCreateProductStoreRole.patch, 
> ProductStoreRoleError.png, RenderPartyAssignedRolesInDropDown.patch
>
>
> System throws error while adding new product store role.
> Steps to reproduce:
> 1. Login to party manager and go to Company party profile page.
> 2. Navigate to Product Store Roles tab.
> 3. Try to create new product store role for any product store and any 
> roleTypeId.
> 4. System should show violation of foreign key constraint error.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to