Hi, 
i'm new to web2py and programming web applications.
In the past 20 years i wrote Windows applications in visual dataflex Pascal 
etc.

But now my questions:

1) How can i create a button in my custom sqlform which do both "saves and 
the clears the form" or "saves and then closes the form" in one action?


2) I have 2 tables:
 1- texttemplates table with fields: 1-matchcode 2-remarks  
 2- orders table with fields: 1-orderdate 2-txtmatchcode 3-txtremarks

In my orders table 
definition i put "requires=IS_IN_DB(db,db.texttemplates.matchcode)". Works 
good.

After the user selects the texttemplate in the orders form, I would like to 
copy the value of the remarks field out of the texttemplates table into the 
field txtremarks of the orders form.

This should happen when the Cursor moves out of the txtmatchcode field in 
the orders form.

Now the user can Change the text if he wants and save the orders form. 



i appreciate your help

regards karl 

-- 
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/web2py (Source code)
- https://code.google.com/p/web2py/issues/list (Report Issues)
--- 
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 [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to