Jump to content
chirag

Back button on employee page

Recommended Posts

We are using CA SDM 12.6

Once employee opens any ticket detail page, he has the link to go back to home page and not the list page.

I added link to list page similar to what was there for home page but it is not working and gives a blank page.

How can this back button functionality be achieved?

Share this post


Link to post
Share on other sites

In the std_body_site.htmpl page the highlighted code was added:(clicking on back does not work and displays a blank page)

<PDM_IF "1" != "${args.KEEP.IsPopUp:0}" && "1" != "${args.popupType:0}">

if (for_role)

{

document.write(' <A HREF="$cgi?SID=$prop.SID+FID=123+OP=DISPLAY_FORM+HTMPL=list_wf.htmpl" onclick="detailCancel();return true;" ');

document.writeln('accesskey=m><span>Back</span></A> ');

document.write(' <A HREF="$cgi?SID=$prop.SID+FID=123+OP=DISPLAY_FORM+HTMPL=home.htmpl" onclick="detailCancel();return true;" ');

document.writeln('accesskey=m><span>Home</span></A> ');

document.writeln('<SPAN class="menulink_separator">|</SPAN>');

document.write(' <A HREF="$cgi?SID=$prop.SID+FID=123+OP=DISPLAY_FORM+HTMPL=about.htmpl" onclick="detailCancel();return true;" ');

document.writeln('><span>Contact Us</span></A> ');

// document.writeln('<SPAN class="menulink_separator">|</SPAN>');

// document.write(' <a href="java script:help_on_form(\'$prop.form_name\');" ');

// document.writeln('><span>Help</span></a> ');

}

else

{

document.write(' <A HREF="$cgi?SID=$prop.SID+FID=123+OP=DISPLAY_FORM+HTMPL=list_wf.htmpl" ');

document.writeln('class=emp_menu accesskey=m><span>Back</span></A> ');

document.write(' <A HREF="$cgi?SID=$prop.SID+FID=123+OP=DISPLAY_FORM+HTMPL=home.htmpl" ');

document.writeln('class=emp_menu accesskey=m><span>Home</span></A> ');

document.write(' <A HREF="$cgi?SID=$prop.SID+FID=123+OP=DISPLAY_FORM+HTMPL=about.htmpl" ');

document.writeln('class=emp_menu><span>About</span></A> ');

// document.write(' <a href="java script:help_on_form(\'$prop.form_name\');" ');

// document.writeln('class=emp_menu><span>Help</span></a> ');

}

</PDM_IF>

Share this post


Link to post
Share on other sites

Still behaving the same way...I think I'm missing something and this is a totally wrong way of implementing the functionality.

Share this post


Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×
×
  • Create New...