Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\AEAPI\apex_util011.htm
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd"> <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en"> <head> <meta http-equiv="Content-Type" content="text/html; charset=us-ascii" /> <meta http-equiv="Content-Style-Type" content="text/css" /> <meta http-equiv="Content-Script-Type" content="text/javascript" /> <title>COUNT_CLICK Procedure</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T17:32:15Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="COUNT_CLICK Procedure" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E12510-01" /> <link rel="copyright" href="../dcommon/html/cpyr.htm" title="Copyright" type="text/html" /> <link rel="stylesheet" href="../dcommon/css/blafdoc.css" title="Oracle BLAFDoc" type="text/css" /> <link rel="contents" href="toc.htm" title="Contents" type="text/html" /> <link rel="up" href="preface" title="Home" type="text/html" /> <link rel="up" href="apex_util.htm" title="APEX_UTIL" type="text/html" /> <link rel="up" href="apex_util011.htm" title="COUNT_CLICK Procedure" type="text/html" /> <link rel="prev" href="apex_util010.htm" title="Previous" type="text/html" /> <link rel="next" href="apex_util012.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface" title="Home">Home</a> > <a href="apex_util.htm" title="APEX_UTIL">APEX_UTIL</a> > COUNT_CLICK Procedure</p> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr valign="bottom"> <td align="left"></td> <td align="center"><a href="apex_util010.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util012.htm"><img src="../dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="CHDBHDFF" name="CHDBHDFF"></a></p> <hr /> <div class="refsect1"> <h1><a name="AEAPI112" id="AEAPI112"></a>COUNT_CLICK <a id="sthref62" name="sthref62"></a><a id="sthref63" name="sthref63"></a>Procedure</h1> <p>This procedure counts clicks from an application built in Application Builder to an external site. You can also use the shorthand version, procedure <code>Z</code>, in place of <code>APEX_UTIL</code>.<code>COUNT_CLICK</code>.</p> <a id="sthref64" name="sthref64"></a> <p class="subhead2">Syntax</p> <pre xml:space="preserve" class="oac_no_warn"> APEX_UTIL.COUNT_CLICK ( p_url IN VARCHAR2, p_cat IN VARCHAR2, p_id IN VARCHAR2 DEFAULT NULL, p_user IN VARCHAR2 DEFAULT NULL, p_workspace IN VARCHAR2 DEFAULT NULL); </pre> <a id="sthref65" name="sthref65"></a> <p class="subhead2">Parameters</p> <p><a href="#CHDFDDDI">Table: COUNT_CLICK Parameters</a> describes the parameters available in the <code>COUNT_CLICK</code> procedure.</p> <div class="tblformal"><a id="sthref66" name="sthref66"></a><a id="CHDFDDDI" name="CHDFDDDI"></a> <p class="titleintable">COUNT_CLICK Parameters</p> <table class="Formal" title="COUNT_CLICK Parameters" summary="This table describes the parameters available in the COUNT_CLICK procedure." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> <col width="41%" /> <col width="*" /> <thead> <tr align="left" valign="top"> <th align="left" valign="bottom" id="r1c1-t13">Parameter</th> <th align="left" valign="bottom" id="r1c2-t13">Description</th> </tr> </thead> <tbody> <tr align="left" valign="top"> <td align="left" id="r2c1-t13" headers="r1c1-t13"> <p><code>p_url</code></p> </td> <td align="left" headers="r2c1-t13 r1c2-t13"> <p>The URL to which to redirect</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r3c1-t13" headers="r1c1-t13"> <p><code>p_cat</code></p> </td> <td align="left" headers="r3c1-t13 r1c2-t13"> <p>A category to classify the click</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r4c1-t13" headers="r1c1-t13"> <p><code>p_id</code></p> </td> <td align="left" headers="r4c1-t13 r1c2-t13"> <p>Secondary ID to associate with the click (optional)</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r5c1-t13" headers="r1c1-t13"> <p><code>p_user</code></p> </td> <td align="left" headers="r5c1-t13 r1c2-t13"> <p>The application user ID (optional)</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r6c1-t13" headers="r1c1-t13"> <p><code>p_workspace</code></p> </td> <td align="left" headers="r6c1-t13 r1c2-t13"> <p>The workspace associated with the application (optional)</p> </td> </tr> </tbody> </table> <br /></div> <!-- class="tblformal" --> <a id="sthref67" name="sthref67"></a> <p class="subhead2">Example</p> <p>The following example demonstrates how to use the COUNT_CLICK procedure to log how many user's click on the <code>http://yahoo.com</code> link specified. Note that once this information is logged, you can view it via the APEX_WORKSPACE_CLICKS view and in the reports on this view available to workspace and site administrators.</p> <pre xml:space="preserve" class="oac_no_warn"> DECLARE l_url VARCHAR2(255); l_cat VARCHAR2(30); l_workspace_id VARCHAR2(30); BEGIN l_url := 'http://yahoo.com'; l_cat := 'yahoo'; l_workspace_id := TO_CHAR(APEX_UTIL.FIND_SECURITY_GROUP_ID('MY_WORKSPACE')); HTP.P('<a href=APEX_UTIL.COUNT_CLICK?p_url=' || l_url || '&p_cat=' || l_cat || '&p_workspace=' || l_workspace_id || '>Click</a>'); END; </pre> <div align="center"> <div class="inftblnotealso"><br /> <table class="NoteAlso oac_no_warn" summary="" cellpadding="3" cellspacing="0"> <tbody> <tr> <td align="left"> <p class="notep1">See Also:</p> <a href="apex_util028.htm#BABBEIEJ">"FIND_SECURITY_GROUP_ID Function"</a> in this document and <a href="../AEADM/aadm_mg_logs.htm">"Purging the External Click Count Log"</a> in <a href="../AEADM/preface.htm"><span class="italic">Oracle Application Express Administration Guide</span></a></td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> </div> <!-- class="refsect1" --> <!-- Start Footer --> <div class="footer"> <table class="simple oac_no_warn" summary="" cellspacing="0" cellpadding="0" width="100%"> <col width="86%" /> <col width="*" /> <tr> <td align="left"><span class="copyrightlogo">Copyright © 2003, 2009, Oracle and/or its affiliates. All rights reserved.</span><br /> <a href="../dcommon/html/cpyr.htm"><span class="copyrightlogo">Legal Notices</span></a></td> <td align="center"><a href="apex_util010.htm"><img src="../dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="apex_util012.htm"><img src="../dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> </div> <!-- class="footer" --> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de