[ http://issues.apache.org/jira/browse/OFBIZ-455?page=all ]

Eriks Dobelis updated OFBIZ-455:
--------------------------------

    Attachment: orgContext.diff

This is my variation of Organizational Context selection. It saves Organization 
Context in the session. This is a) much simpler; b) has its own drawbacks as 
Adrian pointed.

It is currently activated only when working in Accounting application, but 
easily could be activated in others (controller.xml and Decorator screens 
should be updated in those applications). Organizational Context can be 
selected in select box near language select. No security checks are currently 
performed.

Current Organization Context can be requested by calling 
org.ofbiz.base.util.UtilHttp.getOrgContext(HttpSession session), 
org.ofbiz.base.util.UtilHttp.getOrgContext(HttpServletRequest request),
org.ofbiz.base.util.UtilHttp.getOrgContext(HttpSession session, String 
defaultOrgContext);

Current Organization Context can be set by calling: 
org.ofbiz.base.util.UtilHttp.setOrgContext(HttpSession session, String 
orgContext)

This is implemented in a similar way to set/getCurrencyUOM and set/getLocale.


> Selecting active organization party
> -----------------------------------
>
>                 Key: OFBIZ-455
>                 URL: http://issues.apache.org/jira/browse/OFBIZ-455
>             Project: OFBiz (The Open for Business Project)
>          Issue Type: New Feature
>            Reporter: Eriks Dobelis
>         Attachments: activeOrgParty.diff, orgContext.diff, 
> selectingOrganizationalContext.jpg
>
>
> Idea is to provide possibility to select active organization party id, which 
> then could be used:
> 1) to provide default in different components (e.g. in creating invoices, 
> payments, accounting transactions, etc.);
> 2) in implementation of OFBIZ-118, i.e. to show or hide data based on the 
> active organization;
> 3) to improve current Accounting/Companies/Admin so that organizationPartyId 
> is remembered throughout the session (if not changed).

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: 
http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to