% library('global.np'); library('local.np'); library('Text09s.np'); // Setting this is required to use the Page object Page.setRowsCols(1, 1); // Required before you access the RecordSet.record object RecordSet.itemNext(); var start = Request.getParameter('start'); // If it is defined then cycle through until we find this itemId if (start.length > 0) { while (RecordSet.hasMore() && RecordSet.record.itemID != start) { RecordSet.itemNext(); RecordSet.offset++; } // Should be found if (RecordSet.record.itemID != start) Response.showErrorHtml("responseErrorMessage.html", "The 'start' parameter does not refer to a valid itemID"); } fieldList = RecordSet.record.getTypeAll(); var today = new Date(); var expires = new Date(today.getTime() + 28 * 24 * 60 * 60 * 1000); // plus 28 days %>
| ||||||||||||||||||||||||||||||||||||||