Hi
In my database i have a number field i have somethig like this
db.define_table("Inventory",
Field("idProduct", db.Product, label="Product"),
Field("quantity", "integer", default=None, label="Quantity"))
db.Inventory.idProduct.requires=IS_IN_DB( db, 'Product.id', ' %
(nProduct)s ')
If i want
what is that?
On 11 nov, 12:58, Thadeus Burgess wrote:
> Are you looking for something like the dojo edit combo?
>
> -Thadeus
>
>
>
> On Wed, Nov 11, 2009 at 8:41 AM, Sophie wrote:
>
> > There is a way to have an editable combo in web2py? but i want to
> >
Hi i was checking the web2py slices, and i think i can help the
community if i made an example, making some of them. So i am using
multi combo, i am using the slice "autocomplete" of mr.freeze, the
options_with_add_link of renatocaliari.
I was trying to make this demo for all of you and i have so
There is a way to have an editable combo in web2py? but i want to
define this in the model, so i can have my combo, and find words in
there with an autocomplete function.
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi, in my controller i create a SQLFORM. I am using the slyce of the
"add link". It works perfectly, tnnx renatocaliari.
I made a demo to do a multicombo, thnx Massimo for you help.
So i want to do this, i dont know if this is possible. I want to get
the combos that are in the SQLFORM, in the vi
.
On 3 nov, 13:42, mdipierro wrote:
> Just
>
> $('#Pais').change(function(){ ajax('Estado', ['Pais'],'target') });
>
> On Nov 3, 11:40 am, Sophie wrote:
>
>
>
> > I sont unsertand the suggestion, something like this?
>
>
').attr('onChange', ajax
('State', ['Country'],'target'))
});
On 3 nov, 15:41, mdipierro wrote:
> You do not bother us at all. We are happy to help (if we can).
>
> Can you post the modified code?
>
> On Nov 3, 2:33 pm, Sophie wrote:
>
tr
> (city[i].id)) for i in range(len(city))])
>
> I also suggest that you change
>
> $(...).attr('onChange', f());
>
> with
>
> $(...).change(function(){ f(); });
>
> On Nov 3, 9:23 am, Sophie wrote:
>
>
>
> > Hi all i have a pro
Hi all i have a problem with multi combo.
I have three tables Country, State, City. The first time it works
fine, i select a country (Canada), it appears the state combo, i
select a state (Alberta), and appear the city combo. Here is working
fine.
My problem is the second time i want to select a
I try this, but it doesnt work. The error is "NameError: name
'OPTIONS_WITH_ADD_LINK' is not defined"
But in the widgetAddLink.py I add
db.Product.Category.widget=OPTIONS_WITH_ADD_LINK(T=T, r=request,
c="Category")
why cant it recognize the function?
Sophie
On Oct
the modification i did before. How can i do
this? and now i am doing this with the SQLFORM, i think i have to
change my controller to see this link next to the combo of product
category, but i dont know how to do this either. Please some help. Im
new in this so its very complicated for me.
Sophie
Whats wrong with this code?
db.Person.nPerson.requires=IS_NOT_EMPTY('You should insert a
name'),IS_UPPER(),IS_MATCH('([a-zA-Z]*[ ]*[áÁ]*[éÉ]*[íÍ]*[óÓ]*[úÚ]*)
+',error_message='Only insert a-z A-Z áÁ éÉ íÍ óÓ úÚ and
spaces'),IS_NOT_IN_DB(db, 'Person.nPerson','This person is in the
database')
When
;
> Massimo
>
> On Oct 12, 1:26 pm, Sophie wrote:
>
>
>
> > Massimo can i modify the IS_UPPER() function? If i can, where is it?.
>
> > I have to validate some characters like "ñ". I put IS_UPPER() but it
> > still in "ñ" and not "Ñ&q
Massimo can i modify the IS_UPPER() function? If i can, where is it?.
I have to validate some characters like "ñ". I put IS_UPPER() but it
still in "ñ" and not "Ñ". The same with the acutes (á, é, í, ó, ú).
--~--~-~--~~~---~--~~
You received this message because yo
So if your locale doesn't work for some reason, I think you can at
> least customize your own IS_UPPER(), and convert those characters
> explicitly.
>
> On Oct5, 5:06am, Sophie wrote:
>
>
>
> > I dont understand, i have a databse i want to insert PERÚ, so i put
>
I dont understand, i have a databse i want to insert PERÚ, so i put
this in my code
IS_UPPER(),IS_MATCH('([a-zA-Z]*[ ]*[á]*[é]*[í]*[ó]*[ú]*[ñ]*[Á]*[É]*[Í]*
[Ó]*[Ú]*[Ñ]*) +',error_message='Only a-z, A-z, spaces, á.é,í,ó, ú, Á,
É,Í,Ó,Ú,ñ,Ñ')
but when i insert Perú, in the database is PERú, if is up
I solve this with this code
IS_UPPER(),IS_MATCH('([a-zA-Z]*[ ]*[á]*[é]*[í]*[ó]*[ú]*)
+',error_message='Solo se permite a-z, A-Z y espacios')
the problem is that i insert Perú, in the database i see PERú, the ú
is not upper it should appear Ú what can i do for this?
On
For acute what can i do. I see examples for php '/&([aeioun])(acute|
tilde);
i dont find for python
On 1 oct, 19:21, Yarko Tymciurak wrote:
> On Thu, Oct 1, 2009 at 5:45 PM, Sophie wrote:
>
> > IS_MATCH('[a-zA-Z]+',error_message='Only charaters allowed
A-Z]+',error_message='Only charaters allowed')
>
> What about Cote' d'Ivoire?
>
> On Oct 1, 4:11 pm, Sophie wrote:
>
>
>
> > Hi there my problem is when i validate my input, i have this code in
> > the model
>
> > db.def
Hi there my problem is when i validate my input, i have this code in
the model
db.define_table("Country",
Field("nCountry", "string", default=None, label="Name",
notnull=True, requires=[IS_NOT_EMPTY('Please insert a country name'),
IS_UPPER(), IS_NOT_IN_DB(db,'Country.nCountry','This country
ahí sacar el nombre
de la tabla, dependiendo de esto mostrar los campos de la tabla que
sean necesarios. Claro es un montón pero como me obligan a usar las 3
capas, creo que no hay de otra, o la solución que me propones no viola
esta regla.
On 30 sep, 12:00, ProfessionalIT wrote:
> Sop
Hi i am new is web2py, and im very confused. this is what i do in java
but i dont know how to do this in web2py. For example, here i have my
form, but in web2py the form is in the controller? and tha labels are
in the model?
And in web2py i dont do insert statement. someone could help me? how
can
Hi, i have to pay on-line with a credit card in my system. If there is
some manual or you could explain me how can i do this i will
appreciate it so much. thanks
Sophie
--~--~-~--~~~---~--~~
You received this message because you are subscribed to the Google Groups
Hi i read the page and i don't understand it too much. i wrote this
code, it is working but i have this problem. the first combo is
working fine, the second appears with the correct data, when i select
the combo in the page appears the third combo with the correct data,
but the problem is that the
Hi
i have a problem with a combo. I have 3 tables "productType","product"
and "sales". So when i select a "productType" it appears a combo with
the products of that type. My problem is when i want to select a
product and i want the sales of that product.
Here is my code:
Controller:
def index(
25 matches
Mail list logo