Glad to hear.
In case the link doesn't work for others (and to link this disucssion for
future searches),  search  for "Prepopulate form"

On Mon, Nov 17, 2008 at 10:31 AM, pigmej <[EMAIL PROTECTED]> wrote:

>
> Yarko that was exactly what I need :)
>
> Thanks.
>
> On Nov 17, 4:45 pm, "Yarko Tymciurak" <[EMAIL PROTECTED]> wrote:
> > I see - use a record as a template for new record creation - so that you
> can
> > have "default" values based on some existing record (not just "hard
> wired"
> > in code).
> > There was a discussion of this some time back in the group...
> >
> > I think this answers it
> >
> > http://groups.google.com/group/web2py/browse_thread/thread/ad4e07fdaa...
> >
> > That discussion shows setting default w/ a fixed value, but you can do
> the
> > same with "select".
> >
> > Hope that helps.
> >
> > Yarko
> >
> > On Mon, Nov 17, 2008 at 9:25 AM, pigmej <[EMAIL PROTECTED]> wrote:
> >
> > > No...
> >
> > > Example:
> >
> > > table pages: id|content|...|
> >
> > > now in form I will add new records, update existing records, and
> > > create new records with are based on old.
> >
> > > Add new and update is trivial, but what with adding new records with
> > > modifield content of old record.
> >
> > > On Nov 17, 4:00 pm, Vidul Petrov <[EMAIL PROTECTED]> wrote:
> > > > I guess Jędrzej means "readony fields".
> >
> > > > On Nov 17, 3:00 pm, billf <[EMAIL PROTECTED]> wrote:
> >
> > > > > I'm sorry I don't understand your requirements.
> >
> > > > > When you say: "I would like to create SQLFORM with inserts data to
> db,
> > > > > but I would
> > > > > like to see values from database there",  which "values from
> database"
> > > > > are you referring to"?
> >
> > > > > Previous inserted records?  then pass a list of records as in the
> > > > > recipes() method of tutorial
> >
> > > > > Values to be used in dropdown lists?  then use IS_IN_DB in the
> model
> >
> > > > > Something else?  please specify.
> >
> > > > > When you say: "I have one "template page" in database ( text, html,
> > > > > relations, etc... ) ", what does that mean?  Do you have a record
> in a
> > > > > database table that holds text,html,relations,etc?
> >
> > > > > On Nov 17, 12:44 pm, pigmej <[EMAIL PROTECTED]> wrote:
> >
> > > > > > No, In cookbook there are different things.
> >
> > > > > > I'll have something different.
> > > > > > I have one "template page" in database ( text, html, relations
> > > > > > etc... )
> > > > > > Now i would like to create new page based on this template,
> without
> > > > > > selecting many values again ( checkboxes etc ).
> >
> > > > > > If I generate SQLFORM() with "values" from database, it generates
> > > > > > update form, without values from database it generates new empty
> > > form.
> >
> > > > > > On 16 Lis, 22:46, billf <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > Try working through the tutorial in
> >
> > > > > > >http://mdp.cti.depaul.edu/examples/static/cookbook.pdf
> >
> > > > > > > It provides code examples that probably cover your needs.
> >
> > > > > > > On Nov 16, 8:14 pm, Jędrzej Nowak <[EMAIL PROTECTED]> wrote:
> >
> > > > > > > > So, I would like to create SQLFORM with inserts data to db,
> but I
> > > would
> > > > > > > > like to see values from database there.
> >
> > > > > > > > I would like to made some kind of template for adding
> records.
> >
> > > > > > > > Is it possible to made with SQLFORM, or must I use my own
> form
> > > (custom
> > > > > > > > one)
> >
> > > > > > > > --
> > > > > > > > Pozdrawiam,
> > > > > > > > Jędrzej Nowak
> >
>

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"web2py Web Framework" group.
To post to this group, send email to web2py@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/web2py?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to