Difference between revisions of "Get Object and Record ID from the Request Object"

From AgileApps Support Wiki
imported>Aeric
imported>Aeric
Line 4: Line 4:
contains the identifiers needed to obtain additional information from the record, using either the [[REST API:record Resource|REST record Resource ]] or the [[Java_API:Record_Handling|Java record handling APIs]].
contains the identifiers needed to obtain additional information from the record, using either the [[REST API:record Resource|REST record Resource ]] or the [[Java_API:Record_Handling|Java record handling APIs]].


Use this code to obtain the object and record identifiers for the active record from the <tt>request</tt> object:
:''Learn more:'' [[Java_API:Support_Classes_and_Objects#request Object|request Object]]
:<syntaxhighlight lang="java" enclose="div">
<%
  String object_id = request.getParameter("object_id");
  String record_id = request.getParameter("record_id");
%>
</syntaxhighlight>
 
{{Note|Although the <tt>object_id</tt> is alphanumeric, it can be used in any API that requires an object name.}}
 
''Learn more:'' [[Java_API:Support_Classes_and_Objects#request Object|request Object]]

Revision as of 02:11, 18 February 2012

When a JSP Page is launched from a context that is associated with a particular object record, the request object available in the JSP page contains the identifiers needed to obtain additional information from the record, using either the REST record Resource or the Java record handling APIs.

Learn more: request Object