Hi, the follow model is rigth to crud:
db.define_table('category',iObj,
Field('parent','reference category'),
Field('name'),
format='%(name)s')
db.category.parent.requires = IS_EMPTY_OR(IS_IN_DB(db,
db.category.id, '%(name)s'))
db.category.name.requires = IS_NOT_IN_DB(db, db.category.
This exists?
On Dec 13, 5:53 pm, Savio Sabino wrote:
> The best solution to this is a widget to insert multi record of a
> referenced table like:
>
> db.define_table('post',
> Field('title'),
> Field('content'))
>
> db.define_table
d a custom widget.
>
> But, if you need multi file upload there
> is:http://web2pyslices.com/main/slices/take_slice/103
>
> 2010/12/13 Savio Sabino
>
> > Have a mode to do this work? Or a other solution?
>
> --
>
> Bruno Rochahttp://about.me/rochacbruno/bio
Have a mode to do this work? Or a other solution?
Hello everybody.
Please, anybory know a alternative or workaround to do this work?
And Sorry by my bad english.
On Oct 21, 5:17 pm, Savio Sabino wrote:
> And reading the model of plugin_wiki I see that in def jqgrid the
> parameters and you doc are divergent in fields -> columns and
>
ow I see the problem... need to think about this. It is not a but, it
> just that virtual fields and not listed an must be retrieved
> explicitly.
>
> On Oct 21, 12:25 pm, Savio Sabino wrote:
>
> > The version is 1.87.3
> > Ok, I found the problem.
> > More this met
; )
> class VirtualFields:
> def prodEnt(self):
> return self.produto.quant_min * 2
> db.produto.virtualfields.append(VirtualFields())
> db.produto.insert(nome='book',quant_min=5)
> for row in db(db.produto).select():
> print row.nome, row.prodEnt
>
> It works
#x27;,default=0),
Field('quant_min','integer',default=0)
)
More, this do no have effect.
On Oct 21, 11:37 am, Savio Sabino wrote:
> Ops, sorry. Desconsider this. I used google translate because I
> develop in Portugu
builtindict:
* key: 'quant_min'
Creatin a new app test with the model:
db.define_table('produto',
Field('nome','string'),
Field('quant','integer',default=0),
Field('quant_min'
Hello.
I did the following test with virtual fields:
db.define_table('product',
Field ('type', db.tp_produto)
Field ('manufacturer', db.fabricante)
Field ('qt', 'integer', default = 0),
Field ('qt_min', 'integer', default = 0)
Complementing the line:
db.produto.virtualfields.append(VirtualFields())
causes error in creating the tables below it.
On Oct 21, 9:00 am, Savio Sabino wrote:
> Hello.
> I did the following test with virtual fields:
>
> db.define_table('product',
> Fie
gt;
> http://www.web2py.com/book/default/chapter/06?search=virtualfield
>
> and they should appear in jqgrid
>
> On Oct 20, 9:35 am, Savio Sabino wrote:
>
> > Thanks this is nice solution. And very thanks for the great
> > framework.
>
> > And now... How do I add
t.
Now I'm going to test.
Thanks.
On Oct 20, 11:40 am, mdipierro wrote:
> I never tried but you can try define virtualfields:
>
> http://www.web2py.com/book/default/chapter/06?search=virtualfield
>
> and they should appear in jqgrid
>
> On Oct 20, 9:35 am, Savio Sabino wrote
newbie to web2py (I think
it already has to see it) and running of java and .net.
On Oct 20, 11:18 am, mdipierro wrote:
> In model:
>
> db.table.field.represent=lambda value:A('click me',_href=value))
>
> and this will be used by jqgrid
>
> On Oct 20, 6:41 am, Savio S
Hello again.
I have a new question.
The current way of using jqgrid is with plugin_wiki? Even in the view
or controller?
How would I do to implement a grid like this:
Table user
id, name, email, money, deposit, withdraw
The id field must have a link for editing the user.
Add and drop fields sho
Ok. Thanks for you explanation.
On Oct 19, 11:22 am, "mr.freeze" wrote:
> I would say jqGrid is definitely better. I wrote WebGrid because I
> needed something that didn't require javascript. jqGrid has more
> features, an excellent API and is better supported.
>
Hi.
What is best choose to use datagrid in web2py? Webgrid or jqgrid?
What the comparision be do with this tools?
Or is the best use the two to interoperate? If is this, how?
You can see the alternatives to agile frameworks in Java:
Grails;
Spring Roo;
Scooter Framework;
Play Framework;
Next Framework.
But none compares to Python Web Frameworks or Rails in respect to
simplicity, amount of features and the maturity in the field of agile
frameworks.
And I think beyond
18 matches
Mail list logo