[web2py] Limit the field to search in sqlgrid?

2013-06-27 Thread funmanhk
Hi all, I have a couple tables joined in the sqlform.grid. They both have around 20 fields. I am only displaying around 10~15 fields for a particular purpose. When I click on the search widget, it gives me way more option that I need (all the 40 fields to choose from). Is there a possible

[web2py] passing variable and not string back to controller

2013-06-17 Thread funmanhk
Hi All, I have a variable in my javascript - parent_row_id that i want to make its value as the last argument of the url. Then my controller can take this, and return a bunch of data for the subgrid of this jqgrid. I found that the below turn my variable to simply a string using the

[web2py] Re: passing variable and not string back to controller

2013-06-17 Thread funmanhk
Hi Anthony, Yes, you are right! Your suggestion works like a charm! I need to watch out for the {{}} in the future. How could I miss that :-) I guess that I definitely more practice. Thanks very much for your help. Best Regards, funman -- --- You received this message because you are

Re: [web2py] Re: auth.signature modified_on, created_on using utc time

2013-05-22 Thread Funmanhk
Massimo, Thanks for the correction. I hope to see if it saves me copy and paste the modified_on/created_on fields in another few tables. Is auth.signature defined somewhere? Sorry that it maybe another silly question. My below model below does give me what I want to use utc. Regards,

[web2py] auth.signature modified_on, created_on using utc time

2013-05-21 Thread funmanhk
hi all, I like to use table inheritance with auth.signature in my model. I see that it is working, but it doesn't use utc time. So i added my own field. 1) Is this a recommended approach or there are other ways to modify auth.signature? db.define_table('demo_detail', Field('prototype_id',

[web2py] Re: Smartgrid layout question

2013-05-13 Thread funmanhk
for your help on this. Regards, funmanhk funm...@gmail.com於 2013年4月23日星期二UTC-7下午6時49分42秒寫道: Hi all, I have a couple questions about the layout built by smartgrid. 1) My smartgrid has a couple linked tables. They show up nicely as links on the right hand side of the grid. Is there a way

[web2py] Smartgrid layout question

2013-04-23 Thread funmanhk
Hi all, I have a couple questions about the layout built by smartgrid. 1) My smartgrid has a couple linked tables. They show up nicely as links on the right hand side of the grid. Is there a way to control which linked table to be listed first? It looks like that it is sorted by alphabetical

[web2py] type 'exceptions.AttributeError' 'DAL' object has no attribute 'auth_user'

2013-04-22 Thread funmanhk
Hi All, While i am trying to use the social plugin suggested by Massimo, i ran into another question. I clicked on the db admin, and try to see what I got for the Auth db. I didn't see it created, but read that it should be in the scaffolding by default. I visited this page -

[web2py] Re: Autocomplete, Tag_list, Multiple field suggestions, and validate against that list.

2013-04-21 Thread funmanhk
Hi Massimo, Thanks for providing the advices. I've downloaded the plugin, and trying it out. When i tried to call on the plugin_social, i got a ticket. There is a mention in the /models/plugin_social/plugin_social.py To use this plugin you need a database called db, you need auth File

[web2py] Autocomplete, Tag_list, Multiple field suggestions, and validate against that list.

2013-04-20 Thread funmanhk
Hi all, I want to build a collaboration site for my department. We have some guys working on some prototypes, and each of these prototypes is owned by a lead engineer. This person can pull in other colleagues with the same interests across the company to work on it. I hope to get the

Re: [web2py] Re: Return value from javascript to controller

2013-04-19 Thread Funmanhk
your example. On Fri, Apr 19, 2013 at 8:33 AM, Funmanhk funm...@gmail.com wrote: Btw, I want to say that Niphlod has been very helpful. I am definitely missing the HTML+JS knowledge, but that didn't stop me to try out in web2py and have a good attempt on this issue. I am one little step

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread Funmanhk
Thanks Niphlod. May I know where I can pick up the examples? Appreciate your help on this. On 19 Apr, 2013, at 3:13, Niphlod niph...@gmail.com wrote: packed an app with a few examples: might explain better how to deal with timezones. On Thursday, April 18, 2013 6:20:18 PM UTC+2, fun

Re: [web2py] Re: Return value from javascript to controller

2013-04-18 Thread Funmanhk
Btw, I want to say that Niphlod has been very helpful. I am definitely missing the HTML+JS knowledge, but that didn't stop me to try out in web2py and have a good attempt on this issue. I am one little step away from solving this time zone problem haunting me for a few months. I wouldn't

Re: [web2py] Re: Return value from javascript to controller

2013-04-17 Thread Funmanhk
Hi Niphlod, As always, thanks for your help. I do not think I got an explicit error this time. However, the input is not taken. When I clicked submit, the page blink and showed me a blank Add page. Regards, On 17 Apr, 2013, at 23:05, Niphlod niph...@gmail.com wrote: I'll try that again

[web2py] Re: Return value from javascript to controller

2013-04-15 Thread funmanhk
Hi Niphlod, Thanks for providing this plugin. This sounds like what i am trying to do. This is great. I will have to learn how to use it. regards, Wayne Niphlod於 2013年4月14日星期日UTC+8下午8時21分56秒寫道: did you see by any chance https://github.com/niphlod/w2p_timezone_plugin ? it seems you're trying

[web2py] Re: Return value from javascript to controller

2013-04-15 Thread funmanhk
Hi Anthony, Thanks for the tip. While i should use the plugin, i do want to learn how this can be done. I am trying to google around for this. If you may share any tips or starting points to read, it will be greatly appreciated. Regards, Wayne Anthony於 2013年4月15日星期一UTC+8上午12時11分35秒寫道: In

[web2py] Re: Return value from javascript to controller

2013-04-15 Thread funmanhk
Thanks again, Anthony. Anthony於 2013年4月15日星期一UTC+8下午10時20分21秒寫道: Check out http://web2py.com/books/default/chapter/29/11#The-ajax-function. Anthony On Monday, April 15, 2013 10:16:43 AM UTC-4, funm...@gmail.com wrote: Hi Anthony, Thanks for the tip. While i should use the plugin, i

[web2py] Re: Return value from javascript to controller

2013-04-15 Thread funmanhk
Hi Niphlod, This will be some learning. Thanks for pointing it out. I am really a newbie here. I've tried to upload your plugin to my application. It's a zip file that i download from Github. It's doesn't allow me to do the upload, and said my app does not exist or i don't have enough

[web2py] Return value from javascript to controller

2013-04-14 Thread funmanhk
Hi All, I am very new to coding, and am learning my way with the web2py framework and tools. I am trying to get return a value that i got from the view to the controller. This seems to be a basic idea, but i am not sure how to do it. Hope you may share an example. thanks! Regards, Wayne The