curioususer
07-08-2003, 12:10 PM
Hey everyone I am using the code i have below to access docushare (minus the serverurl username and passwords) and i need some help when i use the page the select box comes up empty any ideas on why?
ML>
<HEAD>
<TITLE>File Pick List</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#ff0000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF" BACKGROUND="?">
<!-- #Include File="CDocushare.asp" -->
<%
Dim RootContext, ds, arr, i
Set ds = New CDocushare
ds.Login "*******", "*******", "*****docushare/"
arr = ds.GetCollectionfiles(157)
For i = 0 To UBound(arr)
Response.Write arr(i).Title & "<br>"
Next
Response.Write "<p align=center><b>Project Context: " & RootContext & "</b></p>"
%>
<FORM ACTION="Attributes.asp" METHOD=post>
<table border="1" cellspacing="1" cellpadding="1" summary="File Pick List Formatting" width="100%">
<caption><em>Pick The Files and Destination Location</em></caption>
<tr>
<td>
<SELECT NAME="PickFiles" MULTIPLE SIZE="8" length="100">
<%
For i = 0 to Ubound(arr) %>
<OPTION value="<%= arr(i).Title %>">
<%
Next
%>
</SELECT><br>
Source Files
</td>
<td>
<INPUT TYPE="reset" NAME="resetForm" VALUE="Reset"><br>
<INPUT TYPE="submit" NAME="submitList" VALUE="Add Files">
</td>
<td>
Destination Location
</td>
</table><INPUT type=hidden name=Project value=<% = RootContext %>>
</FORM>
</BODY>
</HTML>
ML>
<HEAD>
<TITLE>File Pick List</TITLE>
</HEAD>
<BODY BGCOLOR="#000000" TEXT="#ff0000" LINK="#FF0000" VLINK="#800000" ALINK="#FF00FF" BACKGROUND="?">
<!-- #Include File="CDocushare.asp" -->
<%
Dim RootContext, ds, arr, i
Set ds = New CDocushare
ds.Login "*******", "*******", "*****docushare/"
arr = ds.GetCollectionfiles(157)
For i = 0 To UBound(arr)
Response.Write arr(i).Title & "<br>"
Next
Response.Write "<p align=center><b>Project Context: " & RootContext & "</b></p>"
%>
<FORM ACTION="Attributes.asp" METHOD=post>
<table border="1" cellspacing="1" cellpadding="1" summary="File Pick List Formatting" width="100%">
<caption><em>Pick The Files and Destination Location</em></caption>
<tr>
<td>
<SELECT NAME="PickFiles" MULTIPLE SIZE="8" length="100">
<%
For i = 0 to Ubound(arr) %>
<OPTION value="<%= arr(i).Title %>">
<%
Next
%>
</SELECT><br>
Source Files
</td>
<td>
<INPUT TYPE="reset" NAME="resetForm" VALUE="Reset"><br>
<INPUT TYPE="submit" NAME="submitList" VALUE="Add Files">
</td>
<td>
Destination Location
</td>
</table><INPUT type=hidden name=Project value=<% = RootContext %>>
</FORM>
</BODY>
</HTML>