vish

Resolved:Edit mode on clicking a ticket

7 posts in this topic

Posted (edited)

Is there a way that when we click on a ticket it just goes straight into “Edit” mode?  Is this possible to customize in Service Desk 14.1 cp3??

Edited by vish

Share this post


Link to post
Share on other sites

Posted (edited)

hi,

yeah, in lsCol you need to replace "link=yes" with fmtfunc, which should have url with OP=UPDATE, should be something like this:

function zEditCr(value) {
	rs.data("<a href=\"#\" onclick=\"showEdit('" + crPersid + "');\">" + value + "</a>");
}
<PDM_MACRO name=lsWrite text="var crPersid = \"@{list.persistent_id:}\";">
<PDM_MACRO name=lsCol hdr="ref_num" attr="ref_num" fmtfunc="zEditCr">

Regards, cdtj

Edited by cdtj

Share this post


Link to post
Share on other sites

Posted (edited)

hi cdtj,

I have tried your code and looks like there is a missing syntax in the URL construction, as seen from below screenshot.

URL_construct_error.png

I have tried appending the missing syntax manually to test the code further but running into other problems, see below screenshot for reference.

URL_construct_error2.png

Edited by vish

Share this post


Link to post
Share on other sites

I have updated my previous post, check it out.

 

Share this post


Link to post
Share on other sites

Hi cdtj, I'm not sure if your update to previous code was saved, as I'm still running into same problem after reapplying the code from above post.

Share this post


Link to post
Share on other sites

Really strange, updated code:

function zEditCr(value) {
	rs.data("<a href=\"#\" onclick=\"showEdit('" + crPersid + "');\">" + value + "</a>");
}
<PDM_MACRO name=lsWrite text="var crPersid = \"@{list.persistent_id:}\";">
<PDM_MACRO name=lsCol hdr="ref_num" attr="ref_num" fmtfunc="zEditCr">

showEdit is a function used in a Right click menu.

1 person likes this

Share this post


Link to post
Share on other sites

The problem is with my current customized list form. After applying this code on a clean list form, it worked like a charm.

Thank You so much for your help.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now

  • Announcements

    • Gregg

      12/20/2015

      Until I can transfer the wiki content over to the new Articles, you can find the old content here: http://www.greggsmith.net/wiki.
    • Gregg

      01/06/2016

      A special thanks to brianshs for creating a new site logo!