Edit D:\app\Administrator\product\11.2.0\dbhome_1\apex\images\doc\bldapp_item_values.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>Referencing Item Values</title> <meta name="generator" content="Oracle DARB XHTML Converter (Mode = ohj/ohw) - Version 5.1" /> <meta name="date" content="2009-04-14T16:11:28Z" /> <meta name="robots" content="noarchive" /> <meta name="doctitle" content="Referencing Item Values" /> <meta name="relnum" content="Release 3.2" /> <meta name="partnum" content="E11947-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.htm" title="Home" type="text/html" /> <link rel="up" href="bldapp.htm" title="Building an Application" type="text/html" /> <link rel="up" href="bldapp_item.htm" title="Understanding Page-Level Items" type="text/html" /> <link rel="up" href="bldapp_item_values.htm" title="Referencing Item Values" type="text/html" /> <link rel="prev" href="ui_layout.htm" title="Previous" type="text/html" /> <link rel="next" href="bldapp_item_cond.htm" title="Next" type="text/html" /> </head> <body> <p id="BREADCRUMBING"><a href="preface.htm" title="Home">Home</a> > <a href="bldapp.htm" title="Building an Application">Building an Application</a> > <a href="bldapp_item.htm" title="Understanding Page-Level Items">Understanding Page-Level Items</a> > Referencing Item Values</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="ui_layout.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="bldapp_item_cond.htm"><img src="dcommon/gifs/rightnav.gif" alt="Next" /><br /> <span class="icon">Next</span></a></td> </tr> </table> <p><a id="BCEHCCHF" name="BCEHCCHF"></a></p> <div class="sect2"><!-- infolevel="all" infotype="General" --> <h1><a name="HTMDB25335" id="HTMDB25335"></a>Referencing Item Values<a id="sthref956" name="sthref956"></a></h1> <p>You can reference item values stored in session state in regions, computations, processes, validation, and branches. <a href="#BCEICIBB">Table: Syntax for Referencing Item Values</a> describes the supported syntax for referencing item values.</p> <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="concept_ses_val.htm#BEIFIHFH">"Managing Session State Values"</a></td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> <div class="tblformalwide"><a id="sthref957" name="sthref957"></a><a id="BCEICIBB" name="BCEICIBB"></a> <p class="titleintable">Syntax for Referencing <a id="sthref958" name="sthref958"></a>Item Values</p> <table class="FormalWide" title="Syntax for Referencing Item Values " summary="This table describes the supported syntax for referencing item values." dir="ltr" border="1" width="100%" frame="hsides" rules="groups" cellpadding="3" cellspacing="0"> <col width="17%" /> <col width="28%" /> <col width="*" /> <thead> <tr align="left" valign="top"> <th align="left" valign="bottom" id="r1c1-t64">Type</th> <th align="left" valign="bottom" id="r1c2-t64">Syntax</th> <th align="left" valign="bottom" id="r1c3-t64">Description</th> </tr> </thead> <tbody> <tr align="left" valign="top"> <td align="left" id="r2c1-t64" headers="r1c1-t64"> <p>SQL</p> </td> <td align="left" headers="r2c1-t64 r1c2-t64"> <p><code>:MY_ITEM</code></p> </td> <td align="left" headers="r2c1-t64 r1c3-t64"> <p>Standard bind variable syntax for items whose names are no longer than 30 bytes. Use this syntax for references within a SQL query and within PL/SQL.</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r3c1-t64" headers="r1c1-t64"> <p>PL/SQL</p> </td> <td align="left" headers="r3c1-t64 r1c2-t64"> <p><code>V('MY_ITEM')</code></p> </td> <td align="left" headers="r3c1-t64 r1c3-t64"> <p>PL/SQL syntax referencing the item value using the <code>V</code> function.</p> <p><span class="bold">See Also:</span> <a href="AEAPI/preface.htm"><span class="italic">Oracle Application Express API Reference</span></a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r4c1-t64" headers="r1c1-t64"> <p>PL/SQL</p> </td> <td align="left" headers="r4c1-t64 r1c2-t64"> <p><code>NV('MY_NUMERIC_ITEM')</code></p> </td> <td align="left" headers="r4c1-t64 r1c3-t64"> <p>Standard PL/SQL syntax referencing the numeric item value using the <code>NV</code> function.</p> <p><span class="bold">See Also:</span> <a href="AEAPI/preface.htm"><span class="italic">Oracle Application Express API Reference</span></a></p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r5c1-t64" headers="r1c1-t64"> <p>Static Text</p> </td> <td align="left" headers="r5c1-t64 r1c2-t64"> <p><code>&MY_ITEM</code></p> </td> <td align="left" headers="r5c1-t64 r1c3-t64"> <p>Static text.</p> </td> </tr> <tr align="left" valign="top"> <td align="left" id="r6c1-t64" headers="r1c1-t64"> <p>Static Text (exact)</p> </td> <td align="left" headers="r6c1-t64 r1c2-t64"> <p><code>&MY_ITEM.</code></p> </td> <td align="left" headers="r6c1-t64 r1c3-t64"> <p>Static text. Exact Substitution.</p> </td> </tr> </tbody> </table> <br /></div> <!-- class="tblformalwide" --> <p>You can set the value of an item in your application using any of the following methods:</p> <ul> <li> <p>For page-level items, use the Source Attribute to set the item value.</p> <p>From the Page Definition, select the item name to view the Edit Page Item page. Scroll down to Source and edit the appropriate fields.</p> <p>You can also set the value of an item in any region based on PL/SQL or a process using the following syntax:</p> <pre xml:space="preserve" class="oac_no_warn"> BEGIN :MY_ITEM := 'new value'; END; </pre></li> <li> <p>Pass the value on a URL reference using <code>f?p</code> syntax. For example:</p> <pre xml:space="preserve" class="oac_no_warn"> f?p=100:101:10636547268728380919::NO::MY_ITEM:ABC </pre></li> <li> <p>Set the value using a computation. Computations are designed to set item values. For example:</p> <pre xml:space="preserve" class="oac_no_warn"> TO_CHAR(SYSDATE,'Day DD Month, YYYY'); </pre></li> <li> <p>Use the PL/SQL API to set an item value within a PL/SQL context. For example:</p> <pre xml:space="preserve" class="oac_no_warn"> APEX_UTIL.SET_SESSION_STATE('MY_ITEM',SYSDATE); </pre></li> </ul> <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="concept_ses_clear.htm#BEIHCICF">"Clearing Session State"</a>, <a href="AEAPI/preface.htm"><span class="italic">Oracle Application Express API Reference</span></a>, and <a href="sec_cross_site.htm#CDDBBECI">"Understanding Cross-Site Scripting Protection"</a></td> </tr> </tbody> </table> <br /></div> <!-- class="inftblnotealso" --></div> </div> <!-- class="sect2" --> <!-- 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="ui_layout.htm"><img src="dcommon/gifs/leftnav.gif" alt="Previous" /><br /> <span class="icon">Previous</span></a> </td> <td align="center"><a href="bldapp_item_cond.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