AgileApps Support Wiki Pre Release

Using the request Object

From AgileApps Support Wiki
Revision as of 02:20, 18 February 2012 by imported>Aeric (Created page with "To obtain record identifiers from the <tt>request</tt> object: :<syntaxhighlight lang="java" enclose="div"> <% String object_id = request.getParameter("object_id"); String re…")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)

To obtain record identifiers from the request object:

<%
  String object_id = request.getParameter("object_id");
  String record_id = request.getParameter("record_id");
%>

Notepad.png

Note: Although the object_id is alphanumeric, it can be used in any API that requires an object name.

To list all of the parameters available in the request object and display their values:

<%
  String[] params = request.getParameterValues();
  for (int i=0; i<params.length; i++)
  {
    String paramName = params[i];
    String paramValue = request.getParameter( paramName );
  }
%>