[web2py:35784] Displaying image fields using SQLFORM

2009-11-22 Thread Khaled ElAdawy
Hi, I use SQLFORM to add / update records in a database table where some of the fields are images. Is there any way to display the current stored image of image fields for the user (same like in CRUD)? Regards, --~--~-~--~~~---~--~~ You received this message becaus

[web2py] Calling a SQLFORM through AJAX

2010-01-25 Thread Khaled ElAdawy
I created a controller function that could be called through ajax and returns a SQLFORM. I've got the form to appear on the page, but the SQLFORM doesn't work as it should. When I submit information from the view that the generated content has been placed into, the page refreshes and nothing is ins

[web2py] Re: Calling a SQLFORM through AJAX

2010-01-27 Thread Khaled ElAdawy
) > > On Jan 25, 9:00 am, Khaled ElAdawy wrote: > > > > > I created a controller function that could be called through ajax and > > returns a SQLFORM. > > I've got the form to appear on the page, but the SQLFORM doesn't work > > as it should. > &

[web2py] Using AS in DAL

2010-01-28 Thread Khaled ElAdawy
I just want to map this simple query to DAL syntax: "SELECT field_name FROM table_name AS my_name" Regards, -- You received this message because you are subscribed to the Google Groups "web2py-users" group. To post to this group, send email to web...@googlegroups.com. To unsubscribe from this g

[web2py] Re: Using AS in DAL

2010-01-28 Thread Khaled ElAdawy
allows you to use AS only for the purpose of renaming tables > in left joins, not for the purpose or renaming field names. The reason > it does not is that it would introduce a lot of complexity but not > necessarily provide a useful functionality. The new DAL will have the > ability to