I would recommend spending some more time reading the Pyramid
documentation, especially how Pyramid handles form posts with View
Callables:
http://docs.pylonsproject.org/projects/pyramid/en/1.4-branch/narr/views.html#handling-form-submissions-in-view-callables-unicode-and-character-set-issues
.

-Vincent


On Wed, Mar 13, 2013 at 11:43 AM, Gert V <[email protected]> wrote:

> Thanks for the fast reply. sorry i wasn't clearer on my previous post. If
> annything is still not documentated enough please let me know.
> i'll give some code snippets of my template. no data is loaded into this
> page. the user has to fill in a few fields and after that we want to store
> it to our database.
>
> <div id="diagnoses_zelf" class="span5 well">
>             <form >
>             <h5>Diagnoses</h5>
>                 <table id="tableDiagnose" class="table table-hover">
>                         <thead class="header">
>                             <tr>
>                                 <th>Nr.</th>
>                                 <th>Code</th>
>                                 <th>Uitleg</th>
>                                 <th>Zek</th>
>                                 <th>Aan</th>
>                             </tr>
>                         </thead>
>                         <tr>
>                             <td>A</td>
>                             <td><input type='text' id="dz_code"
> class="input-mini" onFocus="isleegveld(this.value)"
> onchange="voegrijtoe_Diagnose(this.value)" placeholder="Code"></input></td>
>                             <td style="max-width: 140px; word-wrap:
> break-word">some random text</td>
>                             <td><input type='text' id="dz_zek"
> class="input-mini1" ></input></td>
>                             <td><input type='text' id="dz_aan"
> class="input-mini1" ></input></td>
>                         </tr>
>                     </table>
>             </form>
>         </div>
>
> every time the user has filled in the dz_code textfield, annother
> textfield will appear beneeth it. (using javascript)
> I'd like to get all the data of this table into a list. each row is a
> medical file of a patient and should be placed in a table "medical files".
> To bring it to our database I understood I need to bring this list to a
> view in our views.py so we can send it to the database.
>
>
>
>
>
>
> On Wednesday, March 13, 2013 5:28:29 PM UTC+1, Vincent Catalano wrote:
>
>> Can you be a bit more specific with what you are attempting to do? Have
>> you created a form with input fields throughout this table? Are you posting
>> the form data to your pyramid application?
>>
>> -Vincent
>>
>>
>> On Wed, Mar 13, 2013 at 8:42 AM, Gert V <[email protected]> wrote:
>>
>>> We use pyramid and chameleon template.
>>>
>>> Currently we have a page where users can fill in a table.
>>> This table has a variable lenght because rows are added dynamically.
>>> We want to get all the content of the table and put it in a list, so we
>>> send it to our database.
>>>
>>> The biggest problem is that we don't know how to send the data to a list
>>> and get it to our vieuw.
>>> can some1 help me with this problem?
>>> thanks in advance.
>>>
>>>
>>>  --
>>> You received this message because you are subscribed to the Google
>>> Groups "pylons-discuss" group.
>>> To unsubscribe from this group and stop receiving emails from it, send
>>> an email to pylons-discus...@**googlegroups.com.
>>> To post to this group, send email to pylons-...@googlegroups.**com.
>>>
>>> Visit this group at http://groups.google.com/**
>>> group/pylons-discuss?hl=en<http://groups.google.com/group/pylons-discuss?hl=en>
>>> .
>>> For more options, visit 
>>> https://groups.google.com/**groups/opt_out<https://groups.google.com/groups/opt_out>
>>> .
>>>
>>>
>>>
>>
>>
>>
>> --
>> Vincent Catalano
>> Software Engineer and Web Ninja,
>> (520).603.8944
>>
>  --
> You received this message because you are subscribed to the Google Groups
> "pylons-discuss" group.
> To unsubscribe from this group and stop receiving emails from it, send an
> email to [email protected].
> To post to this group, send email to [email protected].
> Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
> For more options, visit https://groups.google.com/groups/opt_out.
>
>
>



-- 
Vincent Catalano
Software Engineer and Web Ninja,
(520).603.8944

-- 
You received this message because you are subscribed to the Google Groups 
"pylons-discuss" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/pylons-discuss?hl=en.
For more options, visit https://groups.google.com/groups/opt_out.


Reply via email to