CA Service Management

Assignee Field Read-Only after Inc is Created and saved 

Jun 26, 2015 11:40 AM

Do you want to force all Transfers through Activities\Transfer and not on the detail_in form?

 

Trying to make the Assignee field on a Inc Read-Only after the ticket has been saved during initial creation.

 

1.

 

after this line:

 

<PDM_MACRO name=dtlLookupReadonly hdr="Reported By" attr=log_agent>

 

and before this:

 

<PDM_MACRO name=dtlLookup hdr="Group" attr=group evt="onBlur=\\\"detailSyncEditForms(this)\\\"" make_required=yes>

 

detail_in.htmpl originally had:

 

<PDM_MACRO name=dtlLookup hdr="Assignee" attr=assignee evt="onBlur=\\\"detailSyncEditForms(this)\\\"" make_required=yes>

 

I change for:

 

<PDM_IF "$prop.form_name_3" == "edit" && $args.id == 0>

<PDM_MACRO name=dtlLookup hdr="Assignee" attr=assignee evt="onBlur=\\\"detailSyncEditForms(this)\\\"" make_required=yes>

<PDM_ELSE>

<PDM_MACRO name=dtlReadonly hdr="Assignee" attr=assignee>

</PDM_IF>

 

saved the file.

 

2.

Run "pdm_webcache -H"

 

3. On Browser: Clean-up your cache files and delete the browser cached/temp files and see the result.

 

 

---------------------------------

Author: Tiago Macul

Tiago MACUL's Blog


---------------------------------

Statistics
0 Favorited
3 Views
0 Files
0 Shares
0 Downloads

Related Entries and Links

No Related Resource entered.