Re: [web2py] Re: SQLFORM.gris sorting by multiple fields

2016-02-23 Thread Vid Ogris
Ok thank you I guess javascript function would be the solution? 2016-02-24 8:52 GMT+01:00 Niphlod : > as soon as one clicks on a column, it'll be ordered ONLY by that column. > user-driven multi-column ordering is not implemented. > > On Wednesday, February 24, 2016 at

Re: [web2py] Re: SQLFORM.gris sorting by multiple fields

2016-02-23 Thread Niphlod
as soon as one clicks on a column, it'll be ordered ONLY by that column. user-driven multi-column ordering is not implemented. On Wednesday, February 24, 2016 at 8:04:24 AM UTC+1, Yebach wrote: > > And If I want the sorting to be done on user request. > > so he/she can sort by last_name or

Re: [web2py] Re: SQLFORM.gris sorting by multiple fields

2016-02-23 Thread Vid Ogris
And If I want the sorting to be done on user request. so he/she can sort by last_name or skill separately or skill and one clicked on skill it is also sorted by last name? I hope I am clear enough? Thank you 2016-02-23 15:53 GMT+01:00 Niphlod : > >- orderby is used as

[web2py] Re: alternative autocomplete widget

2016-02-23 Thread Massimo Di Pierro
Excellent! On Thursday, 11 February 2016 10:18:28 UTC-6, Carlos Cesar Caballero wrote: > > Hi, right now I am working in a plugin with an autocomplete widget using > typeahead.js: > > https://github.com/daxslab/web2py-typeahead > > Any clues, suggestions, recomendations etc... will be very

[web2py] Re: Setting up the scheduler, and letting it run from a certain point of time

2016-02-23 Thread Dave S
On Tuesday, February 23, 2016 at 3:11:47 PM UTC-8, Lucas Schreiber wrote: > > Hi there, > while trying to understand how to use the scheduler, i found this post: > https://groups.google.com/forum/#!topic/web2py/VCPZmSc0vLc > (I think there are some new posts, and reading the Web2Py book is very

[web2py] Re: Custom importer not reloading app modules

2016-02-23 Thread Antonio Salazar
Just found the relevant manual section: http://web2py.com/books/default/chapter/29/04/the-core#Sharing-the-global-scope-with-modules-using-the-current-object It was lacking this: from gluon.custom_import import track_changes track_changes(True) On Tuesday, February 23, 2016 at 5:19:32 PM

Re: [web2py] Restored DB, _enable_record_versioning() and fake migrations?

2016-02-23 Thread Brian M
The web2py version is the same on both machines; I just copied my whole web2py folder over. Now admittedly my web2py version is slightly out of date so it might be something that's been improved recently. I've got a patch for another issue that I need to pull and test tonight so I'll try to

[web2py] Custom importer not reloading app modules

2016-02-23 Thread Antonio Salazar
I understand that the custom importer in gluon can track changed app modules and reimport them transparently. This is not happening in my case, I have to restart web2py to see new module changes. Do I have to do anything else besides the usual 'import xyz'? I'm using web2py 2.12.3 on Windows

[web2py] Setting up the scheduler, and letting it run from a certain point of time

2016-02-23 Thread Lucas Schreiber
Hi there, while trying to understand how to use the scheduler, i found this post: https://groups.google.com/forum/#!topic/web2py/VCPZmSc0vLc In the Post, this code is writen: db.scheduler_task.insert(function_name='task1', task_name='task1',

[web2py] Re: Passing form value to a controller function

2016-02-23 Thread aetagothno
Based on the error with the code I currently have.. I think a more concise way of wording exactly what I want to do is... Create multiple instances of the* form fields* within a* single form*... On Tuesday, February 23, 2016 at 2:41:58 PM UTC-8, aetag...@gmail.com wrote: > > That does make

[web2py] Re: Passing form value to a controller function

2016-02-23 Thread aetagothno
That does make sense, now if only I can get my code to work so that I can see what happens with the table. *CONTROLLER:* def index(): return dict() def form1(): numdays = int(request.vars.name); forms = [SQLFORM(db.post,formname='form%i' % k) for k in range(numdays)] for k,form

[web2py] Rich Text

2016-02-23 Thread Fabiano Almeida
Hi all, How field type is used to store rich text (with formatting, table, figure) in db? How to use ckEditor or other rich text editor in web2py? Thanks, Fabiano. -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

Re: [web2py] Re: charts on web2py

2016-02-23 Thread Junior Phanter
:) ON CONTROLLER meses_chart="['Janeiro', 'Fevereiro', 'Março']" #Change this dynamically dados_chart="[3.5, 4, 5]" #Change this dynamically title="Rajjmatthur\"s charts" stitle="web2py end highchats powered" dados_map={} dados_map["dados"]=dados_chart

[web2py] Re: Passing form value to a controller function

2016-02-23 Thread Dave S
On Tuesday, February 23, 2016 at 12:31:03 PM UTC-8, aetag...@gmail.com wrote: > > I've been having trouble understanding how this works and could be > achieved with web2py, it seems like this concept exists within Django so I > want to understand how this can be implemented within web2py. > >

[web2py] WinINet and basic auth

2016-02-23 Thread Dave S
I'm trying to use Basic Auth with my restful service; see

[web2py] Re: creating tags and linking

2016-02-23 Thread Ron Chatterjee
Never mind. Saw Massimo's Post. https://groups.google.com/forum/#!searchin/web2py/selection$20checkbox/web2py/MbTywc4upms/JUNvqOljt7AJ This site is becoming a book itself! lol. On Tuesday, February 23, 2016 at 11:27:31 AM UTC-5, Ron Chatterjee wrote: > > On the same table, if I want to create

[web2py] Passing form value to a controller function

2016-02-23 Thread aetagothno
I've been having trouble understanding how this works and could be achieved with web2py, it seems like this concept exists within Django so I want to understand how this can be implemented within web2py. Example scenario: A doctor logs onto the web2py application and they go onto a page which

[web2py] Re: how to show multiple controller's views on the same page?

2016-02-23 Thread Ron Chatterjee
response.view = 'default/show_project.html' Works like a champ! You are the man Anthony!!! Thank you. On Sunday, February 21, 2016 at 8:14:05 PM UTC-5, Anthony wrote: > > In one or both of the controllers: > > response.view = 'default/my_shared_view.html' > > Or create two separate views

[web2py] Re: How to page rest service data response?

2016-02-23 Thread Seraaj Muneer
Good grief! Very sorry. I was too bleary eyed, seeing it was after 01:30 GMT. I read the doc but somehow still couldn't see it. Thanks Tony for your time. Very much appreciated. On Tuesday, 23 February 2016 05:10:20 UTC, Anthony wrote: > > Please see the documentation: >

Re: [web2py] Restored DB, _enable_record_versioning() and fake migrations?

2016-02-23 Thread Richard Vézina
Pretty weird, but you have made some progress... So, to resume, it like if archive table were never really get created by web2py so it keeps trying to create it and failed since it already exist in the backend... So, there were an issue at the moment you start using the feature, or there is an

[web2py] Re: creating tags and linking

2016-02-23 Thread Ron Chatterjee
On the same table, if I want to create a selectable. Pretty much like this google group. How do I put a check box next to my table rows in that array and then on_click go to a function to star each post? hobby_str = ['baseball', 'basketball', 'tennis', 'football', 'soccar']

Re: [web2py] Restored DB, _enable_record_versioning() and fake migrations?

2016-02-23 Thread Brian M
Richard, Nope, I didn't change the name of the app itself. The only thing that changed is the name of the computer the DB is on and thus the DAL connection string. The traceback error is : ('42S01', "[42S01] [Microsoft][SQL Server Native Client 11.0][SQL Server]There is already an object

[web2py] Re: SQLFORM.gris sorting by multiple fields

2016-02-23 Thread Niphlod
- orderby is used as default ordering for the rows. See DAL chapter (multiple fields are possible). On Tuesday, February 23, 2016 at 3:26:08 PM UTC+1, Yebach wrote: > > Hello > > Is it possible to have a sort order

[web2py] SQLFORM.gris sorting by multiple fields

2016-02-23 Thread Yebach
Hello Is it possible to have a sort order by second key in SQLFORM.grid. Table: First_nameLast_name Skill John Doe Medic MarrySmith Medic Tim Doe Surgeon MarryObama Surgeon If e.g. I would like

Re: [web2py] Re: charts on web2py

2016-02-23 Thread rajjmatthur
Junior, do you have an example of bar chart using this? On Friday, February 19, 2016 at 11:18:10 AM UTC-5, Junior Phanter wrote: > > This is the advantagem of the highchart over Google Charts. You can use > him in local server (offline). > > Happy in help. > Sorry my bad englhis. ;) > >

[web2py] Re: Postgres : created new database, but tables not being create when I access the app

2016-02-23 Thread Mirek Zvolský
I have now copied my app from local sqlite to hosting (virtual server) postgres, at local I will move to postgres too. Here are my hints: pg_lsclusters: will show if postgres run and at which port connectionstring in private/appconfig.ini: postgres://user:password@localhost:port/database after