Download Livelink Integration Manual
Transcript
LivelinkIntegrationManual_en.book Page 105 Monday, May 15, 2006 3:50 PM
Livelink Functions in a Website
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<tr>
<td><%= type.format() %></td>
<% if (url != null) { %>
<td><a href="<%= url %>" target="content">
<%= title.format() %></a></td>
<% } else { %>
<td><%= title %></td>
<% } %>
<td><%= comment.format(); %></td>
<td><%= user.getName() %></td>
<td><%= create.format(null, "short") %></td>
<td><%= modified.format(null, "short") %></td>
</tr>
<%
}
%>
</table>
LivelinkObject is used to retrieve the icon that is associated with the
object. The URL used for accessing the icon can be composed with the
following code:
String imgUrl = "{VIPDEPLOYMENT_URL}/" + livelinkObj.getImageUrl()
Displaying a Form for Adding a Document (f or m . js p )
The following form can be provided for entering the information required
for adding a Livelink document. The form contains input fields for the title,
the comment, and for selecting a file. The node ID, which is passed on as
a parameter, identifies the folder to which the document will be added. The
create.jsp page that is called by form.jsp creates the document.
1
2
3
4
5
...
String uploadNodeId = request.getParameter("uploadNodeId");
%>
<form name="form" action="create.jsp" method="post"
enctype="multipart/form-data" />
<input type="hidden" name="returl" value="browser.jsp" %>">
Livelink – Integration Manual
105