cancel
Showing results for 
Search instead for 
Did you mean: 

OrgChart User OrgUnit root Live

Former Member
0 Kudos

Hey,

I am using STVN 2.1 OrgChart Live JAVA.

Is there any guide on how to set up the orgchart roots for each user? There are a few brief comments on the forums but no straight forward answers. I have messed around with the <rootvalue> and <defaultroot type="user"> in the AppResources file with no luck.

Accepted Solutions (0)

Answers (4)

Answers (4)

lukemarson
Active Contributor
0 Kudos

Hi Wade,

Can you confirm if your question was answered? If your query has been answered, please close the thread and mark it as answered. If the post remains open with activity for a month it will be closed automatically.

Best regards,

Luke Marson

Former Member
0 Kudos

Hi Wade,

please give those config changes a try and let us know if this works for you - I was able to successfully do it.

Make sure to back up before making these changes.

In Appresources.xml:

1- in data element 'UserPopulationInfo', change <field name="Org_unit"> to <field name="ID">

2- in Orgchart name = 'SAPOrgUnitOrgChart', change <defaultroot type="root"/> to <defaultroot type="user"/>

AND change <rootvalue><![CDATA[00000100]]></rootvalue> to <rootvalue><![CDATA[]]></rootvalue> (delete the hard-coded root number)

In DownloadSchema.xml:

1- in function name = 'SAP_UserPopulation', change <alias>Org_Unit</alias> to <alias>ID</alias>

in Roles.xml:

1- change all instances of 'Org_unit' to 'ID'

Thank you,

Best Regards,

Nabil

lukemarson
Active Contributor
0 Kudos

Hi Wade,

OrgChart usually renders the whole chart in Live, but the data you see is restricted by structural authorizations. It is possible to setup authorizations to show just the user's area, but I've not seen it work too many times. You need to use a custom root setting based on the user's user object.

The solution is in this thread: [|]

Please note that in the second statement I missed out an apostrophe after Object_ID. Just change Object_ID to the starting point field in the user object (possibly OrgID or ParentNo).

Good luck!

Luke

Former Member
0 Kudos

Hi Wade,

Does your client use HR OM structureal authorizations? If they do, the live solution should only show them the org structure within thier area of responsibility as long as thier Nakisa security role is assigned to thier appropriate SAP role.

Other than that, I think the other option is to store SAP user preference in an RBDMS connected to Nakisa so the users area of responsibility org unit can be read and used during Nakisa's call to SAP to render the users Org Chart.

thanks.

JB