[ 
http://issues.apache.org/jira/browse/OFBIZ-455?page=comments#action_12449700 ] 
            
Adrian Crum commented on OFBIZ-455:
-----------------------------------

To answer #1: I like the idea of having it under the language selection box. 
That is a much better implementation than what we have here. My implementation 
allows for a contextless login. Application code decides what to do if there is 
no context selected (usually it does nothing to filter results). The admin 
controls if a user is allowed contextless logins.

Jacopo,
Persisting the selected company in the session has one major drawback: if the 
user changes companies in another session, the remaining sessions don't know 
about the change. The end result is confusing for the user. We solved that 
problem here by keeping the company selections for all logged-in users in a 
static map. I don't like that solution however, because it takes up memory and 
may create problems in a multiple server environment. So, the bottom line is, 
the user's currently selected company must be kept in an entity and it must be 
looked up for each request. I'm thinking the ViewSettings entity would be best.

To answer #2: Of course the user should be allowed to change contexts. The 
admin controls which contexts a user can use.

To answer #3: I discussed this in OFBIZ-118.

Before I submit my code, we need to decide which Jira issue we want to continue 
this effort in - #455 (this one) or #118 (the original discussion).

I'll post my code with recommended changes. As I mentioned in OFBIZ-118, Si 
Chen and I have followed parallel paths on this concept. Since his work is 
already in the project, my code will have to be refactored to mesh with his.

A topic I would like to toss out there is what this feature should be called. 
The financials module refers to it as "Active Company." My implementation 
refers to is as an "Organization Context." I chose that term because I believe 
it eliminates confusing "Active Company" with another company - like a customer 
or supplier. I also liked that term because I believe a feature such as this 
could be used for much more than just selecting an active company. I'm not 
married to the term however. I'll go along with whatever the community decides.


> 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, 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