That's what I was thinking also but I wanted to make sure I wasn't missing
some hidden capability of web2py
On Wednesday, November 20, 2013 6:53:21 AM UTC-5, Niphlod wrote:
>
> do it in your own views. altering all the markup of the grid and break it
> down to do what you're asking it's just ask
do it in your own views. altering all the markup of the grid and break it
down to do what you're asking it's just asking for disasters at any new
release of the grid's code (and lots of cpu wasted for nothing)
On Wednesday, November 20, 2013 3:11:51 AM UTC+1, User wrote:
>
> This sounds like wha
This sounds like what I'm looking for. Currently I'm manually creating a
list display by having a for loop in the view to spit out items.
However I'm wondering if I can use sqlform.grid to replace the custom
list.
1. Is this expected usage of sqlform.grid or is this more of a hack?
2. Can
Yes..Now it works.. I was returning row object back from myformat function.
Web2py was internally creating tables when it encounters a row object. But
when i changed the myformat function to return data formatted as divs, it
is working as expected..
Thanx for the help
On Sunday, September 22,
Sorry Anthony, I should've been more specific... Wasn't related to your
example, that's why I replied to the original message.
I was just showing the way to format the data, even with the grid as is,
without replacing the whole format.
On Saturday, September 21, 2013 5:51:49 PM UTC-4, Anthony
Sorry, not sure I follow. What does this have to do with the following code:
mydisplay = myformat(grid.rows)
grid.element('.web2py_table', replace=mydisplay)
The above should replace the entire grid table (which means the "links"
argument would be useless, as it is used to add elements to the gr
I'm formatting the data for certain columns within each row by calling a
function, and returning an XML element, which then displays HTML within
that cell. Code bellow is just to give you an idea...
GRID:
links=dict(orderMaster=[
lambd
On Saturday, September 21, 2013 7:24:24 AM UTC-4, Niphlod wrote:
> nope, there's absolutely no support to output a grid as a series of divs.
> btw, that's what the tables are for (displaying data).
> I understand the "move" done a few years ago to avoid using table as a way
> to format the whole
> mydisplay = myformat(grid.rows)
> grid.element('.web2py_table', replace=mydisplay)
>
The above should work (works for me). Can you show more of your code and
the resulting HTML?
Anthony
--
Resources:
- http://web2py.com
- http://web2py.com/book (Documentation)
- http://github.com/web2py/we
The problem is that my data does not display too well in a table grid. Some
of my columns are descriptions that do not fit well inside a grid. So I
want to display it in a more readable alternate formats. - Something like
*Title *
description ..
*date*
nope, there's absolutely no support to output a grid as a series of divs.
btw, that's what the tables are for (displaying data).
I understand the "move" done a few years ago to avoid using table as a way
to format the whole page in sections, but really I don't understand the
need to remove table
11 matches
Mail list logo