Re: [web2py] Re: SQLFORM Next Item in Database

2013-01-11 Thread D.P. Clark
Thanks! I'll give that a shot. On Wed, Jan 9, 2013 at 6:07 PM, Derek wrote: > Well, perhaps you could have a function called 'getNextID' which would > query the database for the next higher ID value. > > > On Wednesday, January 9, 2013 11:15:21 AM UTC-7, D.P. wrote: > >> I considered that idea,

Re: [web2py] Re: SQLFORM Next Item in Database

2013-01-09 Thread D.P. Clark
I considered that idea, but the selection from the larger database may not always be consecutive in ID value. In that scenario, a user may end up editing an entry that the shouldn't have been looking at in the first place. Good suggestion though. On Tue, Jan 8, 2013 at 3:57 PM, Derek wrote: >

[web2py] Changing Form View _onclick Radio Button Widget

2012-04-16 Thread D.P. Clark
Hey All, I'm using the radio button widget in my db. I'm trying to create a more dynamic form and view that changes as the user clicks each radio button. I don't mind setting up different databases, if necessary, for each form. Essentially each time a radio button is clicked, the user needs to

[web2py] Retrieving POST data with web2py as proxy

2012-03-29 Thread D.P. Clark
Hey All, I've been having some heavy jquery cross-domain issues, so I've been trying to get around that through web2py. I'm sending POST data from a local HTML file to my web2py server. Web2py is then making a python POST to a second server (which solves the cross-domain issue) and gets the expe

Re: [web2py] Re: Determining Local Server Filepath for Uploaded Files

2011-11-08 Thread D.P. Clark
Thanks Anthony. It's all working as expected now. My confusion was between calling the filename through form and calling it through db. On Tue, Nov 8, 2011 at 11:33 AM, Anthony wrote: > The new name is stored in the 'attachment' field of the record inserted. > After the form.accepts, you can a

Re: [web2py] Re: Determining Local Server Filepath for Uploaded Files

2011-11-08 Thread D.P. Clark
Thanks for the information Andy. The documentation states that you can retrieve renamed file from the 'attachment' field, but I'm not sure exactly how. I can get the pointer (', mode 'w+b' at 0x02549440>) by using request.args.attachment.file and also the temp filename by adding .name--but that s

[web2py] Determining Local Server Filepath for Uploaded Files

2011-11-07 Thread D.P. Clark
Anyone know how to pull an uploaded file from the database locally on the server? I want to do some server-side processing on the file and then re-insert it to the database. I'm not sure I understand how to get the local path on the server of the uploaded file. The static/upload directory append

[web2py] Opening TB Modal Window in View from Controller Form On_submit

2011-10-06 Thread D.P. Clark
I have a form created in my controller and passed by dictionary to my view. When the submit is clicked for the form, I need to open a modal window (showing a generic progress indicator) while python is processing some loops. I don't need to do any callbacks with the progress, I'm just showing a ge