title: Insert values into database and return them into interactive grid (APEX 5.1)
body: <p>I have a <strong>Form</strong> with <strong>Select list</strong> item <strong><em>P2_PERSON</em></strong> (it's type is <strong>Shared component</strong> and it shows names of people that are in the <strong>PERSON</strong> table in database), two <strong>Date pickers</strong> <strong><em>P2_DATEFROM</em></strong> and <strong><em>P2_DATETO</em></strong> and one <strong>hot button</strong> labelled <strong>GO</strong>. Below, on the same page (see picture 1) is <strong>Interactive Grid</strong> (a new region in apex 5.1, looks like a fresh and powerful feature). What I need to do, and can't find the answer anywhere is: after the person is selected in <strong>Select list</strong> labeled <em>Osoba</em>, what can be seen in the first picture, and two dates are chosen from two <strong>Date pickers</strong>, clicking the <strong>GO</strong> button 5 rows are inserted in table <strong><em>CONTROL_TT</em></strong> and presented on <strong><em>Interactive grid</em></strong> on the page. Difference between dates must not be larger than seven days to avoid too many inserts in the table. </p>
  
  <blockquote>
    <p>Each <em>day</em> in the range of dates entered represents one new inserted
    row in <strong><em>CONTROL_TT</em></strong> table and that date is stored in <strong>date</strong>
    column of every row.</p>
    
    <p>Also, <strong><em>person_id</em></strong> collected (or   passed) from <strong><em>P2_PERSON</em></strong>
    <strong>Select list</strong> Item is stored in <strong>person_id</strong> column of <strong><em>CONTROL_TT</em></strong> table. Columns of <strong><em>CONTROL_TT</em></strong> table are</p>
    
    <p><strong>(control_id, person_id, date, time_from, time_to, hours_total, project_id, status, desc, person_id_accept_req)</strong></p>
    
    <p><strong>Id</strong> column is populated trough sequence <strong>seq_evidencija</strong></p>
  </blockquote>
  
  <p><strong>time_from</strong>, <strong>time_to</strong>, <strong>hours_total</strong> and <strong>desc</strong> are inserted/tiped (inputed) manually by the user when the <strong>interactive Grid</strong> is populated with data. <strong>project_id</strong> will be <strong>Select list</strong> (from table <strong>Project</strong> in db) on <strong>Interactive grid</strong> and <strong>status</strong> is the same as <strong>project_id</strong> using <strong>Status</strong> table as reference for data. Tnx </p>
  
  <hr>
  
  <p><a href="https://i.stack.imgur.com/aCOus.png" rel="nofollow noreferrer">Web page in browser look</a></p>
  
  <p><a href="https://i.stack.imgur.com/w5Buq.png" rel="nofollow noreferrer">Look from apex</a></p>