Create a Portlet for leave
-------------------------- Key: OFBIZ-2400 URL: https://issues.apache.org/jira/browse/OFBIZ-2400 Project: OFBiz Issue Type: Sub-task Components: humanres Affects Versions: SVN trunk Reporter: Vikas Mayur Priority: Minor Fix For: SVN trunk Create a portlet for leave in Humanres component. This can be accessed from https://localhost:8443/humanres/control/EditEmployeeLeaves?partyId=DemoCustomer Steps: 1) Create a new file HumanResPortletData.xml with reader-name seed. 2) Add data for PortletCategory, PortalPortlet and PortletPortletCategory. Refer to xxxPortletData.xml, where xxx=component name (Accounting, Party, Order etc.) 3) Add data for My Portal. Refer to MyPortalTypeData.xml Note: PortletAttribute data can be added if required. For example see the screen "ListCustRequests" order/widget/ordermgr/RequestScreens.xml and the script under this screen "retrievePortletAttributes.groovy" 4) We can define a new portlet category for this component portlets. <PortletCategory portletCategoryId="HUMANRES" description="Human Resource Portlets"/> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
[ https://issues.apache.org/jira/browse/OFBIZ-2400?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Parimal Gain updated OFBIZ-2400: -------------------------------- Attachment: PortletForLeave.patch Implemented Functionality of portlet for leave, following are the information : 1) created HumanResPortletData.xml . 2) Entry done in ofbiz-component.xml for data file. 3) Created screen for leave list with name MyLeaveList in file EmployeeScreens.xml. 4) Entry done in HumanResUiLabels.xml for uiLable. 5) Prepared data in MyPortalTypeData.xml 6) Included Decorator corresponding to HR component in file CommonScreens.xml Problem: Steps should follow for finding the problem: 1) Login by admin, click on preferences and edit My Leave. 2) Add a portlet for the leave. 3) Then click on HR component. The problem is that My Leave tab also coming with HR menu bar but this is not the case for other portal/portlet. > Create a Portlet for leave > -------------------------- > > Key: OFBIZ-2400 > URL: https://issues.apache.org/jira/browse/OFBIZ-2400 > Project: OFBiz > Issue Type: Sub-task > Components: humanres > Affects Versions: SVN trunk > Reporter: Vikas Mayur > Priority: Minor > Fix For: SVN trunk > > Attachments: PortletForLeave.patch > > > Create a portlet for leave in Humanres component. > This can be accessed from https://localhost:8443/humanres/control/EditEmployeeLeaves?partyId=DemoCustomer > Steps: > 1) Create a new file HumanResPortletData.xml with reader-name seed. > 2) Add data for PortletCategory, PortalPortlet and PortletPortletCategory. Refer to xxxPortletData.xml, where xxx=component name (Accounting, Party, Order etc.) > 3) Add data for My Portal. Refer to MyPortalTypeData.xml > Note: PortletAttribute data can be added if required. > For example see the screen "ListCustRequests" order/widget/ordermgr/RequestScreens.xml and the script under this screen "retrievePortletAttributes.groovy" > 4) We can define a new portlet category for this component portlets. > <PortletCategory portletCategoryId="HUMANRES" description="Human Resource Portlets"/> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12705212#action_12705212 ] Hans Bakker commented on OFBIZ-2400: ------------------------------------ In general, if you have a problem with your development, find places where it does work (what you did) but then compare it to the places that do work. In this case the portlet screen should not have a decorator and is included in a screen with a decorator which is used in the ofbiz normal interface. Regards, Hans > Create a Portlet for leave > -------------------------- > > Key: OFBIZ-2400 > URL: https://issues.apache.org/jira/browse/OFBIZ-2400 > Project: OFBiz > Issue Type: Sub-task > Components: humanres > Affects Versions: SVN trunk > Reporter: Vikas Mayur > Priority: Minor > Fix For: SVN trunk > > Attachments: PortletForLeave.patch > > > Create a portlet for leave in Humanres component. > This can be accessed from https://localhost:8443/humanres/control/EditEmployeeLeaves?partyId=DemoCustomer > Steps: > 1) Create a new file HumanResPortletData.xml with reader-name seed. > 2) Add data for PortletCategory, PortalPortlet and PortletPortletCategory. Refer to xxxPortletData.xml, where xxx=component name (Accounting, Party, Order etc.) > 3) Add data for My Portal. Refer to MyPortalTypeData.xml > Note: PortletAttribute data can be added if required. > For example see the screen "ListCustRequests" order/widget/ordermgr/RequestScreens.xml and the script under this screen "retrievePortletAttributes.groovy" > 4) We can define a new portlet category for this component portlets. > <PortletCategory portletCategoryId="HUMANRES" description="Human Resource Portlets"/> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
In reply to this post by Nicolas Malin (Jira)
[ https://issues.apache.org/jira/browse/OFBIZ-2400?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12706008#action_12706008 ] Jyotsna Rathore commented on OFBIZ-2400: ---------------------------------------- I have tested the patch with the steps specified here, it is working fine for me with no "My Leave" tab in HR component. > Create a Portlet for leave > -------------------------- > > Key: OFBIZ-2400 > URL: https://issues.apache.org/jira/browse/OFBIZ-2400 > Project: OFBiz > Issue Type: Sub-task > Components: humanres > Affects Versions: SVN trunk > Reporter: Vikas Mayur > Priority: Minor > Fix For: SVN trunk > > Attachments: PortletForLeave.patch > > > Create a portlet for leave in Humanres component. > This can be accessed from https://localhost:8443/humanres/control/EditEmployeeLeaves?partyId=DemoCustomer > Steps: > 1) Create a new file HumanResPortletData.xml with reader-name seed. > 2) Add data for PortletCategory, PortalPortlet and PortletPortletCategory. Refer to xxxPortletData.xml, where xxx=component name (Accounting, Party, Order etc.) > 3) Add data for My Portal. Refer to MyPortalTypeData.xml > Note: PortletAttribute data can be added if required. > For example see the screen "ListCustRequests" order/widget/ordermgr/RequestScreens.xml and the script under this screen "retrievePortletAttributes.groovy" > 4) We can define a new portlet category for this component portlets. > <PortletCategory portletCategoryId="HUMANRES" description="Human Resource Portlets"/> -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online. |
Free forum by Nabble | Edit this page |