cancel
Showing results for 
Search instead for 
Did you mean: 

Blank positions views in org unit hierarchy

Former Member
0 Kudos

Nakisa version: OrgChart 4.1

Hi all,

I wanted to replace in views pos_standard and pos_portrait the position name by the position short. To achieve this, I made the template field named 'Position' point to Data element field POSITION_SHORT, instead of POSITION_NAME (out of the box setup) in both view templates. This method displays in view pos_standard the position short name instead of the long name (which is the intended result), but in view pos_portrait the content becomes blank (see screenshot).

Even stranger, when I revert the pos_portrait view back to its original setup (Position template field pointing to POSITION_NAME), the view stays blank!

There is no meaningful trace in the error log that could help me investigate this.

Is this something you have seen before?

Thanks for your help.

M.E.

Accepted Solutions (0)

Answers (1)

Answers (1)

StephenBurr
Active Contributor
0 Kudos

At top of template generated for pos_standard (in my 4.1 build that is pos_standard_f532615d8a9a44f.xsl), I would look to amend this line from


<xsl:variable name="Position" select="/cds/sections/section[@name='pos_standard_TopLevelDetailf532615d8a9a44f']/detail[@name='pos_standard_TopLevelDetailf532615d8a9a44f']/record/field[@name='POSITION_STEXT']"/>

to


<xsl:variable name="Position" select="/cds/sections/section[@name='pos_standard_TopLevelDetailf532615d8a9a44f']/detail[@name='pos_standard_TopLevelDetailf532615d8a9a44f']/record/field[@name='POSITION_SHORT']"/>

A few lines below, also amend STEXT to SHORT in:


<variablemapping>

<variablename>Position</variablename>

<detailname>pos_standard_TopLevelDetailf532615d8a9a44f</detailname>

<fieldname>POSITION_STEXT</fieldname>

</variablemapping>

Sounds like you might have done that BUT did you also update the detailsdata used by the Position Views?  By default they don't include the POSITION_SHORT field.

See "..\AppResources\detaildataconfiguration\pos_standard_TopLevelDetailf532615d8a9a44f.xml".  Duplicate the line for POSITION_STEXT in the fieldset and change one entry to POSITION_SHORT. Put a copy of this new file in your .delta. Save and Publish.

Stephen

Former Member
0 Kudos

Hi Stephen,

Thanks for your input (I wanted to insist on the fact that pos_portrait is the one not working. pos_standard is working fine).

By pointing the view's field to POSITION_NAME in the position chart views wizard, this had the effect to replace POSITION_NAME to POSITION_SHORT in the templates generated.

I checked the top level details files, and they have POSITION_SHORT. The odd thing though, is that the top level detail for pos_standard does not contain POSITION_NAME and the  one for pos_portrait does have both fields, plus a whole bunch of other fields (see attached).

Thanks Stephen,

M.E.