We have a portal hosted on Liferay and in that I have created several organizations and locations under a parent organization in Liferay. Now in our custom form portlets we have a drop down for both organizations and locations which display the already available organizations and locations created by me in Liferay.
The issue is that I did an entire new setup as my WebSphere Application Server had expired and after setting up our portal, now I am not able to see the locations and organizations in the drop down of any form and if I submit any form without selecting the organization/location it throws an error in the log -
ERROR [WebContainer : 9][render_portlet_jsp:154]
com.liferay.portal.NoSuchOrganizationException: No Organization exists
with the primary key 0
Below is the snapshot of the structure of my locations and organizations where Reliance Power is the parent organizations and it has 8 suborhganizations.
Try it :
Go to Control Panel (With admin user)
Server Administration
On Resources Tab find something like that "Regenrate all indexes ..."
Execut it
I hope this helps
Related
Currently all the members created in liferay are displays to all.
How I can filter out the users based on the sites?
You should use Organization for distributed user management. Follow below step to achieve your requirement.
Add Organization
Goto your Site->Membership->Organization and select the organization you added
Add the user in the organization you want to give access for user management for the selected site and assign organization administration.
Login with the organization administration and you will see only site specific users.
hope this will help you.
Liferay 6.2.x should allow the automatic assignment of a user to an organization according to the answer by #Prakash and #AnkitP to this question Giving access to organization pages to new user.
The assignment is done in Control Panel > Portal settings > Users > Default User Associations.
According to the answer there should be an association for Organization, but in my fresh install of 6.2 GA2 the only organization association is Organization Sites. When I put an organization name in that field, new users were automatically assigned to the organization site (that was associated with the organization I entered) - but they were NOT added to the organization itself. Also, the assignment was immediate, instead of after the user logged in, which is when it should have happened according to the answer. I did check again after the user logged in as well, and the assignment to the organization is not made. The user is show as not belonging to any organization still.
So I am wondering if this is a change in behavior in the latest version, a setting I missed somewhere, or what. If it is the new intended behavior then I'm back to writing a hook.
I need to add portlet for organizations members and administrators. I have organization as a root and other organization inherited from it, it must done by a hook or what?
My second question I have added custom field "arabic name textfield" inside details section successfully but failed in making them required sections (validation) and not accept Arabic language
thank you
EDIT
I have added organization of many types from control panel I need to add a portlet for users in the organizations with their own roles without using control panel "users of organizations and administrators of organizations see a portlet to manage ...."
The second one I need to validate a custom field of organization form like name or email address.
I have an organization in which I created a site. So the site belongs to the organization, as stated in the Site Memberships page:
This site belongs to Jobyourself which is an organization of type booster-club. All users of Jobyourself are automatically members of the site and site roles are automatically assigned to them based on the organization roles they have in Jobyourself as shown in the table below.
I would now like to delete the organization, but keep the site. How can I decouple the group from the related organization (programmatically or through the control panel) ?
I am using liferay 6.1 GA3.
Best regards,
Alain
Alain, From Control Panel navigate to your Site which you want to decouple, From Action button click on Site Membership you should see Organization Tab where you can remove the organization linking.. Hope this helps.
I am new at Liferay, please help me this problem.
Firstly, I create a new Organisation named : Sample Organisation.
Then, I create a new Role named : Sample Creator.
Then, I create a new User and assign Sample Organisation, Sample Creator to this user.
Finally, I sign in this new user.
But I can't find Sample Organisation as the bottom image.
Thank all.
http://www.liferay.com/c/message_boards/get_message_attachment?messageId=22771000&attachment=liferay+training.jpg
In Liferay 6.1 Organizations can have a site attached to them, but this is not mandatory. There's an item called "Organization Site" with a checkbox "Create Site" that you'll have to check in order to have a site.
Plus, in order to be able to navigate to such a site, it will have to have pages.
Both are frequent reasons for people missing access to a site (or organization).
In Liferay 6.0 the first step is not necessary: An organization is a site in that version, but you'll still have to have pages.