title: Interactive grid - populate a field on insert automatically
body: <p>I have a records table with the following columns :</p>
  
  <pre><code>Record_ID - primary key
  Item_ID
  Record_Text
  Record_Status
  Create_Date
  </code></pre>
  
  <p>Each item can have multiple records. I display the table data in an interactive grid. The grid only displays data for one item at a time. <code>Item_ID</code> is a hidden field on the page <code>P2_ITEM_ID</code></p>
  
  <p>On my grid <code>Record_ID</code> and <code>Item_ID</code> are hidden field, I only display <code>Record_Text</code>, Record_Status(a <code>checkbox</code> for <code>Active/Inactive</code>), and <code>Create_Date</code> as display only field. When insert is done, primary key is generated automatically, <code>Create_Date</code> is populated with a trigger, so the only fields that
  need to be supplied are <code>Item_ID</code>, <code>Record_Text</code> and <code>Record_Status</code>. When <strong>Add Row</strong> is clicked, the user populated <code>Record_Text</code> and checks the <code>checkbox</code> for <code>Record_Status</code>. But how do I populate <code>Item_ID</code> for each row automatically from a hidden variable?</p>
  
  <p>Thanks</p>