Customisation Title | Fix Workflow Initiation Screen issue |
---|---|
Purpose of Customisation | Fix an issue with the Header frame when the Workflow Title is changed. |
Author | Greg Griffiths |
Date of Customisation | 08 May 2003 |
Covers Livelink | Livelink 9.0.0.1 |
Livelink Modules | WebWork |
Affected Templates | \webwork\html\tstartrightframe.html |
Customisation Format | HTML |
Download Here | Download as a ZIP file |
The Workflow Initiation screen allows you to input a Title for your workflow - or you can use another customisation to prepopulate the title using values From your initiation PDF Form or WebForm as your title. However, when you amend the title generated and save these changes back, the title displayed in the header does not match that shown in the header bar as shown in the following screenshots :
Before Change of Title | After Change of Title |
---|---|
As you can see form the screenshots, the Workflow Title in the header bar does not match that in the Initiate As form field in the second screenshot.
The Workflow Title used in the Header frame is stored in its URL, and is this frame is not reloaded when a title is changed, we will need to compare the title in the Header Frame's URL and that in the Initiate As form field, if they are different then amend the URL and then reload the frame with the correct URL and Workflow Title, as follow :
clearDirty();
function getTitle()
{
var urla=parent.parent.FrameTop.location.toString();
var wftitle;
// if we are on the general pane and we have a title in the QS
if ((urla.indexOf('name=')>0) && (document.myForm.Title))
{
wftitle=urla.substr(urla.indexOf('name=')+5);
// if they are not equal
if (wftitle!=document.myForm.Title.value)
{
newTitle=urla.substring(0,urla.indexOf('name=')+5) + document.myForm.Title.value.replace(/ /g,"+");
// reload the other frames so that they have the new title
parent.parent.FrameTop.location=newTitle;
parent.parent.FrameLeft.location.reload();
}
}
}
%// -->
</SCRIPT>
<body onload="getTitle();">
Before Change of Title | After Change of Title |
---|---|