| Author |
Message |
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 31/03/2012 00:01:51
|
Allan
SysAider
Joined: 10/01/2012
Messages: 2
Offline
|
Hi everyone,
I foud a topic that worked fine with adding a custom list in the activities. I used as well the getCustList1Caption() option to get the information in my new field.
I started to have problems when i tried to add a second custom field in the activities.
So i followed the instructions for adding my second field like for the first one, added the lines in the script and everything works ok except that the caption of the second field i added returns the value of my first custom list field..... ?????
my custom fields are cust_list1 and cust_list2.
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 31/03/2012 13:56:05
|
Allan
SysAider
Joined: 10/01/2012
Messages: 2
Offline
|
Sorry .. here is my code :
<table dir="$resource.getString('dir')">
<tr>
<td class="Form_Ctrl_Label" ><label> $resource.getString('user'):</label></td>
<td class="Form_Ctrl_Fields"><table><tr>$frm.printControl('user_name', true, true, null)</tr></table></td>
</tr>
<tr>
<td class="Form_Ctrl_Label" ><label> $resource.getString('SRWorkTime.startTime'):</label></td>
<td class="Form_Ctrl_Fields"><table><tr>$frm.printControl('from_time', true, true, null)</tr></table></td>
</tr>
<tr>
<td class="Form_Ctrl_Label" ><label> $resource.getString('SRWorkTime.endTime'):</label></td>
<td class="Form_Ctrl_Fields"><table><tr>$frm.printControl('to_time', true, true, null)</tr></table></td>
</tr>
<tr>
<td class="Form_Ctrl_Label" ><label> $resource.getString('SRWorkTime.cust_list1'):</label></td>
<td class="Form_Ctrl_Fields"><table><tr>$frm.printControl('cust_list1', true, true, null)</tr></table></td>
</tr>
<tr>
<td class="Form_Ctrl_Label" ><label> $resource.getString('SRWorkTime.cust_list2'):</label></td>
<td class="Form_Ctrl_Fields"><table><tr>$frm.printControl('cust_list2', true, true, null)</tr></table></td>
</tr>
<tr>
<td class="Form_Ctrl_Label" ><label> $resource.getString('SRWorkTime.total'):</label></td>
<td class="Form_Ctrl_Fields"><table><tr>$frm.printControl('totalTime', true, true, null)</tr></table></td>
</tr>
<tr>
<td class="Form_Ctrl_Label" ><label> $resource.getString('description'):</label></td>
<td class="Form_Ctrl_Fields"><table><tr>$frm.printControl('description', true, true, null)</tr></table></td>
</tr>
<tr>
<td class="FieldBox" >$addButton</td>
<td> </td>
</tr>
<tr>
<td> </td>
<td> </td>
</tr>
<tr>
<td colspan="2">
<div class="Maxed_Width">
<table class="Grid">
<tbody>
<tr>
<td class="Grid_Body">
<div class="GridScroller">
<table id="t" class="Grid_Data">
<tbody>
<tr class="Grid_Headers">
<th style="cursor:text;">$resource.getString('user')</th>
<th style="cursor:text;">$resource.getString('SRWorkTime.startTime')</th>
<th style="cursor:text;">$resource.getString('SRWorkTime.endTime')</th>
<th style="cursor:text;">$resource.getString('SRWorkTime.total')</th>
<th style="cursor:text;">$resource.getString('SRWorkTime.cust_list1')</th>
<th style="cursor:text;">$resource.getString('description')</th>
<th style="cursor:text;">$resource.getString('SRWorkTime.cust_list2')</th>
<th style="cursor:text;">$resource.getString('SRWorkTime.action')</th>
</tr>
#foreach( $activity in $activities )
<tr >
<td class="Form_Ctrl_Label">$activity.user</td>
<td class="Form_Ctrl_Label">$dateFormat.format($activity.fromTime)
$timeFormat.format($activity.fromTime)</td>
<td class="Form_Ctrl_Label">$dateFormat.format($activity.toTime) $timeFormat.format($activity.toTime)</td>
<td class="Form_Ctrl_Label">$activity.totalTimeStr</td>
<td class="Form_Ctrl_Label">$activity.getCustList1Caption()</td>
<td class="Form_Ctrl_Label">$activity.description</td>
<td class="Form_Ctrl_Label">$activity.getCustList2Caption()</td>
<td class="Form_Ctrl_Label">
<table class="Button3Parts" onclick="sract_ExecuteDel('$activity.id')">
<tbody class="Purple">
<tr class=" - state - ">
<td class="ButtonFirst"> </td>
<td class="ButtonLabel">
<span>$resource.getString('delete')</span>
</td>
<td class="ButtonLast"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
#end
<tr >
<td class="Form_Ctrl_Label" colspan=3><div align="center">$resource.getString('SRWorkTime.total')</div></td>
<td class="Form_Ctrl_Label">$grandTotal</td>
<td class="Form_Ctrl_Label" colspan=2> </td>
</tr>
</tbody>
</table>
</div>
</td>
</tr>
</tbody>
<tfoot>
<tr>
<td colspan="3" class="Grid_Footer">
<table class="Maxed">
<tbody>
<tr>
<td class="Footer_Left"> </td>
<td class="Footer_Center"> </td>
<td class="Footer_Right"> </td>
</tr>
</tbody>
</table>
</td>
</tr>
</tfoot>
</table>
</div>
</td>
</tr>
</table>
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 18/04/2012 09:06:18
|
Joseph Zargari
VP Customer Relations

Joined: 26/03/2006
Messages: 516
Offline
|
Hi Allan,
The getCustList2Caption() should get you the caption of the value, instead of the numeric key. I think SysAid 8.5 has a bug that causes it to show the numeric key.
Please submit a service request with your account manager to confirm the bug and get notified when fixed.
Thanks,
Joseph.
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 03/05/2012 10:33:01
|
DBlasius
SysAider
Joined: 08/01/2012
Messages: 4
Offline
|
Hi all!
Is any solution?
I have the same problem. Everything is OK, except the "$activity.getCustList2Caption()".
Please send me some information about the solution.
Thanks
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 04/05/2012 15:46:54
|
ales_krestan
SysAider
Joined: 08/07/2011
Messages: 2
Offline
|
Hi, I know it is a stupid question, but where do I find the option to edit the HTML code snippet for Activity form?
Thanks
Regards
A.K.
|
|
|
![[Post New]](/Sysforums/templates/default/images/icon_minipost_new.gif) 08/05/2012 17:10:11
|
Joseph Zargari
VP Customer Relations

Joined: 26/03/2006
Messages: 516
Offline
|
Hi A.K.
The HTML code that affects activities is in Customize > Forms. In some editions, it may appear in Customize > Entities > Service Request > Activities > Advanced tab instead.
Thanks,
Joseph.
|
|
|