on 12-12-2012 4:57 PM
Hi,
If i go to OrgChart standard view I cannot see Position ID(only i can see name of the position and name of the person) in the box(node).
But position ID already exists,if i go to OrgChart-OrgStructure-Position hierarchy-views-pos_standard-Position holder ID(template field name)-Position ID(data element field)
But still i cant see Position ID.
Regards,
Xavier.
Xavier,
Position ID is shown in AdminConsole field mappings for all views and available in the view template but not shown to the end user. This is the standard behaviour. The position ID is needed in the template so it can be used for other functionality (to pass to the details panel when you click on the box for example).
The logic of the view (contained in the XSL generated from the template) can be altered to show the field if you want to see it. For example, I have done it before to put the ID in brackets after the Position title.
Hope that helps,
Stephen
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Xavier,
Also, since the field isn't in the detaildata linked to this, you will need to add it to that too (for SAP_Live_RFC this is "pos_standard_TopLevelDetailf532615d8a9a44f.xml").
Note: It is in the data element, so no work required there.
Field is called POSITION_ID (name and alias).
So add field POSITION_ID to the fieldset "All" in the detaildata, then change the view XSL. You could add a variable at the top of the view XSL, as Luke suggested, like this:
<xsl:variable name="PositionID" select="/cds/sections/section[@name='pos_standard_TopLevelDetailf532615d8a9a44f']/detail[@name='pos_standard_TopLevelDetailf532615d8a9a44f']/record/field[@name='POSITION_ID]"/>
and then amend the various templates so it appears in the correct place on Flex/HTML and when printed ...
OR if you wanted it to appear after the name field then you could append Position ID value to the end of the existing variable "Position" using XSLT and it would appear there (you could append with brackets either side). This saves you having to alter any other part of the XSL view template.
Stephen
Hi Stephen/Luke,
I added the field as specified-----Also, since the field isn't in the detaildata linked to this, you will need to add it to that too (for SAP_Live_RFC this is "pos_standard_TopLevelDetailf532615d8a9a44f.xml").
Also added-So add field POSITION_ID to the fieldset "All" in the detaildata, then change the view XSL.
<xsl:variable name="PositionID" select="/cds/sections/section[@name='pos_standard_TopLevelDetailf532615d8a9a44f']/detail[@name='pos_standard_TopLevelDetailf532615d8a9a44f']/record/field[@name='POSITION_ID]"/>
Now i can see the field Position ID (both in template field name and data element field) in Admin Console:OrgChart-OrgStructure Position hierarchy-Views-Standard view.
But still i cannot see the Position ID in the OrgChart OrgStructurePosition hierarchy (box)node view.
Regards,
Xavier.
Hi Xavier,
Once you've assigned it as a variable you then need to add the field for display in the html-display and flex-display templates within your XSL template file. If you look for the other variables you can see what code is used to visualize those fields (in HTML or FleXML).
Best regards,
Luke
Hi guys,
I'm facing the exact same issue.
The only problem is that I can't seem to find the files where I should add the code.
Could anbody be more precise on the location of the file, which file and where in the code to add this?
Thanks a lot in advance!
Kr,
Gerrit
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Stephen,
Now I need to add the Position ID next to the Position Name in brackets(OrgChart Position Node-Standard View)
.As suggested by you i tried to add but it is not reflecting.This we are doing in OrgChart3.0sp3-SAP_LIVE_2.
Can you please tell how to append POSITION_ID in XSL from TemlatesGenerated.I feel the issue is in appending also i checked with XSLT Editor.
Regards,
Xavier.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Xavier,
For Live_2 build it is a little different. Your Question does have "Live RFC" in the title!
Let me try again …
The data element (“SAPOrgUnitOrgChartTypeSHierarchyDataElement”) already has position id retrieved in it (Object_ID).
Therefore you only need to change the view XSL to take advantage of it.
Add a line
<xsl:variable name="PositionID" select="/cds/sections/section[@name='SAPOrgUnitOrgChartTypeSBasicViewDetails65fc41ff28964be']/detail[@name='SAPOrgUnitOrgChartTypeSBasicViewDetails65fc41ff28964be']/record/field[@name='Object_ID']"/>
Then amend the XSL file to use this new variable wherever you want to output it.
Stephen
Hi Xavier,
I assume that you're referring to the Standard view for Positions? I don't believe that Position ID is displayed in the Standard view for Positions.
Best regards,
Luke
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
69 | |
14 | |
8 | |
5 | |
5 | |
5 | |
5 | |
4 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.