I'm facing one issue in "Project Summary" view but the reason can be generic, below I try to explain in detail:
I've used "Change_Activity > Project" to track our on-hand projects, the default slots are working fine.
Recently, our project review would like to see more specific background of a project, e.g. "Drivers for Change", "Initiative Objectivies" etc.., thus, I don't want to mix all of them in one single "Description" slot which cannot easily distinguish among them.
So, learnt from University documentation, I created three new slots as below first:
- project_drivers_for_change
- project_initiative_objectives
- project_provided_value
Then I use "Project" Forms tab, to place them under "Description" slot, and all of them select "Widget Type = TextAreaWidget", see attached image: essential-project-form-01.png
After that, I add following lines in file "enterprise > core_el_project_summary.xsl":
Code: Select all
<!-- "WHY" Page -->
<xsl:variable name="projectDriversForChange" select="/node()/simple_instance[name = $this/own_slot_value[slot_reference = 'project_drivers_for_change']/value]"/>
<xsl:variable name="projectInitiativeObjectives" select="/node()/simple_instance[name = $this/own_slot_value[slot_reference = 'project_initiative_objectives']/value]"/>
<xsl:variable name="projectProvidedValue" select="/node()/simple_instance[name = $this/own_slot_value[slot_reference = 'project_provided_value']/value]"/>
Code: Select all
<!--Setup "Drivers for change" Section-->
<div class="col-xs-12">
<div class="sectionIcon">
<i class="fa fa-list-ul icon-section icon-color"/>
</div>
<h2 class="text-primary">
<xsl:value-of select="eas:i18n('Drivers for Change')"/>
</h2>
<div class="content-section">
<div id="projdriver"/>
</div>
<hr/>
</div>
Code: Select all
var project = {}
Code: Select all
"projectDriver":"<xsl:value-of select="$projectDriversForChange"/>",
"projectObj":"<xsl:value-of select="$projectInitiativeObjectives"/>",
"projectValue":"<xsl:value-of select="$projectProvidedValue"/>",
Code: Select all
$('#projdriver').html(project.projectDriver);
$('#projobjective').text(project.projectObj);
$('#projvalue').text(project.projectValue);
Are there any steps I miss to populate my self-added slot to the view?
Thanks greatly,
Xiaoqi