[web2py] Re: how to display field names and values within for loop?

2017-03-10 Thread Dave S
On Friday, March 10, 2017 at 1:02:21 PM UTC-8, Alex Glaros wrote: > > finally, this worked perfectly, thanks Dave > > {{for f in db.Organization:}} > {{=f.label}} {{=specificOrganization[f]}} {{=f.comment}} > {{pass}} > Glad it's working for you! Thanks for the report back. /dps --

[web2py] Re: how to display field names and values within for loop?

2017-03-10 Thread Alex Glaros
finally, this worked perfectly, thanks Dave {{for f in db.Organization:}} {{=f.label}} {{=specificOrganization[f]}} {{=f.comment}} {{pass}} -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -

[web2py] Re: how to display field names and values within for loop?

2017-03-10 Thread Dave S
On Thursday, March 9, 2017 at 5:03:27 PM UTC-8, Alex Glaros wrote: > > Will your example provide both field name and field value? > My example provides a standard ROWS object. If you print results (or, in your case, supRows) on the console, the default to-string will show the labels as

[web2py] Re: how to display field names and values within for loop?

2017-03-10 Thread Alex Glaros
actually, this part works to display the label or comment {{for f in db.Organization:}} {{=f.label}} {{pass}} So all I need is a little help displaying the value in a loop, something like this psudo code specificOrganization = db.Organization(10) #just picked any record for convenience

[web2py] Re: how to display field names and values within for loop?

2017-03-10 Thread Alex Glaros
What is almost perfect is how w2p form displays a record (vertically with values) 1. Converts hyphens to spaces in field name, bolded 2. Displays label for field name, bolded 3. Displays comments for field name the problem with using a form to display field values is: a. not sure if record

[web2py] Re: how to display field names and values within for loop?

2017-03-09 Thread Alex Glaros
Will your example provide both field name and field value? am reveiving error CONTROLLER: supRows = db(db.Organization.id == 1).select() {{#returns locals}} VIEW: {{for record in supRows:}} {{=record.field}} {{pass}} Error ticket for "ES3"Ticket ID

[web2py] Re: how to display field names and values within for loop?

2017-03-09 Thread Dave S
On Thursday, March 9, 2017 at 4:09:46 PM UTC-8, Alex Glaros wrote: > > I'd like to display column names and values vertically > > is there any way to write as expressed in this psudo code? > > {{for f in db.someTableRecord:}} > {{=f}} {{=value_of_the_field}} > {{pass}} > > (To save

[web2py] Re: how to display field names and values within for loop?

2017-03-09 Thread Alex Glaros
also, is there a way to 1. leave out the table name and just display field name 2. use the field label name instead of the raw/real field name? -- Resources: - http://web2py.com - http://web2py.com/book (Documentation) - http://github.com/web2py/web2py (Source code) -