Display Records in HTML Page View
I am beginning to discover more about Creator - Pages. Right now, I am attempting to develop a simple page that would show information related to projects.
Below is the code I am using.
The issue: I have three different projects in the form it's pulling from. It is showing the same project on three rows instead of a new project on each row.
- htmlpage Search()
- <%{
-
- projects = Project_Information [ID != 0];
-
- %>
- <table width="200" border="1" align="left" cellpadding="1" cellspacing="1">
- <caption>Test</caption>
- <tbody>
- <tr>
- <td>Project Name</td>
- <td>Project POC</td>
- </tr>
- <%
- for each record in projects
- {
- name = projects.project_name;
- poc = projects.primary_poc;
- %>
- <tr>
- <td> <%=name%> </td>
- <td> <%=poc%> </td>
- </tr>
- <%
- }
-
- %>
- </tbody>
- </table>
-
- <%
-
- }%>