Is it possible to restrict user to view the Service Type that is currently in progress on ticket?
If yes, kindly suggest the solution for this.
Thanks & Regards,
Balram Singh Deswal
You can just use a pdm_if statement around the tab in the corresponding form
may you want to do for everyone use <PDM_IF 0></PMD_IF> around it
may you want to do for specific like a role use something like <PDM_IF "$SESSION.ROLE_ID" =="40001"></PDM_IF> //Where id is corresponding to the role for who you would like to hide.
e.g. for analyst
<PDM_IF "$SESSION.ROLE_ID" == "400350"><PDM_MACRO name=tab title="Service Type" file="xx_stype_tab.htmpl" id=stype></PDM_IF>
<PDM_IF "$SESSION.ROLE_ID" == "400350">
<PDM_MACRO name=tab title="Service Type" file="xx_stype_tab.htmpl" id=stype>
Hope this help.
Hi jmayer ,
What if when i have to hide service type records view upon any custom attribute value created on sdsc object (correction slatpl object).
Thanks for your response. It is working but requirement is little different (small correction as to what Pradeep mentioned in his comment).
There is a custom attribute in slatpl object. We need to show the information to the user if the value of this custom attribute matches with the organization field of the assignee. So the Service Type tab will be visible always, only the records present in this tab will be visible based on the condition mentioned.
can you explain a little more your example?
what values will need to be hidden or not?
if this static row at the top of the service type tab you can use the same technics to show/hide those
something like below in the xx_stype_tab.htmpl form:
<PDM_IF "assignee.organization" == "mycustomattributes"></PDM_IF>
if you want to hide some specific rows displayed in the dynamic list like the service target and service type events. you will need to modify the respective PDM_LIST and add your where clause there.
<PDM_LIST SOURCE=args.sla_events ESC_STYLE=C>
tag an example will need to be modified to meet your requirements.
Hope that help
I need to show only those attached events for which the value of custom attribute (let's say zorganisation in slatpl object) has the same value of the organization value of assignee.
What will be the corresponding PDM_LIST tag for the same (with where clause syntax)?
Probably you can share the screenshot for clarity on your requirement .
Retrieving data ...