Hi, I'm working in a dynamic invoice app and so far everything it's
almost done, but i need to know if it's possible to send rows from my
dynamically gerated table in view to db.

for example:

this is my basic table
db.define_table('db_products',
        Field('barcode'), # I use a barcode reader to get record
        Field('name'),
        Field('category'),
        Field('price'),
        Field('stock')    # this should be updated
        )


after processing json in my view a have a table
<table>
  <thead>
  <tr>
    <th>Quant.</th>
    <th>Name</th>
    <th>price</th>
    <th>total</th> <!--this is pice*quant.-->
  </tr>
  </thead>
  <tbody>
    <tr>
      <td>2</td>
      <td>candy</td>
      <td>1.50</td>
      <td>3.00</td>
    </tr>
    <tr>
      <td>5</td>
      <td>coke</td>
      <td>2.00</td>
      <td>10.00</td>
    </tr>
    <tr>
      <td>5</td>
      <td>noodles</td>
      <td>8.00</td>
      <td>40.00</td>
    </tr>
    <tr>
      <td>9</td>
      <td>something</td>
      <td>0.40</td>
      <td>3.60</td>
    </tr>
....
  </tbody>
</table>

What I need to do is to perform and update in products db and save some
data to another table for reports, using the table rows.

Some hints for this? 

-- 

--- 
You received this message because you are subscribed to the Google Groups 
"web2py-users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to web2py+unsubscr...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.

Reply via email to