The file pertaining to customizing the column order in tasks is <calclient-dir>/tasksPrint.jsp
The common components present are Banner and Application bar.
You can customize the table column ordering.
The tasksPrint.jsp is located at <calclient-dir>/tasksPrint.jsp
Example 3–5 shows the code used to customize Tasks print view in a table with the columns in the order - 'Priority', 'Title', 'Due Date', 'Status', 'Type' :
<th class="TblThCl1" scope="col" nowrap><strong>
<%= getLocalizedLabel(session,
"uwc-calclient-tasks-Priority", "Priority") %></strong></th>
<th width="35%" scope="col" nowrap><strong><%= getLocalizedLabel(session,
"uwc-calclient-tasks-Title", "Title") %></strong></th>
<th scope="col" nowrap><strong><%= getLocalizedLabel(session,
"uwc-calclient-tasks-DueDate", "Due Date") %></strong></th>
<th scope="col" nowrap><strong><%= getLocalizedLabel(session,
"uwc-calclient-tasks-Status", "Status") %></strong></th>
<th scope="col" nowrap><strong><%= getLocalizedLabel(session,
"uwc-calclient-tasks-Type", "Type") %></strong></th>
</tr>
<jato:content name="ZeroTasks">
<tr>
<td class="TblTdCl1Lst" colspan="6"><%=
getLocalizedLabel(session, "uwc-calclient-tasks-NoTasksToDisplay-message",
"This view does not have any tasks to display.
Choose another filter or search for tasks.") %></td>
</tr>
</jato:content>
<jato:content name="NonZeroTasks">
<jato:tiledView name="TasksTiledView"
type="com.sun.uwc.calclient.TasksTileView">
<jato:hidden name="TaskCalID"/>
<jato:hidden name="TaskUID"/>
<jato:hidden name="TaskRID"/>
<tr>
<td <jato:content name="FirstColumnStyle"/>
align="center"><jato:text name="Priority" escape="false"/></td>
<jato:content name="IsConfidential">
<td <jato:content name="TitleColumnStyle"/>>
<%= getLocalizedLabel(session, "i18nModel",
"uwc-calclient-view-Busy", "Busy") %></td>
</jato:content>
<jato:content name="IsNotConfidential">
<td <jato:content
name="NormalColumnStyle"/>><strong><jato:text name="Title"/></strong><br>
<jato:content name="HasAlarm">
<img src="<%= getLocalizedLabel(session, "skinModel",
"uwc-calclient-NotifyImage", "../uwc/images/LrlNotify_1.gif") %>"width="12"
height="12" border="0" hspace="2" align="absmiddle" alt="<%=
getLocalizedLabel(session, "uwc-calclient-tasks-Notify", "Notify") %>"
title="<%= getLocalizedLabel(session, "uwc-calclient-tasks-Notify",
"Notify") %>">
</jato:content>
<jato:content name="IsRecurring">
<img src="<%= getLocalizedLabel(session, "skinModel",
"uwc-calclient-RecurringImage", "../uwc/images/LrlRecur_1.gif") %>"
width="12" height="12" border="0" align="absmiddle" hspace="2"
title="<%= getLocalizedLabel(session, "uwc-calclient-tasks-Recurring",
"Recurring")
%>" alt="<%= getLocalizedLabel(session, "uwc-calclient-tasks-Recurring",
"Recurring") %>">
</jato:content>
<jato:content name="IsPublic">
<img src="<%= getLocalizedLabel(session, "skinModel",
"uwc-calclient-PublicImage", "../uwc/images/LrlPrvPub_1.gif") %>"
width="12" height="12" border="0" hspace="2"
title="<%= getLocalizedLabel(session, "uwc-calclient-tasks-Public",
"Public") %>"
alt="<%= getLocalizedLabel(session, "uwc-calclient-tasks-Public",
"Public") %>">
</jato:content>
<jato:content name="IsExternal">
<br>
[<jato:text name="OwnerName"/>
(<jato:text name="CalendarName"/>)]
</jato:content>
</td>
</jato:content>
<td <jato:content name="NormalColumnStyle"/>>
<jato:text name="DueDate"/> <jato:text name="DueTime"/></td>
<td <jato:content name="NormalColumnStyle"/>>
<jato:text name="PercentStatusAsText" escape="false"/></td>
<td <jato:content name="NormalColumnStyle"/>>
<jato:text name="Category" escape="false"/></td>
</tr>
</jato:tiledView>
</jato:content>
|
Example 3–6 shows the code required to change the table column ordering so that it displays in the order title, due date, status, priority and type
<tr>
<th class="TblThCl1" scope="col" nowrap>
<strong><%= getLocalizedLabel(session,
"uwc-calclient-tasks-Priority", "Title") %></strong>
</th>
<th width="35%" scope="col" nowrap><strong>
<%= getLocalizedLabel(session,
"uwc-calclient-tasks-Title", "Due Date") %></strong></th>
<th scope="col" nowrap><strong><%= getLocalizedLabel(session,
"uwc-calclient-tasks-Status", "Status") %></strong></th>
<th scope="col" nowrap><strong><%= getLocalizedLabel(session,
"uwc-calclient-tasks-DueDate", "Priority") %></strong></th>
<th scope="col" nowrap><strong><%= getLocalizedLabel(session,
"uwc-calclient-tasks-Type", "Type") %></strong></th>
</tr>
<jato:content name="ZeroTasks">
<tr>
<td class="TblTdCl1Lst" colspan="6"><%= getLocalizedLabel(session,
"uwc-calclient-tasks-NoTasksToDisplay-message",
"This view does not have any tasks to display.
Choose another filter or search for tasks.") %></td>
</tr>
</jato:content>
<jato:content name="NonZeroTasks">
<jato:tiledView name="TasksTiledView"
type="com.sun.uwc.calclient.TasksTileView">
<jato:hidden name="TaskCalID"/>
<jato:hidden name="TaskUID"/>
<jato:hidden name="TaskRID"/>
<tr>
<jato:content name="IsConfidential">
<td <jato:content name="TitleColumnStyle"/>><%=
getLocalizedLabel(session, "i18nModel",
"uwc-calclient-view-Busy", "Busy") %></td>
</jato:content>
<jato:content name="IsNotConfidential">
<td <jato:content name="FirstColumnStyle"/> align="center"><strong>
<jato:text name="Title"/></strong><br>
<jato:content name="HasAlarm">
<img src="<%= getLocalizedLabel(session, "skinModel",
"uwc-calclient-NotifyImage", "../uwc/images/LrlNotify_1.gif") %>"
width="12" height="12"
border="0" hspace="2" align="absmiddle" alt="<%= getLocalizedLabel(session,
"uwc-calclient-tasks-Notify", "Notify") %>"
title="<%= getLocalizedLabel(session,
"uwc-calclient-tasks-Notify", "Notify") %>">
</jato:content>
<jato:content name="IsRecurring">
<img src="<%= getLocalizedLabel(session, "skinModel",
"uwc-calclient-RecurringImage", "../uwc/images/LrlRecur_1.gif") %>"
width="12"
height="12" border="0" align="absmiddle" hspace="2" title="<%=
getLocalizedLabel(session, "uwc-calclient-tasks-Recurring",
"Recurring") %>"
alt="<%= getLocalizedLabel(session, "uwc-calclient-tasks-Recurring",
"Recurring") %>">
</jato:content>
<jato:content name="IsPublic">
<img src="<%= getLocalizedLabel(session, "skinModel",
"uwc-calclient-PublicImage", "../uwc/images/LrlPrvPub_1.gif") %>"
width="12" height="12" border="0" hspace="2" title="<%=
getLocalizedLabel(session, "uwc-calclient-tasks-Public", "Public") %>"
alt="<%= getLocalizedLabel(session, "uwc-calclient-tasks-Public",
"Public") %>">
</jato:content>
<jato:content name="IsExternal">
<br>
[<jato:text name="OwnerName"/> (<jato:text name="CalendarName"/>)]
</jato:content>
</td>
</jato:content>
<td <jato:content name="NormalColumnStyle"/>>
<jato:text name="DueDate"/> <jato:text name="DueTime"/></td>
<td <jato:content name="NormalColumnStyle"/>>
<jato:text name="PercentStatusAsText" escape="false"/></td>
<td <jato:content name="NormalColumnStyle"/>>
<jato:text name="Priority" escape="false"/></td>
<td <jato:content name="NormalColumnStyle"/>>
<jato:text name="Category" escape="false"/></td>
</tr>
</jato:tiledView>
|